|
|
|
@ -472,8 +472,13 @@ public class PtxhyyClient extends CommonHttpClient {
|
|
|
|
|
for (PtxhInvResponse ptxhInvResponse : ptxhInvResponses) {
|
|
|
|
|
|
|
|
|
|
ThrInvResultResponse thrInvResultResponse = new ThrInvResultResponse();
|
|
|
|
|
if (IntUtil.value(ptxhInvResponse.getSl()) > 0) {
|
|
|
|
|
thrInvResultResponse.setBillType("SC71021292871198"); //科室收费出库
|
|
|
|
|
thrInvResultResponse.setMainAction(ConstantType.TYPE_OUT);
|
|
|
|
|
} else {
|
|
|
|
|
thrInvResultResponse.setBillType("SC72854426720051"); //科室退费入库
|
|
|
|
|
thrInvResultResponse.setMainAction(ConstantType.TYPE_PUT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<ThrInvWarehouseEntity> thrInvWarehouseEntitys = thrInvWarehouseDao.selectList(new QueryWrapper<ThrInvWarehouseEntity>().eq("code", ptxhInvResponse.getZxksdm()));
|
|
|
|
|
if (CollUtil.isNotEmpty(thrInvWarehouseEntitys)) {
|
|
|
|
@ -489,8 +494,14 @@ public class PtxhyyClient extends CommonHttpClient {
|
|
|
|
|
thrInvResultResponse.setPrice(BigDecimal.valueOf(Double.parseDouble(ptxhInvResponse.getFydj())));
|
|
|
|
|
thrInvResultResponse.setMeasname(ptxhInvResponse.getDw());
|
|
|
|
|
thrInvResultResponse.setType(ptxhInvResponse.getLb());
|
|
|
|
|
thrInvResultResponse.setOutCount(ptxhInvResponse.getZsl());
|
|
|
|
|
thrInvResultResponse.setReCount(ptxhInvResponse.getZsl());
|
|
|
|
|
|
|
|
|
|
thrInvResultResponse.setReCount(Math.abs(IntUtil.value(ptxhInvResponse.getSl())) + "");
|
|
|
|
|
if (IntUtil.value(ptxhInvResponse.getSl()) > 0) {
|
|
|
|
|
thrInvResultResponse.setOutCount(thrInvResultResponse.getReCount());
|
|
|
|
|
} else {
|
|
|
|
|
thrInvResultResponse.setInCount(thrInvResultResponse.getReCount());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thrInvResultResponse.setBatchNo(null);
|
|
|
|
|
thrInvResultResponse.setSickerName(ptxhInvResponse.getBrxm());
|
|
|
|
|
thrInvResultResponse.setSickerCode(ptxhInvResponse.getJzhm());
|
|
|
|
|