|
@@ -26,10 +26,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="taskProcessKey" column="task_process_key" />
|
|
|
<result property="taskNodeKey" column="task_node_key" />
|
|
|
+ <result property="returnQuantity" column="return_quantity"/>
|
|
|
+ <result property="depositor" column="depositor"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMaterialCirculationVo">
|
|
|
- select id, goodsname, goodsnum, specifications, weight, receiving_process, approval_status, document_status, submitter, approved_by, completed_by, remark, create_by_id, create_by, create_time, update_by_id, update_by, update_time, del_flag, task_process_key, task_node_key from material_circulation
|
|
|
+ select id, goodsname, goodsnum, specifications, weight, receiving_process, approval_status, document_status, submitter, approved_by, completed_by, remark, create_by_id, create_by, create_time, update_by_id, update_by, update_time, del_flag, task_process_key, task_node_key, return_quantity,depositor from {DBNAME}.material_circulation
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectMaterialCirculationList" parameterType="com.zkqy.business.domain.MaterialCirculation" resultMap="MaterialCirculationResult">
|
|
@@ -81,6 +83,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
<if test="taskProcessKey != null">task_process_key,</if>
|
|
|
<if test="taskNodeKey != null">task_node_key,</if>
|
|
|
+ <if test="returnQuantity != null">return_quantity,</if>
|
|
|
+ <if test="depositor != null">depositor,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="goodsname != null">#{goodsname},</if>
|
|
@@ -103,6 +107,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
<if test="taskProcessKey != null">#{taskProcessKey},</if>
|
|
|
<if test="taskNodeKey != null">#{taskNodeKey},</if>
|
|
|
+ <if test="returnQuantity != null">#{returnQuantity},</if>
|
|
|
+ <if test="depositor != null">#{depositor},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -129,6 +135,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
<if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
|
|
|
<if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
+ <if test="returnQuantity != null">return_quantity = #{returnQuantity},</if>
|
|
|
+ <if test="depositor != null">depositor = #{depositor},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -163,7 +171,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
mc.create_time,
|
|
|
mc.update_by_id,
|
|
|
mc.update_by,
|
|
|
- mc.update_time
|
|
|
+ mc.update_time,
|
|
|
+ mc.return_quantity,
|
|
|
+ mc.depositor
|
|
|
FROM
|
|
|
{DBNAME}.material_circulation mc
|
|
|
LEFT JOIN {DBNAME}.materiel m ON mc.goodsnum = m.materiel_code
|