Browse Source

2023-08-01 like '%''%'

master
杨奉源 3 years ago
parent
commit
6d46761f48
  1. 24
      src/main/resources/mapper/base/ProductProcessRouteMapper.xml
  2. 6
      src/main/resources/mapper/board/BoardMapper.xml
  3. 2
      src/main/resources/mapper/language/SysObjectLanguageOthersDao.xml
  4. 2
      src/main/resources/mapper/oss/SysOssDao.xml
  5. 18
      src/main/resources/mapper/pda/ToolDetailMapper.xml
  6. 22
      src/main/resources/mapper/schedule/ScheduleMapper.xml

24
src/main/resources/mapper/base/ProductProcessRouteMapper.xml

@ -46,40 +46,40 @@
AND T.Site = #{site} AND T.Site = #{site}
</if> </if>
<if test=" toolID != null and toolID != ''"> <if test=" toolID != null and toolID != ''">
AND T.ToolID like #{toolID}
AND T.ToolID like '%' + #{toolID} + '%'
</if> </if>
<if test=" toolDescription != null and toolDescription != ''"> <if test=" toolDescription != null and toolDescription != ''">
AND D.ToolDescription like #{toolDescription}
AND D.ToolDescription like '%' + #{toolDescription} + '%'
</if> </if>
<if test="toolSpec != null and toolSpec != ''"> <if test="toolSpec != null and toolSpec != ''">
AND D.Spec like #{toolSpec}
AND D.Spec like '%' + #{toolSpec} + '%'
</if> </if>
<if test=" toolFamilyID != null and toolFamilyID != ''"> <if test=" toolFamilyID != null and toolFamilyID != ''">
AND D.FamilyID like #{toolFamilyID}
AND D.FamilyID like '%' + #{toolFamilyID} + '%'
</if> </if>
<if test=" toolActive != null and toolActive != ''"> <if test=" toolActive != null and toolActive != ''">
AND D.Active like #{toolActive}
AND D.Active like '%' + #{toolActive} + '%'
</if> </if>
<if test=" workCenterNo != null and workCenterNo != ''"> <if test=" workCenterNo != null and workCenterNo != ''">
AND RD.WorkCenterNo like #{workCenterNo}
AND RD.WorkCenterNo like '%' + #{workCenterNo} + '%'
</if> </if>
<if test=" partNo != null and partNo != ''"> <if test=" partNo != null and partNo != ''">
AND T.PartNo like #{partNo}
AND T.PartNo like '%' + #{partNo} + '%'
</if> </if>
<if test=" partDescription != null and partDescription != ''"> <if test=" partDescription != null and partDescription != ''">
AND P.PartDescription like #{partDescription}
AND P.PartDescription like '%' + #{partDescription} + '%'
</if> </if>
<if test=" spec != null and spec != ''"> <if test=" spec != null and spec != ''">
AND P.Spec like #{spec}
AND P.Spec like '%' + #{spec} + '%'
</if> </if>
<if test="status != null and status != ''"> <if test="status != null and status != ''">
AND RH.Status like #{status}
AND RH.Status like '%' + #{status} + '%'
</if> </if>
<if test="defaultflag != null and defaultflag != ''"> <if test="defaultflag != null and defaultflag != ''">
AND RH.Defaultflag like #{defaultflag}
AND RH.Defaultflag like '%' + #{defaultflag} + '%'
</if> </if>
<if test="active != null and active != ''"> <if test="active != null and active != ''">
AND P.Active like #{active}
AND P.Active like '%' + #{active} + '%'
</if> </if>
<if test=" date1 != null "> <if test=" date1 != null ">
AND T.PhaseInDate >= #{date1} AND T.PhaseInDate >= #{date1}

6
src/main/resources/mapper/board/BoardMapper.xml

@ -34,7 +34,11 @@
update print_info set status = #{flag} where id=#{id} update print_info set status = #{flag} where id=#{id}
</update> </update>
<select id="checkCaigouPrintData" resultType="com.jtem.modules.board.entity.PrintInfoData"> <select id="checkCaigouPrintData" resultType="com.jtem.modules.board.entity.PrintInfoData">
select id from print_info where status!='Y' and LabelType like #{type}+'%' and ComputerName=#{ip}
select id
from print_info
where status != 'Y'
and LabelType like #{type} + '%'
and ComputerName = #{ip}
</select> </select>
<select id="getStockPrintListCaiGou" resultType="com.jtem.modules.board.entity.StockPrintData"> <select id="getStockPrintListCaiGou" resultType="com.jtem.modules.board.entity.StockPrintData">
Select D.TransNo,D.ItemNo,D.PartNo,dbo.Get_Part_DescSpec(D.Site,D.PartNo) as partDesc,dbo.Get_Part_UMID(D.Site,D.PartNo) as UMid Select D.TransNo,D.ItemNo,D.PartNo,dbo.Get_Part_DescSpec(D.Site,D.PartNo) as partDesc,dbo.Get_Part_UMID(D.Site,D.PartNo) as UMid

2
src/main/resources/mapper/language/SysObjectLanguageOthersDao.xml

