ai.cause_mapping
cause_map_id,
cpws_cause_id,
dyh_cause_id,
create_time,
update_time
cpws_cause_id = #{entity.cpwsCauseId},dyh_cause_id = #{entity.dyhCauseId},create_time = #{entity.createTime},update_time = #{entity.updateTime}
and cause_map_id = #{terms.causeMapId}
and cpws_cause_id = #{terms.cpwsCauseId}
and dyh_cause_id = #{terms.dyhCauseId}
and DATE_FORMAT(create_time,'%Y-%m-%d') = #{terms.createTime}
and (DATE_FORMAT(create_time,'%Y-%m-%d') = ]]> #{terms.createStart}
and DATE_FORMAT(create_time,'%Y-%m-%d') #{terms.createEnd})
and DATE_FORMAT(update_time,'%Y-%m-%d') = #{terms.updateTime}
and (DATE_FORMAT(update_time,'%Y-%m-%d') = ]]> #{terms.updateStart}
and DATE_FORMAT(update_time,'%Y-%m-%d') #{terms.updateEnd})
update
id = #{entity.id}
update
delete from
where id = #{id}