|
|
@ -27,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="parentId" column="parent_id" /> |
|
|
|
<result property="level" column="level" /> |
|
|
|
<result property="sortNo" column="sort_no" /> |
|
|
|
<result property="fileCode" column="file_code" /> |
|
|
|
<result property="auditStatus" column="audit_status" /> |
|
|
|
<result property="useStatus" column="use_status" /> |
|
|
|
<result property="instanceId" column="instance_id" /> |
|
|
@ -68,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="parentId" column="sub_parent_id" /> |
|
|
|
<result property="level" column="sub_level" /> |
|
|
|
<result property="sortNo" column="sub_sort_no" /> |
|
|
|
<result property="fileCode" column="file_code" /> |
|
|
|
<result property="auditStatus" column="sub_audit_status" /> |
|
|
|
<result property="useStatus" column="sub_use_status" /> |
|
|
|
</resultMap> |
|
|
@ -77,14 +79,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
material_no, material_name, material_type, process_method, unit, material_model, brand, `describe`,warehouseDept, |
|
|
|
engineer,use_num, loss_rate, parent_id, `level`, sort_no, audit_status, use_status, |
|
|
|
instance_id,instance_type,submit_instance_id,cancel_instance_id,restore_instance_id, |
|
|
|
apply_title,apply_user,apply_time from erp_bom |
|
|
|
apply_title,apply_user,apply_time,file_code from erp_bom |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectErpBomList" parameterType="ErpBomVo" resultMap="ErpBomResult"> |
|
|
|
select erp.id, erp.del_flag, erp.create_by, erp.create_time, erp.update_by, erp.update_time |
|
|
|
, erp.remark,erp.bom_no,erp.material_no,erp.material_name, erp.audit_status, erp.use_status |
|
|
|
, erp.material_type, erp.process_method,erp.unit, erp.material_model, erp.brand, erp.`describe`,erp.warehouseDept,erp.engineer, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id, erp.file_code, |
|
|
|
erp.instance_type, processDict.dict_label as instance_type_name, erp.submit_instance_id, |
|
|
|
erp.cancel_instance_id, erp.restore_instance_id,erp.apply_title,erp.apply_user,erp.apply_time |
|
|
|
, file.url as photo_url,cate.name as material_type_name from erp_bom as erp |
|
|
@ -158,7 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<select id="selectErpBomList1" resultMap="ErpBomResult"> |
|
|
|
select bom_no, id, create_by, create_time, update_by, update_time, remark, |
|
|
|
material_no, material_name, material_type, process_method, unit, material_model, |
|
|
|
brand, `describe`,warehouseDept,engineer,use_num, loss_rate, parent_id, `level`, |
|
|
|
brand, `describe`,warehouseDept,engineer,use_num, loss_rate, parent_id, `level`,file_code, |
|
|
|
sort_no, audit_status, use_status from erp_bom |
|
|
|
where bom_no != "" ORDER BY id DESC; |
|
|
|
</select> |
|
|
@ -166,7 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
select erp.id, erp.del_flag, erp.create_by, erp.create_time, erp.update_by, erp.update_time, |
|
|
|
erp.remark,erp.bom_no, erp.material_no , erp.material_name, erp.audit_status, erp.use_status, |
|
|
|
erp.material_type, erp.process_method, erp.unit, erp.material_model, erp.brand, erp.describe,erp.warehouseDept, |
|
|
|
erp.use_num, erp.engineer, |
|
|
|
erp.use_num, erp.engineer,erp.file_code, |
|
|
|
erp.loss_rate, erp.parent_id, erp.level, erp.sort_no,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, |
|
|
@ -267,6 +269,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="parentId != null">parent_id,</if> |
|
|
|
<if test="level != null">`level`,</if> |
|
|
|
<if test="sortNo != null">sort_no,</if> |
|
|
|
<if test="fileCode != null">file_code,</if> |
|
|
|
<if test="auditStatus != null">audit_status,</if> |
|
|
|
<if test="useStatus != null">use_status,</if> |
|
|
|
<if test="instanceId != null and instanceId != ''">instance_id,</if> |
|
|
@ -299,6 +302,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="parentId != null">#{parentId},</if> |
|
|
|
<if test="level != null">#{level},</if> |
|
|
|
<if test="sortNo != null">#{sortNo},</if> |
|
|
|
<if test="fileCode != null">#{fileCode},</if> |
|
|
|
<if test="auditStatus != null">#{auditStatus},</if> |
|
|
|
<if test="useStatus != null">#{useStatus},</if> |
|
|
|
<if test="instanceId != null and instanceId != ''">#{instanceId},</if> |
|
|
@ -335,6 +339,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="parentId != null">parent_id = #{parentId},</if> |
|
|
|
<if test="level != null">`level` = #{level},</if> |
|
|
|
<if test="sortNo != null">sort_no = #{sortNo},</if> |
|
|
|
<if test="fileCode != null">file_code = #{fileCode},</if> |
|
|
|
<if test="parentId != null">parent_id = #{parentId},</if> |
|
|
|
<if test="auditStatus != null">audit_status = #{auditStatus},</if> |
|
|
|
<if test="useStatus != null">use_status = #{useStatus},</if> |
|
|
@ -384,13 +389,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<insert id="batchErpBom"> |
|
|
|
insert into erp_bom( id, del_flag, create_by, create_time, update_by, update_time, remark, bom_no, material_no, |
|
|
|
material_name, material_type, process_method, unit, material_model, brand, `describe`,warehouseDept, use_num, loss_rate, |
|
|
|
material_name, material_type, process_method, unit, material_model, brand, `describe`,warehouseDept, use_num, loss_rate,file_code, |
|
|
|
parent_id, `level`, sort_no, audit_status, use_status) values |
|
|
|
<foreach item="item" index="index" collection="list" separator=","> |
|
|
|
( #{item.id}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, |
|
|
|
#{item.updateBy}, #{item.updateTime}, #{item.remark}, #{item.bomNo}, |
|
|
|
#{item.materialNo}, #{item.materialName}, #{item.materialType}, #{item.processMethod}, |
|
|
|
#{item.unit}, #{item.brand}, #{item.describe},#{item.warehouseDept}, #{item.useNum}, #{item.lossRate}, |
|
|
|
#{item.unit}, #{item.brand}, #{item.describe},#{item.warehouseDept}, #{item.useNum}, #{item.lossRate}, #{item.fileCode}, |
|
|
|
#{item.parentId}, #{item.level}, #{item.sortNo}, #{item.auditStatus}, #{item.useStatus}) |
|
|
|
</foreach> |
|
|
|
</insert> |
|
|
@ -425,7 +430,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
erp.remark,erp.bom_no,erp.material_no,erp.material_name, erp.audit_status, erp.use_status, |
|
|
|
erp.material_type, erp.process_method,erp.unit, erp.material_model, erp.brand, erp.`describe`,erp.warehouseDept,erp.engineer, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id, |
|
|
|
erp.instance_type, processDict.dict_label as instance_type_name, erp.submit_instance_id, |
|
|
|
erp.instance_type, processDict.dict_label as instance_type_name, erp.submit_instance_id,erp.file_code, |
|
|
|
erp.cancel_instance_id, erp.restore_instance_id,erp.apply_title,erp.apply_user,erp.apply_time, |
|
|
|
file.url as photo_url,cate.name as material_type_name from erp_bom as erp |
|
|
|
left join ( |
|
|
@ -459,7 +464,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
select erp.id, erp.del_flag, erp.create_by, erp.create_time, erp.update_by, erp.update_time, |
|
|
|
erp.remark,erp.bom_no,erp.material_no,erp.material_name, erp.audit_status, erp.use_status, |
|
|
|
erp.material_type, erp.process_method,erp.unit, erp.material_model, erp.brand, erp.`describe`,erp.warehouseDept,erp.engineer, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id,erp.file_code, |
|
|
|
erp.instance_type, processDict.dict_label as instance_type_name, erp.submit_instance_id, |
|
|
|
erp.cancel_instance_id, erp.restore_instance_id,erp.apply_title,erp.apply_user,erp.apply_time, |
|
|
|
cate.name as material_type_name from erp_bom as erp |
|
|
@ -498,7 +503,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
select erp.id, erp.del_flag, erp.create_by, erp.create_time, erp.update_by, erp.update_time, |
|
|
|
erp.remark,erp.bom_no,erp.material_no,erp.material_name, erp.audit_status, erp.use_status, |
|
|
|
erp.material_type, erp.process_method,erp.unit, erp.material_model, erp.brand, erp.`describe`,erp.warehouseDept,erp.engineer, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id,erp.file_code, |
|
|
|
erp.instance_type, processDict.dict_label as instance_type_name, erp.submit_instance_id, |
|
|
|
erp.cancel_instance_id, erp.restore_instance_id,erp.apply_title,erp.apply_user,erp.apply_time, |
|
|
|
file.url as photo_url,cate.name as material_type_name from erp_bom as erp |
|
|
@ -532,7 +537,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
select erp.id, erp.del_flag, erp.create_by, erp.create_time, erp.update_by, erp.update_time, |
|
|
|
erp.remark,erp.bom_no,erp.material_no,erp.material_name, erp.audit_status, erp.use_status, |
|
|
|
erp.material_type, erp.process_method,erp.unit, erp.material_model, erp.brand, erp.`describe`,erp.warehouseDept,erp.engineer, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id,erp.file_code, |
|
|
|
erp.instance_type, processDict.dict_label as instance_type_name, erp.submit_instance_id, |
|
|
|
erp.cancel_instance_id, erp.restore_instance_id,erp.apply_title,erp.apply_user,erp.apply_time, |
|
|
|
file.url as photo_url,cate.name as material_type_name from erp_bom as erp |
|
|
@ -566,7 +571,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
select erp.id, erp.del_flag, erp.create_by, erp.create_time, erp.update_by, erp.update_time, |
|
|
|
erp.remark,erp.bom_no,erp.material_no,erp.material_name, erp.audit_status, erp.use_status, |
|
|
|
erp.material_type, erp.process_method,erp.unit, erp.material_model, erp.brand, erp.`describe`,erp.warehouseDept,erp.engineer, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id, |
|
|
|
erp.use_num,erp.loss_rate, erp.parent_id, erp.`level`, erp.sort_no, erp.instance_id,erp.file_code, |
|
|
|
erp.instance_type, processDict.dict_label as instance_type_name, erp.submit_instance_id, |
|
|
|
erp.cancel_instance_id, erp.restore_instance_id,erp.apply_title,erp.apply_user,erp.apply_time, |
|
|
|
file.url as photo_url,cate.name as material_type_name from erp_bom as erp |
|
|
|