|
@ -41,12 +41,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="supplierId" column="supplier_id" /> |
|
|
<result property="supplierId" column="supplier_id" /> |
|
|
<result property="supplierName" column="supplier_name" /> |
|
|
<result property="supplierName" column="supplier_name" /> |
|
|
<result property="bomId" column="bom_id" /> |
|
|
<result property="bomId" column="bom_id" /> |
|
|
|
|
|
<result property="cancelRemark" column="cancel_remark"/> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectErpMaterialVo"> |
|
|
<sql id="selectErpMaterialVo"> |
|
|
select id, del_flag, create_by, create_time, update_by, update_time, remark, |
|
|
select id, del_flag, create_by, create_time, update_by, update_time, remark, |
|
|
bomNo, material_no, material_name, audit_status, use_status, |
|
|
bomNo, material_no, material_name, audit_status, use_status,cancel_remark, |
|
|
hava_product_tem,product_item,itemName, material_type, process_method, |
|
|
hava_product_tem,product_item,itemName, material_type, process_method, |
|
|
unit, brand, `describe`, warehouse_dept,business_members,instance_id,instance_type,submit_instance_id, |
|
|
unit, brand, `describe`, warehouse_dept,business_members,instance_id,instance_type,submit_instance_id, |
|
|
cancel_instance_id,restore_instance_id,apply_title,apply_user,apply_time from erp_material |
|
|
cancel_instance_id,restore_instance_id,apply_title,apply_user,apply_time from erp_material |
|
@ -122,7 +122,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<select id="selectErpMaterialById" parameterType="Long" resultMap="ErpMaterialResult"> |
|
|
<select id="selectErpMaterialById" parameterType="Long" resultMap="ErpMaterialResult"> |
|
|
select erp.id, erp.del_flag, erp.create_by, erp.create_time, erp.update_by, erp.update_time, erp.remark,erp.bomNo, erp.material_no |
|
|
select erp.id, erp.del_flag, erp.create_by, erp.create_time, erp.update_by, erp.update_time, erp.remark,erp.bomNo, erp.material_no |
|
|
, erp.material_name, erp.audit_status, erp.use_status, erp.hava_product_tem,erp.product_item,erp.itemName, erp.material_type |
|
|
, erp.material_name, erp.audit_status, erp.use_status, erp.hava_product_tem,erp.product_item,erp.itemName, erp.material_type |
|
|
, erp.process_method, erp.unit, erp.brand, erp.describe, erp.warehouse_dept,erp.supplier_id,erp.business_members |
|
|
, erp.process_method, erp.unit, erp.brand, erp.describe, erp.warehouse_dept,erp.supplier_id,erp.business_members,erp.cancel_remark |
|
|
,erp.instance_id,erp.instance_type,erp.submit_instance_id,erp.cancel_instance_id,erp.restore_instance_id,erp.apply_title,erp.apply_user,erp.apply_time |
|
|
,erp.instance_id,erp.instance_type,erp.submit_instance_id,erp.cancel_instance_id,erp.restore_instance_id,erp.apply_title,erp.apply_user,erp.apply_time |
|
|
,att.id as photo_attach_id |
|
|
,att.id as photo_attach_id |
|
|
from erp_material erp |
|
|
from erp_material erp |
|
@ -227,6 +227,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="delFlag != null">del_flag,</if> |
|
|
<if test="delFlag != null">del_flag,</if> |
|
|
<if test="createTime != null">create_time,</if> |
|
|
<if test="createTime != null">create_time,</if> |
|
|
<if test="updateTime != null">update_time,</if> |
|
|
<if test="updateTime != null">update_time,</if> |
|
|
|
|
|
<if test="cancelRemark != null">cancel_remark,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
<if test="createBy != null">#{createBy},</if> |
|
@ -260,6 +261,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="delFlag != null">#{del_flag},</if> |
|
|
<if test="delFlag != null">#{del_flag},</if> |
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
|
|
|
<if test="cancelRemark != null">#{cancelRemark},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
@ -297,6 +299,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
|
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
|
|
<if test="supplierId != null">supplier_id = #{supplierId},</if> |
|
|
<if test="supplierId != null">supplier_id = #{supplierId},</if> |
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
|
|
<if test="cancelRemark != null">cancel_remark = #{cancelRemark},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|
</update> |
|
|
</update> |
|
|