自动化立体仓库 - WMS系统
#
zhou zhou
3 天以前 a6884be9732bd7213faaee92f449725d263f66a0
src/main/java/com/zy/asrs/controller/LocMastController.java
@@ -13,6 +13,7 @@
import com.core.exception.CoolException;
import com.zy.asrs.entity.*;
import com.zy.asrs.entity.param.LocMastInitParam;
import com.zy.asrs.enums.LocAreaType;
import com.zy.asrs.mapper.LocDetlMapper;
import com.zy.asrs.service.*;
import com.zy.common.entity.Parameter;
@@ -46,6 +47,9 @@
    private WrkMastLogService wrkMastLogService;
    @Resource
    private WrkDetlLogService wrkDetlLogService;
    @Autowired
    private BasAreasService basAreasService;
    @RequestMapping(value = "/locMast/init/pwd")
    public R locMastInitPwd(@RequestParam(required = false) String pwd) {
@@ -277,6 +281,8 @@
//    @Transactional
    public R init(LocMastInitParam param) {
        try {
            BasAreas basAreas = basAreasService
                    .selectOne(new EntityWrapper<BasAreas>().eq("whs_type_id", LocAreaType.LOC_AREA_TYPE_CRN.type));
            List<LocMast> list = new ArrayList<>();
            BasWhsType basWhsType = basWhsTypeService.selectByIdentifying(param.getIdentifying());
            if (Cools.isEmpty(basWhsType)) {
@@ -322,6 +328,8 @@
                        locMast.setModiUser(getUserId());
                        locMast.setModiTime(now);
                        locMast.setWhsType(basWhsType.getId());
                        locMast.setAreaId(basAreas.getId());
                        locMast.setAreaName(basAreas.getName());
                        list.add(locMast);
                    }
                }