@ -22,7 +22,7 @@
LEFT JOIN sys_menu fb ON (solb.function_id = fb.menu_id) LEFT JOIN sys_menu fb ON (solb.function_id = fb.menu_id)
<where> <where>
<if test="query.key != null and query.key != ''"> <if test="query.key != null and query.key != ''">
solb.function_id like #{query.key}
solb.function_id like '%' + #{query.key} + '%'
</if> </if>
<if test="query.key != null and query.key != ''"> <if test="query.key != null and query.key != ''">
OR fb.name like '%'+#{query.key}+'%' OR fb.name like '%'+#{query.key}+'%'

2
src/main/resources/mapper/oss/SysOssDao.xml

@ -49,7 +49,7 @@
file_type_code = #{query.fileTypeCode} file_type_code = #{query.fileTypeCode}
</if> </if>
<if test="query.fileName != '' and query.fileName !=null "> <if test="query.fileName != '' and query.fileName !=null ">
and file_name like #{query.fileName}
and file_name like '%'+#{query.fileName}+'%'
</if> </if>
<if test="query.orderRef1 != '' and query.orderRef1 !=null "> <if test="query.orderRef1 != '' and query.orderRef1 !=null ">
and order_ref1 = #{query.orderRef1} and order_ref1 = #{query.orderRef1}

18
src/main/resources/mapper/pda/ToolDetailMapper.xml

@ -426,13 +426,13 @@
td.SupplierID = #{toolDetailQuery.supplierId} td.SupplierID = #{toolDetailQuery.supplierId}
</if> </if>
<if test="toolDetailQuery.toolId != '' and toolDetailQuery.toolId != null"> <if test="toolDetailQuery.toolId != '' and toolDetailQuery.toolId != null">
AND td.ToolID like #{toolDetailQuery.toolId}
AND td.ToolID like '%' + #{toolDetailQuery.toolId} + '%'
</if> </if>
<if test="toolDetailQuery.toolDescription != '' and toolDetailQuery.toolDescription != null"> <if test="toolDetailQuery.toolDescription != '' and toolDetailQuery.toolDescription != null">
AND th.ToolDescription like #{toolDetailQuery.toolDescription}
AND th.ToolDescription like '%' + #{toolDetailQuery.toolDescription} + '%'
</if> </if>
<if test="toolDetailQuery.toolInstanceId != '' and toolDetailQuery.toolInstanceId != null"> <if test="toolDetailQuery.toolInstanceId != '' and toolDetailQuery.toolInstanceId != null">
AND ToolInstanceID like #{toolDetailQuery.toolInstanceId}
AND ToolInstanceID like '%' + #{toolDetailQuery.toolInstanceId} + '%'
</if> </if>
<if test="toolDetailQuery.startDate != null"> <if test="toolDetailQuery.startDate != null">
AND td.CreateDate <![CDATA[ >= ]]> #{toolDetailQuery.startDate} AND td.CreateDate <![CDATA[ >= ]]> #{toolDetailQuery.startDate}
@ -483,13 +483,13 @@
LEFT JOIN ToolHeader h ON d.ToolID = h.ToolID LEFT JOIN ToolHeader h ON d.ToolID = h.ToolID
<where> <where>
<if test="query.transNo != '' and query.transNo != null"> <if test="query.transNo != '' and query.transNo != null">
th.trans_no like #{query.transNo}
th.trans_no like '%' + #{query.transNo} + '%'
</if> </if>
<if test="query.toolId != '' and query.toolId != null"> <if test="query.toolId != '' and query.toolId != null">
AND d.ToolID like #{query.toolId}
AND d.ToolID like '%' + #{query.toolId} + '%'
</if> </if>
<if test="query.toolDescription != '' and query.toolDescription != null"> <if test="query.toolDescription != '' and query.toolDescription != null">
AND h.ToolDescription like #{query.toolDescription}
AND h.ToolDescription like '%' + #{query.toolDescription} + '%'
</if> </if>
<if test=" query.transTypes != null"> <if test=" query.transTypes != null">
<foreach collection="query.transTypes" item="transType"> <foreach collection="query.transTypes" item="transType">
@ -500,7 +500,7 @@
and td.supplier_id = #{query.supplierId} and td.supplier_id = #{query.supplierId}
</if> </if>
<if test="query.toolInstanceId != '' and query.toolInstanceId != null"> <if test="query.toolInstanceId != '' and query.toolInstanceId != null">
AND td.tool_instance_id like #{query.toolInstanceId}
AND td.tool_instance_id like '%' + #{query.toolInstanceId} + '%'
</if> </if>
<if test=" query.startDate != null"> <if test=" query.startDate != null">
AND th.trans_date <![CDATA[ >= ]]> #{query.startDate} AND th.trans_date <![CDATA[ >= ]]> #{query.startDate}
@ -546,10 +546,10 @@
from tool_use_qty_assess from tool_use_qty_assess
<where> <where>
<if test="query.toolId != '' and query.toolId != null"> <if test="query.toolId != '' and query.toolId != null">
AND tool_id like #{query.toolId}
AND tool_id like '%' + #{query.toolId} + '%'
</if> </if>
<if test="query.toolInstanceId != '' and query.toolInstanceId != null"> <if test="query.toolInstanceId != '' and query.toolInstanceId != null">
AND tool_instance_id like #{query.toolInstanceId}
AND tool_instance_id like '%' + #{query.toolInstanceId} + '%'
</if> </if>
<if test="query.startDate != null"> <if test="query.startDate != null">
AND create_date <![CDATA[ >= ]]> #{query.startDate} AND create_date <![CDATA[ >= ]]> #{query.startDate}

