修改文书号简称的方法
This commit is contained in:
parent
f1784dfbee
commit
aefe63fd01
|
|
@ -389,20 +389,24 @@ public class TSWorkNoServiceImpl extends BaseServiceImpl<TSWorkNoMapper, TSWorkN
|
|||
// if (orgCode.equals("440101")) {
|
||||
// return "穗";
|
||||
// }
|
||||
// LambdaQueryWrapper<Gzaiccode> lqw = Wrappers.lambdaQuery();
|
||||
// lqw.eq(Gzaiccode::getScountrycode, orgCode);
|
||||
// Gzaiccode gzaiccode = iGzaiccodeService.getOne(lqw);
|
||||
// return "穗" + gzaiccode.getSregorgname().substring(3, 4);
|
||||
LambdaQueryWrapper<Gzaiccode> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(Gzaiccode::getScountrycode, orgCode);
|
||||
Gzaiccode gzaiccode = iGzaiccodeService.getOne(lqw);
|
||||
if (gzaiccode == null) {
|
||||
return "蒙";
|
||||
} else {
|
||||
return gzaiccode.getShortname();
|
||||
}
|
||||
// 不再维护gzaiccode表
|
||||
Map<String, String> map = Constant.GZ_REGION_CODE_SHORTNAME;
|
||||
String shortName = "穗";
|
||||
for (String code : map.keySet()) {
|
||||
if (code.equals(orgCode) && !map.get(code).equals("穗")) {
|
||||
shortName += map.get(code);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return shortName;
|
||||
// Map<String, String> map = Constant.GZ_REGION_CODE_SHORTNAME;
|
||||
// String shortName = "穗";
|
||||
// for (String code : map.keySet()) {
|
||||
// if (code.equals(orgCode) && !map.get(code).equals("穗")) {
|
||||
// shortName += map.get(code);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// return shortName;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue