|
@@ -27,14 +27,13 @@
|
|
|
|
|
|
<select id="listBoxCodeFormat" resultType="com.abi.qms.platform.dao.vo.result.BoxCodeFormatVO">
|
|
|
select bcf.id, bcf.name,bcf.color_per_roll_scalar,bcf.format_number,bcf.remark,
|
|
|
- bcf.state,bcf.update_time,bd.dept_name,bf.factory_name
|
|
|
+ bcf.state,bcf.update_time,bf.factory_name
|
|
|
from box_code_format bcf
|
|
|
- left join base_department bd on bd.id=bcf.dept_id
|
|
|
left join base_factory bf on bf.id=bcf.factory_id
|
|
|
<where>
|
|
|
bcf.is_delete = 0
|
|
|
- <if test="param.deptId != null and param.deptId != ''">
|
|
|
- AND bd.id = #{param.deptId}
|
|
|
+ <if test="param.factoryId != null and param.factoryId != ''">
|
|
|
+ AND bf.id = #{param.factoryId}
|
|
|
</if>
|
|
|
<if test="param.name != null and param.name != ''">
|
|
|
AND bcf.name like concat('%',#{param.name},'%')
|
|
@@ -48,9 +47,8 @@
|
|
|
|
|
|
<select id="selectBoxCodeFormatDetailById" resultType="com.abi.qms.platform.dao.vo.result.BoxCodeFormatVO">
|
|
|
select bcf.id, bcf.name,bcf.color_per_roll_scalar,bcf.format_number,bcf.remark,
|
|
|
- bcf.state,bcf.update_time,bd.dept_name,bf.factory_name,bcf.dept_id,bcf.code_store_id,bcf.factory_id
|
|
|
+ bcf.state,bcf.update_time,bf.factory_name,bcf.dept_id,bcf.code_store_id,bcf.factory_id
|
|
|
from box_code_format bcf
|
|
|
- left join base_department bd on bd.id=bcf.dept_id
|
|
|
left join base_factory bf on bf.id=bcf.factory_id
|
|
|
where bcf.id = #{id} and bcf.is_delete = 0
|
|
|
</select>
|