| | |
| | | |
| | | @GetMapping("getProductList") |
| | | public Result<List<XhProductModel>> getProductList(Long shipId, Integer productType) { |
| | | if(productType==2){ |
| | | shipId =null; |
| | | } |
| | | List<XhProductModel> list = xhProductModelService.getProductList(shipId, productType - 1); |
| | | if(productType == 5){ |
| | | List<XhProductModel> list2 = xhProductModelService.getProductList(shipId, productType - 2); |
| | | list.addAll(list2); |
| | | } |
| | | return Result.ok(list); |
| | | } |
| | | |
| | |
| | | |
| | | paramDataService.insert(data); |
| | | } |
| | | |
| | | xhProductModel.setNamePath(xhProductModel.getNamePath() + "," + xhProductModel.getName()); |
| | | xhProductModelService.insert(xhProductModel); |
| | | Map<Long, XhProductModel> imgMap = new HashMap<>(); |
| | | imgMap = (Map<Long, XhProductModel>) CacheUtils.get("sysImgCache", "sysImgCache"); |