|
|
@ -28,10 +28,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
<result property="useStatus" column="use_status" /> |
|
|
|
<result property="auditStatus" column="audit_status" /> |
|
|
|
<result property="unit" column="unit" /> |
|
|
|
<result property="processMethod" column="process_method" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectBaseEmpRequisiteOrderChildVo"> |
|
|
|
select requisitioning_child_id, quote_id, material_id, material_code, photoUrl, material_name, material_type, material_model, specifications, brand, `describe`, materialNum, materialRmb, materialNoRmb, materialNoRmbSum, materialRmbSum, remark, create_by, create_time, update_by, update_time, use_status, audit_status from base_emp_requisite_order_child |
|
|
|
select requisitioning_child_id, quote_id, material_id, material_code, photoUrl, material_name, material_type, material_model, specifications, brand, `describe`, materialNum, materialRmb, materialNoRmb, materialNoRmbSum, materialRmbSum, remark, create_by, create_time, update_by, update_time, use_status, audit_status, unit, process_method from base_emp_requisite_order_child |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectBaseEmpRequisiteOrderChildList" parameterType="BaseEmpRequisiteOrderChild" resultMap="BaseEmpRequisiteOrderChildResult"> |
|
|
@ -54,6 +56,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="materialNoRmbSum != null "> and materialNoRmbSum = #{materialNoRmbSum}</if> |
|
|
|
<if test="materialRmbSum != null "> and materialRmbSum = #{materialRmbSum}</if> |
|
|
|
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if> |
|
|
|
<if test="unit != null "> and unit = #{unit}</if> |
|
|
|
<if test="processMethod != null and processMethod != ''"> and process_method = #{processMethod}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
@ -92,6 +96,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="updateTime != null">update_time,</if> |
|
|
|
<if test="useStatus != null">use_status,</if> |
|
|
|
<if test="auditStatus != null">audit_status,</if> |
|
|
|
<if test="unit != null">unit,</if> |
|
|
|
<if test="processMethod != null">process_method,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="quoteId != null">#{quoteId},</if> |
|
|
@ -116,6 +122,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
|
<if test="useStatus != null">#{useStatus},</if> |
|
|
|
<if test="auditStatus != null">#{auditStatus},</if> |
|
|
|
<if test="unit != null">#{unit},</if> |
|
|
|
<if test="processMethod != null">#{processMethod},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -144,6 +152,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
<if test="useStatus != null">use_status = #{useStatus},</if> |
|
|
|
<if test="auditStatus != null">audit_status = #{auditStatus},</if> |
|
|
|
<if test="unit != null">unit = #{unit},</if> |
|
|
|
<if test="processMethod != null">process_method = #{processMethod},</if> |
|
|
|
</trim> |
|
|
|
where requisitioning_child_id = #{requisitioningChildId} |
|
|
|
</update> |
|
|
|