|
@@ -72,7 +72,7 @@
|
|
|
ON RM.MATERIAL_ID = DB.MATERIAL_ID
|
|
|
<where>
|
|
|
<if test="index != null">
|
|
|
- instr(RM.MATERIAL_NAME, #{index}) > 0
|
|
|
+ (instr(RM.MATERIAL_NAME, #{index}) > 0 or instr(RM.MATERIAL_SPECIFICATION,#{index}) >0 or instr(RM.MATERIAL_MODEL,#{index}) >0)
|
|
|
</if>
|
|
|
</where>
|
|
|
group by RM.MATERIAL_ID,RM.MATERIAL_NAME,RM.MATERIAL_CODE,RM.MATERIAL_SPECIFICATION,RM.MATERIAL_MODEL
|
|
@@ -347,7 +347,7 @@
|
|
|
FROM RMS_MATERIAL RM
|
|
|
<where>
|
|
|
<if test="index != null">
|
|
|
- instr(RM.MATERIAL_NAM, #{index}) > 0
|
|
|
+ (instr(RM.MATERIAL_NAME, #{index}) > 0 or instr(RM.MATERIAL_SPECIFICATION,#{index}) >0 or instr(RM.MATERIAL_MODEL,#{index}) >0)
|
|
|
</if>
|
|
|
</where>
|
|
|
)
|
|
@@ -473,9 +473,6 @@
|
|
|
where instr(RC.CONSIGNEE_COMPANY_NAME, #{index}) > 0 and rownum < 10
|
|
|
order by "value"
|
|
|
</select>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<select id="getCarrierListByLike" parameterType="java.util.Map" resultType="java.util.Map" >
|
|
|
select
|
|
|
*
|
|
@@ -613,5 +610,17 @@
|
|
|
RMC.MATERIAL_COKE_NAME "label"
|
|
|
FROM RMS_MATERIAL_COKE RMC
|
|
|
</select>
|
|
|
+ <select id="getRequireUnitName" resultType="java.util.Map">
|
|
|
+ SELECT
|
|
|
+ RS.SHIPPER_ID "shipperId",
|
|
|
+ RS.SHIPPER_NAME "shipperName"
|
|
|
+ FROM
|
|
|
+ RMS_SHIPPER RS
|
|
|
+ <where>
|
|
|
+ <if test="index != null">
|
|
|
+ RS.SHIPPER_NAME like #{index}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|