缺少物资名称搜索的模块添加查询
This commit is contained in:
parent
02a0d10ddb
commit
fd4fa2b204
|
|
@ -289,10 +289,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="typeName != null and typeName != ''">
|
<if test="typeName != null and typeName != ''">
|
||||||
and bs.type_name like CONCAT('%',#{typeName},'%')
|
and mt1.type_name like CONCAT('%',#{typeName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="typeModelName != null and typeModelName != ''">
|
<if test="typeModelName != null and typeModelName != ''">
|
||||||
and bs.type_model_name like CONCAT('%',#{typeModelName},'%')
|
and mt.type_name like CONCAT('%',#{typeModelName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||||
AND bs.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
AND bs.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getList" resultType="com.bonus.material.ma.domain.DirectApplyInfo">
|
<select id="getList" resultType="com.bonus.material.ma.domain.DirectApplyInfo">
|
||||||
|
SELECT * FROM (
|
||||||
SELECT DISTINCT
|
SELECT DISTINCT
|
||||||
dai.create_time AS createTime,
|
dai.create_time AS createTime,
|
||||||
su.user_name AS createName,
|
su.user_name AS createName,
|
||||||
|
|
@ -119,13 +120,6 @@
|
||||||
left join sys_user su on dai.create_by = su.user_id
|
left join sys_user su on dai.create_by = su.user_id
|
||||||
left join sys_workflow_record swr on swr.task_id = dai.id
|
left join sys_workflow_record swr on swr.task_id = dai.id
|
||||||
<where>
|
<where>
|
||||||
<if test="keyWord != null and keyWord != ''">
|
|
||||||
and (
|
|
||||||
bui.unit_name like concat('%', #{keyWord}, '%') or
|
|
||||||
bpl.pro_name like concat('%', #{keyWord}, '%') or
|
|
||||||
bui1.unit_name like concat('%', #{keyWord}, '%') or
|
|
||||||
bpl1.pro_name like concat('%', #{keyWord}, '%'))
|
|
||||||
</if>
|
|
||||||
<if test="lotId != null and lotId != ''">
|
<if test="lotId != null and lotId != ''">
|
||||||
and bpl.pro_id = #{lotId}
|
and bpl.pro_id = #{lotId}
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -140,6 +134,19 @@
|
||||||
</where>
|
</where>
|
||||||
GROUP BY dai.id
|
GROUP BY dai.id
|
||||||
order by dai.create_time desc
|
order by dai.create_time desc
|
||||||
|
) a
|
||||||
|
<where>
|
||||||
|
<if test="keyWord!=null and keyWord!=''">
|
||||||
|
AND (
|
||||||
|
INSTR(a.typeName,#{keyWord}) > 0 OR
|
||||||
|
INSTR(a.backUnitName,#{keyWord}) > 0 OR
|
||||||
|
INSTR(a.backProName,#{keyWord}) > 0 OR
|
||||||
|
INSTR(a.leaseUnitName,#{keyWord}) > 0 OR
|
||||||
|
INSTR(a.leaseProName,#{keyWord}) > 0
|
||||||
|
)
|
||||||
|
</if>
|
||||||
|
|
||||||
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getInfoById" resultType="com.bonus.material.ma.domain.DirectApplyInfo">
|
<select id="getInfoById" resultType="com.bonus.material.ma.domain.DirectApplyInfo">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue