dyh_th_grid_unit id, third_sys_id, third_sys_name, third_unit_id, third_grid_code, third_unit_code, third_unit_name, third_parent_code, dyh_unit_id, unit_code, create_time, update_time third_sys_id = #{entity.thirdSysId}, third_sys_name = #{entity.thirdSysName}, third_unit_id = #{entity.thirdUnitId}, third_grid_code = #{entity.thirdGridCode}, third_unit_code = #{entity.thirdUnitCode}, third_unit_name = #{entity.thirdUnitName}, third_parent_code = #{entity.thirdParentCode}, dyh_unit_id = #{entity.dyhUnitId}, unit_code = #{entity.unitCode}, create_time = #{entity.createTime}, update_time = #{entity.updateTime} and id = #{terms.id} and third_sys_id = #{terms.thirdSysId} and third_sys_name = #{terms.thirdSysName} and third_unit_id = #{terms.thirdUnitId} and third_grid_code = #{terms.thirdGridCode} and third_unit_code = #{terms.thirdUnitCode} and third_unit_name = #{terms.thirdUnitName} and third_parent_code = #{terms.thirdParentCode} and dyh_unit_id = #{terms.dyhUnitId} and unit_code = #{terms.unitCode} 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}