|
|
@ -400,10 +400,10 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
//顺序号
|
|
|
|
//顺序号
|
|
|
|
String sxh = ""; |
|
|
|
String sxh = ""; |
|
|
|
ZyGoods zyGoods = new ZyGoods(); |
|
|
|
ZyGoods zyGoods = new ZyGoods(); |
|
|
|
//随机6位随机码
|
|
|
|
/* //随机6位随机码
|
|
|
|
QueryWrapper<ZyGoods> qw =new QueryWrapper(); |
|
|
|
QueryWrapper<ZyGoods> qw =new QueryWrapper(); |
|
|
|
List<ZyGoods> zyGoodslong = zyGoodsService.list(qw); |
|
|
|
List<ZyGoods> zyGoodslong = zyGoodsService.list(qw); |
|
|
|
String rcode=UniqueRanNumUtils.generateCode(zyGoodslong.size()); |
|
|
|
String rcode=UniqueRanNumUtils.generateCode(zyGoodslong.size());*/ |
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<ZyGoods> queryWrapper = QueryGenerator.initQueryWrapper(zyGoods, req.getParameterMap()); |
|
|
|
QueryWrapper<ZyGoods> queryWrapper = QueryGenerator.initQueryWrapper(zyGoods, req.getParameterMap()); |
|
|
|
queryWrapper.eq("cloths_type_id",lxid); |
|
|
|
queryWrapper.eq("cloths_type_id",lxid); |
|
|
@ -411,7 +411,8 @@ public class ZyGoodsController extends JeecgController<ZyGoods, IZyGoodsService> |
|
|
|
List<ZyGoods> list = zyGoodsService.list(queryWrapper); |
|
|
|
List<ZyGoods> list = zyGoodsService.list(queryWrapper); |
|
|
|
sxh = list.size()+1+""; |
|
|
|
sxh = list.size()+1+""; |
|
|
|
//随机数=服装类型编号+随机6位+型号编码+该类型商品长度
|
|
|
|
//随机数=服装类型编号+随机6位+型号编码+该类型商品长度
|
|
|
|
spbh = lxbh+rcode+ xhbm + sxh; |
|
|
|
//spbh = lxbh+rcode+ xhbm + sxh;
|
|
|
|
|
|
|
|
spbh = lxbh+ xhbm + sxh; |
|
|
|
return Result.OK(spbh); |
|
|
|
return Result.OK(spbh); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|