22
src/main/resources/mapper/schedule/ScheduleMapper.xml

@ -21,7 +21,7 @@
AND a.site = #{site} AND a.site = #{site}
</if> </if>
<if test="orderNo != null and orderNo != ''"> <if test="orderNo != null and orderNo != ''">
AND a.OrderNo LIKE #{orderNo}
AND a.OrderNo LIKE '%' + #{orderNo} + '%'
</if> </if>
<!-- <if test="status !=null and status != ''">--> <!-- <if test="status !=null and status != ''">-->
<!-- AND a.Status IN ${status}--> <!-- AND a.Status IN ${status}-->
@ -50,7 +50,7 @@
</if> </if>
<if test="partNo != null and partNo != ''"> <if test="partNo != null and partNo != ''">
AND a.PartNo LIKE #{partNo}
AND a.PartNo LIKE '%' + #{partNo} + '%'
</if> </if>
<if test="planStatus != null and planStatus != ''"> <if test="planStatus != null and planStatus != ''">
and ${planStatus} and ${planStatus}
@ -120,17 +120,17 @@
AND a.site = #{site} AND a.site = #{site}
</if> </if>
<if test="orderNo != null and orderNo != ''"> <if test="orderNo != null and orderNo != ''">
AND OrderNo LIKE #{orderNo}
AND OrderNo LIKE '%' + #{orderNo} + '%'
</if> </if>
<if test="seqNo != null "> <if test="seqNo != null ">
AND seqNo = #{seqNo} AND seqNo = #{seqNo}
</if> </if>
<if test="partNo != null and partNo != ''"> <if test="partNo != null and partNo != ''">
AND PartNo LIKE #{partNo}
AND PartNo LIKE '%' + #{partNo} + '%'
</if> </if>
<if test="sWorkCenterNo != null and sWorkCenterNo != ''"> <if test="sWorkCenterNo != null and sWorkCenterNo != ''">
AND S_WorkCenterNo LIKE #{sWorkCenterNo}
AND S_WorkCenterNo LIKE '%'+#{sWorkCenterNo}+'%'
</if> </if>
<if test="itemNo != null and itemNo != ''"> <if test="itemNo != null and itemNo != ''">
@ -155,10 +155,10 @@
and ${reportFlag} and ${reportFlag}
</if> </if>
<if test="operatorName != null and operatorName != ''"> <if test="operatorName != null and operatorName != ''">
and dbo.Get_OperatorDesc(a.Site,operatorId) like #{operatorName}
and dbo.Get_OperatorDesc(a.Site,operatorId) like '%'+#{operatorName}+'%'
</if> </if>
<if test="sResourceID != null and sResourceID != ''"> <if test="sResourceID != null and sResourceID != ''">
and S_ResourceID like #{sResourceID}
and S_ResourceID like '%'+#{sResourceID}+'%'
</if> </if>
<if test="sShiftNo != null and sShiftNo != ''"> <if test="sShiftNo != null and sShiftNo != ''">
and S_ShiftNo = #{sShiftNo} and S_ShiftNo = #{sShiftNo}
@ -237,19 +237,19 @@
and a.AssJobSeqNo is not null and a.AssJobSeqNo is not null
<if test="orderNo != null and orderNo != ''"> <if test="orderNo != null and orderNo != ''">
and a.OrderNo like #{orderNo}
and a.OrderNo like '%'+#{orderNo}+'%'
</if> </if>
<if test="workCenterNo != null and workCenterNo != ''"> <if test="workCenterNo != null and workCenterNo != ''">
and a.WorkCenterNo like #{workCenterNo}
and a.WorkCenterNo like '%'+#{workCenterNo}+'%'
</if> </if>
<if test="partNo != null and partNo != ''"> <if test="partNo != null and partNo != ''">
and b.partNo like #{partNo}
and b.partNo like '%'+#{partNo}+'%'
</if> </if>
<if test="itemNo != null and itemNo != ''"> <if test="itemNo != null and itemNo != ''">
and a.ItemNo = #{itemNo} and a.ItemNo = #{itemNo}
</if> </if>
<if test="operatorName != null and operatorName != ''"> <if test="operatorName != null and operatorName != ''">
and c.OperatorName like #{operatorName}
and c.OperatorName like '%'+#{operatorName}+'%'
</if> </if>
<if test="resourceId != null and resourceId != ''"> <if test="resourceId != null and resourceId != ''">
and a.Scheduled_ResourceId = #{resourceId} and a.Scheduled_ResourceId = #{resourceId}

Loading…
Cancel
Save