|
@@ -36,10 +36,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="listId" column="list_id" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="parentId" column="parent_id" />
|
|
|
+ <result property="total" column="total" />
|
|
|
+ <result property="totalStatus" column="total_status" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTTargetreviewVo">
|
|
|
- select d.id, l.item, l.description, l.targets, d.firstquarter, d.halfyear, d.threequarter, d.annual, l.year, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.firstquarter_status, d.halfyear_status, d.threequarter_status, d.annual_status, l.parent_id, s.dept_name, a.action_item, a.principal, a.expected_date, a.completion_date, d.deviation_info, d.list_id from t_targetreview d
|
|
|
+ select d.id, l.item, l.description, l.targets, d.total, d.total_status, d.firstquarter, d.halfyear, d.threequarter, d.annual, l.year, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.firstquarter_status, d.halfyear_status, d.threequarter_status, d.annual_status, l.parent_id, s.dept_name, a.action_item, a.principal, a.expected_date, a.completion_date, d.deviation_info, d.list_id from t_targetreview d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
left join t_targetlist l on l.id = d.list_id
|
|
|
left join t_targetaction a on a.targetreview_id = d.id
|
|
@@ -97,6 +99,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="parentId != null">parent_id,</if>
|
|
|
<if test="deviationInfo != null">deviation_info,</if>
|
|
|
<if test="listId != null">list_id,</if>
|
|
|
+ <if test="total != null">total,</if>
|
|
|
+ <if test="totalStatus != null">total_status,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -125,6 +129,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="parentId != null">#{parentId},</if>
|
|
|
<if test="deviationInfo != null">#{deviationInfo},</if>
|
|
|
<if test="listId != null">#{listId},</if>
|
|
|
+ <if test="total != null">#{total},</if>
|
|
|
+ <if test="totalStatus != null">#{totalStatus},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -160,6 +166,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="parentId != null">parent_id = #{parentId},</if>
|
|
|
<if test="deviationInfo != null">deviation_info = #{deviationInfo},</if>
|
|
|
<if test="listId != null">list_id = #{listId},</if>
|
|
|
+ <if test="total != null">total = #{total},</if>
|
|
|
+ <if test="totalStatus != null">total_status = #{totalStatus},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|