| | |
| | | one.setTotal(one.getTotal()-1); |
| | | tLensGoods.add(one); |
| | | }else { |
| | | return ApiResult.failed("商品不存在"); |
| | | return ApiResult.failed("商品库存不足"); |
| | | } |
| | | }else{ |
| | | TModel one1 = modelService.lambdaQuery().eq(TModel::getName, orderGood.getModelName()) |
| | |
| | | one.setTotal(one.getTotal()-1); |
| | | tFrameGoods.add(one); |
| | | }else{ |
| | | return ApiResult.failed("商品不存在"); |
| | | return ApiResult.failed("商品库存不足"); |
| | | } |
| | | } |
| | | } |
| | |
| | | JSONObject jsonObject = (JSONObject) object; |
| | | String cost = jsonObject.getString("refractiveIndex"); |
| | | if (tFrameGoodsVO.getRefractiveIndex().equals(cost)){ |
| | | tFrameGoodsVO.setSale(jsonObject.getString("sale")); |
| | | tFrameGoodsVO.setSale(jsonObject.getString("sales")); |
| | | tFrameGoodsVO.setCost(jsonObject.getString("cost")); |
| | | break; |
| | | } |
| | |
| | | |
| | | |
| | | <select id="lensReceiptList" resultType="com.jilongda.manage.vo.TLensGoodsVO"> |
| | | select t1.*,t2.name as series,t4.name as store, |
| | | t2.sphere as sphere,t2.asphericSurface as asphericSurface |
| | | select t1.*,t2.name as series,t4.name as storeName, |
| | | t2.sphere as sphere,t2.asphericSurface as asphericSurface,t2.type as type |
| | | ,t2.doubleNon as doubleNon |
| | | ,t6.name as brand,t7.frameThreshold |
| | | from |