| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | return R.ok(); |
| | | } |
| | | List<OrderDetl> orderDetls = orderService.selectWorkingDetls(order.getId()); |
| | | if (Cools.isEmpty(orderDetls)) { |
| | | ArrayList<OrderDetl> orderDetls2 = new ArrayList<>(); |
| | | for (OrderDetl orderDetl : orderDetls){ |
| | | orderDetl.setAnfme(new BigDecimal(orderDetl.getAnfme()).setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue()); |
| | | orderDetl.setWorkQty(new BigDecimal(orderDetl.getWorkQty()).setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue()); |
| | | orderDetl.setQty(new BigDecimal(orderDetl.getQty()).setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue()); |
| | | orderDetls2.add(orderDetl); |
| | | } |
| | | if (Cools.isEmpty(orderDetls) || Cools.isEmpty(orderDetls2)) { |
| | | return R.ok(); |
| | | } |
| | | return R.ok().add(orderDetls); |
| | | return R.ok().add(orderDetls2); |
| | | } |
| | | |
| | | @RequestMapping("/comb/auth") |
| | | @ManagerAuth(memo = "组托") |
| | | // @ManagerAuth(memo = "组托") |
| | | public R comb(@RequestBody CombParam combParam){ |
| | | mobileService.comb(combParam, getUserId()); |
| | | mobileService.comb(combParam, 9527L); |
| | | return R.ok("组托成功"); |
| | | } |
| | | |
| | |
| | | } |
| | | return mobileService.manDetlOut(json , getUser()); |
| | | } |
| | | @RequestMapping("/manDetl/barcode/out") |
| | | @ManagerAuth(memo = "订单下架(托盘码)") |
| | | public R barcodeDelete(@RequestBody JSONObject json){ |
| | | if (json == null){ |
| | | return R.error("传入数据为空"); |
| | | } |
| | | return mobileService.barcodeDelete(json , getUser()); |
| | | } |
| | | |
| | | @RequestMapping("/manDetl/in/barcode") |
| | | @ManagerAuth(memo = "订单上架(托盘码)") |
| | | public R manDetlAddbarcode(@RequestBody JSONObject json){ |
| | | if (json == null){ |
| | | return R.error("传入数据为空"); |
| | | } |
| | | return mobileService.manDetlInBarcode(json,getUser()); |
| | | } |
| | | |
| | | } |