长泰诏安医保接口修改

datasource
yewj 4 months ago
parent f40c019f6a
commit 24733f1bc6

@ -1321,14 +1321,10 @@ public class CtqyyClient extends CommonHttpClient {
// code = code.replace("\u001D", "zysoft"); 智业无法识别GS1符号
code = code.replace("\u001D", "");
}
if (!code.startsWith("MA")) {
code = code.replace(codeDetaiEntity.getNameCode(), "");
code = code.substring(1, code.length() - 1);
if (!code.startsWith("MA") && StrUtil.isNotEmpty(code) && code.length() > 16) {
itemDTO.setNameCode(StrUtil.sub(code, 2, 16));
itemDTO.setCode(StrUtil.sub(code, 16, code.length()));
}
itemDTO.setCode(code);
if (StrUtil.isNotEmpty(code) && code.length() > 16)
itemDTO.setNameCode(code.substring(0, 16));
if (IntUtil.value(codeDetaiEntity.getCount()) > 1) {
for (int i = 0; i < codeDetaiEntity.getCount(); i++) {
itemDTO.setCount(1);

@ -654,8 +654,10 @@ public class ZaxyyClient extends CommonHttpClient {
// code = code.replace("\u001D", "zysoft"); 智业无法识别GS1符号
code = code.replace("\u001D", "");
}
itemDTO.setCode(code);
itemDTO.setNameCode(code.substring(0, 16));
if (!code.startsWith("MA") && StrUtil.isNotEmpty(code) && code.length() > 16) {
itemDTO.setNameCode(StrUtil.sub(code, 2, 16));
itemDTO.setCode(StrUtil.sub(code, 16, code.length()));
}
itemDTO.setCount(codeDetaiEntity.getCount());
itemDTOS.add(itemDTO);

@ -37,7 +37,7 @@ public class TestController {
public BaseResponse filterInv() {
for (int i = 0; i < 100000; i++) {
List<BasicCorpEntity> data = testDataMapper.selectList(new QueryWrapper<BasicCorpEntity>().last("limit 10"));
log.info(i+"");
log.info(i + "");
}
return ResultVOUtils.success();
}
@ -46,11 +46,21 @@ public class TestController {
public BaseResponse filterCt() {
for (int i = 0; i < 100000; i++) {
List<BasicBussinessTypeEntity> data = bussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>());
log.info(i+"");
log.info(i + "");
}
return ResultVOUtils.success();
}
@GetMapping("/test/Str")
public BaseResponse filterStr(String code) {
String result = StrUtil.sub(code, 2, 16);
String result2 = StrUtil.sub(code, 16, code.length());
return ResultVOUtils.success(result + "\n" + result2);
}
// @GetMapping("/test/yh")
// public BaseResponse yh() {

Loading…
Cancel
Save