xs 5 年之前
父节点
当前提交
918b3c23fa

+ 1 - 1
src/main/java/com/jeeplus/modules/sg/financial/erpcredit/mapper/xml/ErpCreditMapper.xml

@@ -51,7 +51,7 @@
 			a.del_flag = #{DEL_FLAG_NORMAL}
 			${dataScope}
 			<if test="itemId != null and itemId != ''">
-				AND a.item_id = #{itemId}
+				AND a.item_id LIKE CONCAT(CONCAT('%',#{itemId},'%'))
 			</if>
 			<if test="status!=null and status !=''">
 				AND a.status = #{status}

+ 1 - 1
src/main/java/com/jeeplus/modules/sg/managementcenter/materialplan/mapper/xml/MaterialPlanMapper.xml

@@ -42,7 +42,7 @@
 			a.del_flag = #{DEL_FLAG_NORMAL}
 			${dataScope}
 			<if test="uniqueCode != null and  uniqueCode != ''">
-				AND a.unique_code = LIKE CONCAT(CONCAT('%',#{uniqueCode},'%'))
+				AND a.unique_code LIKE CONCAT(CONCAT('%',#{uniqueCode},'%'))
 			</if>
 		</where>
 		<choose>