长泰医院更新

dev
anthonywj 1 year ago
parent 1fb8aaa205
commit b4ed308afa

@ -256,9 +256,11 @@ public class CtqyyClient extends CommonHttpClient {
materialDictEntity.setOperatType("2"); materialDictEntity.setOperatType("2");
materialDictEntity.setMaterialName(udiRelevanceResponse.getCpmctymc()); materialDictEntity.setMaterialName(udiRelevanceResponse.getCpmctymc());
materialDictEntity.setCostlySign("1"); materialDictEntity.setCostlySign("1");
if (udiRelevanceResponse.getMainId().endsWith("x")) { if (StrUtil.isNotEmpty(udiRelevanceResponse.getMainId()) && udiRelevanceResponse.getMainId().endsWith("x")) {
materialDictEntity.setMaterialMasterCode(null); materialDictEntity.setMaterialMasterCode(null);
materialDictEntity.setHisMaterialCode(null); materialDictEntity.setHisMaterialCode(null);
materialDictEntity.setCostlySign("0");
materialDictEntity.setOperatType("1");
} else { } else {
materialDictEntity.setMaterialMasterCode(udiRelevanceResponse.getNameCode()); materialDictEntity.setMaterialMasterCode(udiRelevanceResponse.getNameCode());
materialDictEntity.setHisMaterialCode(udiRelevanceResponse.getMainId()); materialDictEntity.setHisMaterialCode(udiRelevanceResponse.getMainId());
@ -839,7 +841,10 @@ public class CtqyyClient extends CommonHttpClient {
thrInvResultResponse.setType("1"); thrInvResultResponse.setType("1");
thrInvResultResponse.setOutCount("1"); thrInvResultResponse.setOutCount("1");
thrInvResultResponse.setReCount("1"); thrInvResultResponse.setReCount("1");
IoCodeEntity codeEntity = codeDao.selectOne(new LambdaQueryWrapper<IoCodeEntity>().eq(IoCodeEntity::getErrUdiCode, ptxhInvResponse.getBarcode()).last("limit 1")); IoCodeEntity codeEntity = codeDao.selectOne(new LambdaQueryWrapper<IoCodeEntity>().eq(IoCodeEntity::getCode, ptxhInvResponse.getBarcode()).last("limit 1"));
if (codeEntity == null) {
codeEntity = codeDao.selectOne(new LambdaQueryWrapper<IoCodeEntity>().eq(IoCodeEntity::getErrUdiCode, ptxhInvResponse.getBarcode()).last("limit 1"));
}
thrInvResultResponse.setUdiCode(codeEntity.getCode()); thrInvResultResponse.setUdiCode(codeEntity.getCode());
thrInvResultResponses.add(thrInvResultResponse); thrInvResultResponses.add(thrInvResultResponse);
} }

Loading…
Cancel
Save