Commit 03045c79 authored by tianyiming's avatar tianyiming

一码通删除功能修改

parent 7b19b1ff
......@@ -159,7 +159,7 @@
USE_UNIT_CREDIT_CODE is NOT NULL
AND USE_UNIT_CREDIT_CODE <![CDATA[ <> ]]> ''
AND (lengthb(USE_UNIT_CREDIT_CODE)= 15 or lengthb(USE_UNIT_CREDIT_CODE)= 18)
<if test="unitCodes !=null and unitCodes != ''">
<if test="unitCodes !=null and unitCodes.size>0">
and USE_UNIT_CREDIT_CODE in
<foreach collection="unitCodes" separator="," item="unitCode" open="(" close=")">
#{unitCode}
......
......@@ -884,6 +884,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
}
//删除监管码表数据
List<String> superviseCodeList = superviseInfoMapper.selectSuperviseCodeList(records);
List<String> unitCodeList = superviseInfoMapper.selectUnitCodeList(records);
if(!ObjectUtils.isEmpty(superviseCodeList)){
supervisoryCodeInfoMapper.delete(new QueryWrapper<SupervisoryCodeInfo>().in("supervisory_code", superviseCodeList));
}
......@@ -891,7 +892,6 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
//删除涉及的19张表的数据
superviseInfoMapper.deleteDataAll(records);
// 根据统一信用代码更新总览表
List<String> unitCodeList = superviseInfoMapper.selectUnitCodeList(records);
if(!ObjectUtils.isEmpty(unitCodeList)){
getCategoryData(unitCodeList);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment