交班-网络打印机打印小票

This commit is contained in:
Tankaikai 2025-03-07 15:01:00 +08:00
parent fda743ceee
commit 7e7a764201
2 changed files with 6 additions and 1 deletions

View File

@ -38,4 +38,9 @@ public class ProductReportDamageParam implements Serializable {
* 报损照片 * 报损照片
*/ */
private List<String> imgUrls; private List<String> imgUrls;
/**
* 备注
*/
private String remark;
} }

View File

@ -382,7 +382,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
entity.setInOutItem(InOutItemEnum.DAMAGE_OUT.value()); entity.setInOutItem(InOutItemEnum.DAMAGE_OUT.value());
entity.setSubTotal(NumberUtil.mul(param.getNumber(), consInfo.getPrice())); entity.setSubTotal(NumberUtil.mul(param.getNumber(), consInfo.getPrice()));
entity.setImgUrls(JSON.toJSONString(param.getImgUrls())); entity.setImgUrls(JSON.toJSONString(param.getImgUrls()));
entity.setRemark("商品报损,自动报损相关耗材"); entity.setRemark("商品报损,自动报损相关耗材" + StrUtil.nullToDefault(param.getRemark(), ""));
consStockFlowMapper.insert(entity); consStockFlowMapper.insert(entity);
consInfo.setStockNumber(entity.getAfterNumber()); consInfo.setStockNumber(entity.getAfterNumber());
UpdateChain.of(ConsInfo.class) UpdateChain.of(ConsInfo.class)