|
@@ -128,6 +128,12 @@ public class TbGoodsTransitService extends ServiceImpl<TbGoodsTransitMapper, TbG
|
|
|
|
|
|
/** app端 - 添加需要交易的商品 */
|
|
|
public boolean transactionGoods(TransactionGoodsParam transactionGoodsParam){
|
|
|
+ //判断商品的净重毛重
|
|
|
+ Double netWeight = transactionGoodsParam.getNetWeight();
|
|
|
+ Double grossWeight = transactionGoodsParam.getGrossWeight();
|
|
|
+ if(netWeight > grossWeight){
|
|
|
+ throw new RuntimeException("净重超过了毛重,请检查输入。");
|
|
|
+ }
|
|
|
//获取当前登录人 todo:生产阶段需打开该注释
|
|
|
// StpUserUtil.checkLogin();
|
|
|
// long loginIdAsLong = StpUserUtil.getLoginIdAsLong();
|