dyh_ct_dept id, name, des, type, parent_id, unit_id, good_field, good_field_name, can_field, can_field_name, level, delete_status, cust_id, create_time, update_time name = #{entity.name}, des = #{entity.des}, type = #{entity.type}, parent_id = #{entity.parentId}, unit_id = #{entity.unitId}, good_field = #{entity.goodField}, good_field_name = #{entity.goodFieldName}, can_field = #{entity.canField}, can_field_name = #{entity.canFieldName}, level = #{entity.level}, delete_status = #{entity.deleteStatus}, cust_id = #{entity.custId}, create_time = #{entity.createTime}, update_time = #{entity.updateTime} and id = #{terms.id} and name = #{terms.name} and des = #{terms.des} and type = #{terms.type} and parent_id = #{terms.parentId} and unit_id = #{terms.unitId} and good_field = #{terms.goodField} and good_field_name = #{terms.goodFieldName} and can_field = #{terms.canField} and can_field_name = #{terms.canFieldName} and level = #{terms.level} and delete_status = '1' and delete_status = #{terms.deleteStatus} and cust_id = #{terms.custId} 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}