退料申请表数据问题修改
This commit is contained in:
parent
c3d5a9e53d
commit
e2ce07dbd7
|
|
@ -84,16 +84,18 @@
|
||||||
LEFT JOIN ma_machine ma ON ma.ma_id = a.ma_id
|
LEFT JOIN ma_machine ma ON ma.ma_id = a.ma_id
|
||||||
LEFT JOIN sys_user user on user.user_id =a.binder
|
LEFT JOIN sys_user user on user.user_id =a.binder
|
||||||
WHERE mt.`level` = '4' AND mt.`del_flag` = '0'
|
WHERE mt.`level` = '4' AND mt.`del_flag` = '0'
|
||||||
<where>
|
<if test="keyWord != null and keyWord != ''">
|
||||||
|
and (b.label_code like concat('%', #{keyWord}, '%') or
|
||||||
|
ma.ma_code like concat('%', #{keyWord}, '%'))
|
||||||
|
</if>
|
||||||
<if test="labelCode != null and labelCode != ''"> and a.label_code = #{labelCode}</if>
|
<if test="labelCode != null and labelCode != ''"> and a.label_code = #{labelCode}</if>
|
||||||
<if test="typeId != null "> and a.type_id = #{typeId}</if>
|
<if test="typeId != null "> and mt2.type_id = #{typeId}</if>
|
||||||
<if test="bindTime != null and bindTime != ''"> and a.bind_time = #{bindTime}</if>
|
<if test="bindTime != null and bindTime != ''"> and a.bind_time = #{bindTime}</if>
|
||||||
<if test="binder != null and binder != ''"> and a.binder = #{binder}</if>
|
<if test="binder != null and binder != ''"> and a.binder = #{binder}</if>
|
||||||
<if test="labelType != null "> and a.label_type = #{labelType}</if>
|
<if test="labelType != null "> and a.label_type = #{labelType}</if>
|
||||||
<if test="companyId != null and companyId != ''"> and a.company_id = #{companyId}</if>
|
<if test="companyId != null and companyId != ''"> and a.company_id = #{companyId}</if>
|
||||||
<if test="modelId != null and modelId != ''"> and mt2.type_id= #{modelId}</if>
|
<if test="modelId != null and modelId != ''"> and mt.type_id= #{modelId}</if>
|
||||||
<if test="wpName != null and wpName != ''"> and mt3.type_name = #{wpName}</if>
|
<if test="wpName != null and wpName != ''"> and mt3.type_name = #{wpName}</if>
|
||||||
</where>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectMaLabelBindByMaId" parameterType="Long" resultMap="MaLabelBindVOResult">
|
<select id="selectMaLabelBindByMaId" parameterType="Long" resultMap="MaLabelBindVOResult">
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
sn.remark
|
sn.remark
|
||||||
from sys_notice sn left join sys_user su on sn.create_by = su.user_name
|
from sys_notice sn left join sys_user su on sn.create_by = su.user_name
|
||||||
where 1=1
|
where 1=1
|
||||||
<where>
|
|
||||||
<if test="noticeTitle != null and noticeTitle != ''">
|
<if test="noticeTitle != null and noticeTitle != ''">
|
||||||
AND sn.notice_title like concat('%', #{noticeTitle}, '%')
|
AND sn.notice_title like concat('%', #{noticeTitle}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -52,7 +51,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="createBy != null and createBy != ''">
|
<if test="createBy != null and createBy != ''">
|
||||||
AND sn.create_by like concat('%', #{createBy}, '%')
|
AND sn.create_by like concat('%', #{createBy}, '%')
|
||||||
</if>
|
</if>
|
||||||
</where>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertNotice" parameterType="com.bonus.sgzb.system.domain.SysNotice">
|
<insert id="insertNotice" parameterType="com.bonus.sgzb.system.domain.SysNotice">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue