| | |
| | | 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; |
| | |
| | | private WrkMastLogService wrkMastLogService; |
| | | @Resource |
| | | private WrkDetlLogService wrkDetlLogService; |
| | | |
| | | @Autowired |
| | | private BasAreasService basAreasService; |
| | | |
| | | @RequestMapping(value = "/locMast/init/pwd") |
| | | public R locMastInitPwd(@RequestParam(required = false) String pwd) { |
| | |
| | | // @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)) { |
| | |
| | | locMast.setModiUser(getUserId()); |
| | | locMast.setModiTime(now); |
| | | locMast.setWhsType(basWhsType.getId()); |
| | | locMast.setAreaId(basAreas.getId()); |
| | | locMast.setAreaName(basAreas.getName()); |
| | | list.add(locMast); |
| | | } |
| | | } |