diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zygoods/controller/ZyGoodsController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zygoods/controller/ZyGoodsController.java index a7f5093d..2f52b662 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zygoods/controller/ZyGoodsController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zygoods/controller/ZyGoodsController.java @@ -400,10 +400,10 @@ public class ZyGoodsController extends JeecgController //顺序号 String sxh = ""; ZyGoods zyGoods = new ZyGoods(); - //随机6位随机码 +/* //随机6位随机码 QueryWrapper qw =new QueryWrapper(); List zyGoodslong = zyGoodsService.list(qw); - String rcode=UniqueRanNumUtils.generateCode(zyGoodslong.size()); + String rcode=UniqueRanNumUtils.generateCode(zyGoodslong.size());*/ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(zyGoods, req.getParameterMap()); queryWrapper.eq("cloths_type_id",lxid); @@ -411,7 +411,8 @@ public class ZyGoodsController extends JeecgController List list = zyGoodsService.list(queryWrapper); sxh = list.size()+1+""; //随机数=服装类型编号+随机6位+型号编码+该类型商品长度 - spbh = lxbh+rcode+ xhbm + sxh; + //spbh = lxbh+rcode+ xhbm + sxh; + spbh = lxbh+ xhbm + sxh; return Result.OK(spbh); }