退货单-退货单已读
This commit is contained in:
parent
0c3f91f06d
commit
d784dc8862
|
|
@ -197,4 +197,25 @@ public class InvoicingThdApi {
|
||||||
return Result.error("操作失败");
|
return Result.error("操作失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退货单-退货单已读
|
||||||
|
*
|
||||||
|
* @param dto
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "退货单-退货单已读", notes = "退货单-退货单已读")
|
||||||
|
@AutoLog(value = "退货单-退货单已读", clientType = "app")
|
||||||
|
@PostMapping(value = "/transRead")
|
||||||
|
public Result<?> transRead(@RequestBody InvoicingThdMainEntity dto) {
|
||||||
|
if (StringUtils.isBlank(dto.getId())) {
|
||||||
|
return Result.error("缺少参数");
|
||||||
|
}
|
||||||
|
boolean result = tuiHuoApi.transRead(dto);
|
||||||
|
if (result) {
|
||||||
|
return Result.OK("操作成功");
|
||||||
|
} else {
|
||||||
|
return Result.error("操作失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,4 +30,5 @@ public interface ITuiHuoApi {
|
||||||
|
|
||||||
boolean finishServe(InvoicingThdMainEntity dto);
|
boolean finishServe(InvoicingThdMainEntity dto);
|
||||||
|
|
||||||
|
boolean transRead(InvoicingThdMainEntity dto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -400,7 +400,7 @@ public class ThdServiceImpl implements ITuiHuoApi {
|
||||||
|
|
||||||
if (nuKcslMap.containsKey(item.getWlId())) {
|
if (nuKcslMap.containsKey(item.getWlId())) {
|
||||||
NuInvoicingNuKcsl existingKcsl = nuKcslMap.get(item.getWlId());
|
NuInvoicingNuKcsl existingKcsl = nuKcslMap.get(item.getWlId());
|
||||||
nuInvoicingNuKcsl.setWlNum(existingKcsl.getWlNum() - item.getThNum() );
|
nuInvoicingNuKcsl.setWlNum(existingKcsl.getWlNum() - item.getThNum());
|
||||||
needUpdateList.add(nuInvoicingNuKcsl);
|
needUpdateList.add(nuInvoicingNuKcsl);
|
||||||
} else {
|
} else {
|
||||||
//护理单元已有物料 不包含 本次退货物料(极其低概率 可以理解为不会发生) 上面已经做了退货物料检测
|
//护理单元已有物料 不包含 本次退货物料(极其低概率 可以理解为不会发生) 上面已经做了退货物料检测
|
||||||
|
|
@ -457,4 +457,12 @@ public class ThdServiceImpl implements ITuiHuoApi {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean transRead(InvoicingThdMainEntity dto) {
|
||||||
|
NuInvoicingThdMain data = new NuInvoicingThdMain();
|
||||||
|
data.setId(dto.getId());
|
||||||
|
data.setIzRead("Y");
|
||||||
|
return thdMainMapper.updateById(data) > 0 ? true : false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue