自动化立体仓库 - WMS系统
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -23,6 +23,7 @@
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import java.math.BigDecimal;
import java.util.*;
/**
@@ -95,10 +96,17 @@
            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")
@@ -342,20 +350,31 @@
    //平库pda上架
    @RequestMapping("/manDetl/in")
    @ManagerAuth(memo = "订单上架")
    public R manDetlAdd(@RequestBody JSONObject json){
        if (json == null){
            return R.error("传入数据为空");
        }
        return mobileService.manDetlIn(json , getUser());
        return mobileService.manDetlIn(json, getUser());
    }
    //平库pda下架
    @RequestMapping("/manDetl/out")
    @ManagerAuth(memo = "订单下架")
    public R manDetlDelete(@RequestBody JSONObject json){
        if (json == null){
            return R.error("传入数据为空");
        }
        return mobileService.manDetlOut(json,getUser());
        return mobileService.manDetlOut(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());
    }
}