主业务添加代码
This commit is contained in:
parent
9d62e14cbd
commit
5d32a1105c
@ -130,10 +130,7 @@ public class ComDictServiceImpl implements ComDictService {
|
||||
if (row > 0) failureNum++;
|
||||
}
|
||||
if (failureNum > 0) {
|
||||
ComDict comDict0 = new ComDict();
|
||||
comDict0.setZdlb(zdlb);
|
||||
List<ComDict> comDictList1 = comDictMapper.getComDictList(comDict0);
|
||||
commonUtil.setDictCache(comDict0.getZdlb(), comDictList1);
|
||||
commonUtil.setDictCache(zdlb, commonUtil.getComDictList(zdlb));
|
||||
if (failureNum == comDictList.size()) {
|
||||
return new Result("0", "数据已全部导入成功!共 " + comDictList.size() + " 条");
|
||||
} else {
|
||||
@ -173,7 +170,7 @@ public class ComDictServiceImpl implements ComDictService {
|
||||
if (zddh == null || zddh.equals("")) return new Result("-1", "字典代号不能为空!");
|
||||
if (yljg == null || yljg.equals("")) return new Result("-1", "医疗机构不能为空!");
|
||||
int row = comDictMapper.delComDict(comDict);
|
||||
if (row > 0) commonUtil.setDictCache(zdlb, comDictMapper.getComDictListByZdlb(zdlb));
|
||||
if (row > 0) commonUtil.setDictCache(zdlb, commonUtil.getComDictList(zdlb));
|
||||
return new Result("0", "删除成功!");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user