| | |
| | | <resultMap id="dataResult" type="cn.huge.module.cases.domain.po.CaseInfoUnfold"> |
| | | <result property="id" column="id"/> |
| | | <result property="acceptTime" column="accept_time"/> |
| | | <result property="belongUnitId" column="belong_unit_id"/> |
| | | <result property="belongUnitName" column="belong_unit_name"/> |
| | | <result property="mediateUnitId" column="mediate_unit_id"/> |
| | | <result property="mediateUnitName" column="mediate_unit_name"/> |
| | | <result property="mediateDeptId" column="mediate_dept_id"/> |
| | |
| | | <sql id="column-part"> |
| | | id, |
| | | accept_time, |
| | | belong_unit_id, |
| | | belong_unit_name, |
| | | mediate_unit_id, |
| | | mediate_unit_name, |
| | | mediate_dept_id, |
| | |
| | | <!-- 更新实体字段 --> |
| | | <sql id="set-part"> |
| | | <if test="entity.acceptTime != null">accept_time = #{entity.acceptTime},</if> |
| | | <if test="entity.belongUnitId != null">belong_unit_id = #{entity.belongUnitId},</if> |
| | | <if test="entity.belongUnitName != null">belong_unit_name = #{entity.belongUnitName},</if> |
| | | <if test="entity.mediateUnitId != null">mediate_unit_id = #{entity.mediateUnitId},</if> |
| | | <if test="entity.mediateUnitName != null">mediate_unit_name = #{entity.mediateUnitName},</if> |
| | | <if test="entity.mediateDeptId != null">mediate_dept_id = #{entity.mediateDeptId},</if> |
| | |
| | | <if test="terms.acceptTime != null and terms.acceptTime !=''"> |
| | | and accept_time = #{terms.acceptTime} |
| | | </if> |
| | | <if test="terms.belongUnitId != null and terms.belongUnitId !=''"> |
| | | and belong_unit_id = #{terms.belongUnitId} |
| | | </if> |
| | | <if test="terms.belongUnitName != null and terms.belongUnitName !=''"> |
| | | and belong_unit_name = #{terms.belongUnitName} |
| | | </if> |
| | | <if test="terms.mediateUnitId != null and terms.mediateUnitId !=''"> |
| | | and mediate_unit_id = #{terms.mediateUnitId} |
| | | </if> |