Browse Source

修改出库查询不能按照物料名称搜索的问题

lwx_dev
erdanergou 2 years ago
parent
commit
1e1573cd3d
  1. 14
      src/main/java/com/dreamchaser/depository_manage/mapper/DepositoryRecordMapper.xml
  2. 1
      src/main/java/com/dreamchaser/depository_manage/service/impl/ExcelServiceImpl.java
  3. 14
      target/classes/com/dreamchaser/depository_manage/mapper/DepositoryRecordMapper.xml

14
src/main/java/com/dreamchaser/depository_manage/mapper/DepositoryRecordMapper.xml

@ -612,6 +612,9 @@
<if test="aorstate != null and aorstate != ''"> <if test="aorstate != null and aorstate != ''">
and aorstate like CONCAT('%', #{state}, '%') and aorstate like CONCAT('%', #{state}, '%')
</if> </if>
<if test="mname != null and mname != ''">
and mname like CONCAT('%', #{mname}, '%')
</if>
<if test="istransfer != null and istransfer != ''"> <if test="istransfer != null and istransfer != ''">
and istransfer = #{istransfer} and istransfer = #{istransfer}
</if> </if>
@ -675,7 +678,7 @@
and mcode = #{mcode} and mcode = #{mcode}
</if> </if>
<if test="mname != null and mname != ''"> <if test="mname != null and mname != ''">
and mname = #{mname} and mname like CONCAT('%', #{mname}, '%')
</if> </if>
<if test="code != null and code != null"> <if test="code != null and code != null">
and aorcode = #{code} and aorcode = #{code}
@ -727,7 +730,7 @@
and mcode = #{mcode} and mcode = #{mcode}
</if> </if>
<if test="mname != null and mname != ''"> <if test="mname != null and mname != ''">
and mname = #{mname} and mname like CONCAT('%', #{mname}, '%')
</if> </if>
<if test="code != null and code != null"> <if test="code != null and code != null">
and aorcode = #{code} and aorcode = #{code}
@ -994,6 +997,9 @@
<if test="placeId != null"> <if test="placeId != null">
and placeId = #{placeId} and placeId = #{placeId}
</if> </if>
<if test="mname != null and mname != ''">
and mname like CONCAT('%', #{mname}, '%')
</if>
<if test="adminorgid != null and adminorgid != ''"> <if test="adminorgid != null and adminorgid != ''">
and adminorgid = #{adminorgid} and adminorgid = #{adminorgid}
</if> </if>
@ -1830,19 +1836,15 @@
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteApplicationOutRecordMinById"> <delete id="deleteApplicationOutRecordMinById">
delete delete
from application_out_record_min from application_out_record_min
where parentId = #{id} where parentId = #{id}
</delete> </delete>
<delete id="deleteApplicationOutRecordMinByIds" parameterType="list"> <delete id="deleteApplicationOutRecordMinByIds" parameterType="list">
DELETE FROM application_out_record_min WHERE parentId IN DELETE FROM application_out_record_min WHERE parentId IN
<foreach collection="list" index="index" item="id" open="(" separator="," close=")"> <foreach collection="list" index="index" item="id" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
</mapper> </mapper>

1
src/main/java/com/dreamchaser/depository_manage/service/impl/ExcelServiceImpl.java

@ -757,7 +757,6 @@ public class ExcelServiceImpl implements ExcelService {
public void executeImportForMaterialType(UserByPort userByPort) { public void executeImportForMaterialType(UserByPort userByPort) {
// 4.通过线程池开启一个线程去执行数据库操作,主线程继续往下执行 // 4.通过线程池开启一个线程去执行数据库操作,主线程继续往下执行
// 4.1开启一个线程 // 4.1开启一个线程
List<Object> success = new ArrayList<>(); List<Object> success = new ArrayList<>();
String number = userByPort.getNumber(); String number = userByPort.getNumber();
int successNum = 0; int successNum = 0;

14
target/classes/com/dreamchaser/depository_manage/mapper/DepositoryRecordMapper.xml

@ -612,6 +612,9 @@
<if test="aorstate != null and aorstate != ''"> <if test="aorstate != null and aorstate != ''">
and aorstate like CONCAT('%', #{state}, '%') and aorstate like CONCAT('%', #{state}, '%')
</if> </if>
<if test="mname != null and mname != ''">
and mname like CONCAT('%', #{mname}, '%')
</if>
<if test="istransfer != null and istransfer != ''"> <if test="istransfer != null and istransfer != ''">
and istransfer = #{istransfer} and istransfer = #{istransfer}
</if> </if>
@ -675,7 +678,7 @@
and mcode = #{mcode} and mcode = #{mcode}
</if> </if>
<if test="mname != null and mname != ''"> <if test="mname != null and mname != ''">
and mname = #{mname} and mname like CONCAT('%', #{mname}, '%')
</if> </if>
<if test="code != null and code != null"> <if test="code != null and code != null">
and aorcode = #{code} and aorcode = #{code}
@ -727,7 +730,7 @@
and mcode = #{mcode} and mcode = #{mcode}
</if> </if>
<if test="mname != null and mname != ''"> <if test="mname != null and mname != ''">
and mname = #{mname} and mname like CONCAT('%', #{mname}, '%')
</if> </if>
<if test="code != null and code != null"> <if test="code != null and code != null">
and aorcode = #{code} and aorcode = #{code}
@ -994,6 +997,9 @@
<if test="placeId != null"> <if test="placeId != null">
and placeId = #{placeId} and placeId = #{placeId}
</if> </if>
<if test="mname != null and mname != ''">
and mname like CONCAT('%', #{mname}, '%')
</if>
<if test="adminorgid != null and adminorgid != ''"> <if test="adminorgid != null and adminorgid != ''">
and adminorgid = #{adminorgid} and adminorgid = #{adminorgid}
</if> </if>
@ -1830,19 +1836,15 @@
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteApplicationOutRecordMinById"> <delete id="deleteApplicationOutRecordMinById">
delete delete
from application_out_record_min from application_out_record_min
where parentId = #{id} where parentId = #{id}
</delete> </delete>
<delete id="deleteApplicationOutRecordMinByIds" parameterType="list"> <delete id="deleteApplicationOutRecordMinByIds" parameterType="list">
DELETE FROM application_out_record_min WHERE parentId IN DELETE FROM application_out_record_min WHERE parentId IN
<foreach collection="list" index="index" item="id" open="(" separator="," close=")"> <foreach collection="list" index="index" item="id" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
</delete> </delete>
</mapper> </mapper>
Loading…
Cancel
Save