| | |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | @RequestMapping("/init-inout-data") |
| | | @ResponseBody |
| | | public PageResponse<String> initInoutData(@RequestBody BaseParam param) { |
| | | inoutCommonManager.initInoutScreen(param.getDeptId()); |
| | | return new PageResponse<String>(RespCodeEnum.CODE_0000.getCode(), "成功!"); |
| | | |
| | | if (null == param.getCompanyId()) { |
| | | IUser user = ContextUtil.getLoginUser(); |
| | | |
| | | param.setCompanyId(user.getCompanyId()); |
| | | |
| | | if (null == param.getDeptId()) { |
| | | param.setDeptId(ContextUtil.subDeptId(user)); |
| | | } |
| | | } |
| | | |
| | | inoutCommonManager.initInoutScreen(param.getCompanyId(),param.getDeptId()); |
| | | |
| | | return new PageResponse<>(RespCodeEnum.CODE_0000.getCode(), "成功!"); |
| | | } |
| | | |
| | | /** |
| | |
| | | @RequestMapping("/init-check-data") |
| | | @ResponseBody |
| | | public PageResponse<String> initCheckData(@RequestBody BaseParam param) { |
| | | inoutCommonManager.initInoutScreen(param.getCompanyId()); |
| | | |
| | | if (null == param.getCompanyId()) { |
| | | IUser user = ContextUtil.getLoginUser(); |
| | | |
| | | param.setCompanyId(user.getCompanyId()); |
| | | |
| | | if (null == param.getDeptId()) { |
| | | param.setDeptId(ContextUtil.subDeptId(user)); |
| | | } |
| | | } |
| | | |
| | | |
| | | inoutCommonManager.initInoutScreen(param.getCompanyId(),param.getDeptId()); |
| | | |
| | | |
| | | return new PageResponse<String>(RespCodeEnum.CODE_0000.getCode(), "成功!"); |
| | | } |
| | | |
| | |
| | | view.addObject(Constant.MODEL_KEY_DEPT_ID, iDept.getId()); |
| | | |
| | | // 仓库列表 |
| | | List<Depot> listDepot = commonManager.listDepotByDeptId(true, iDept.getId()); |
| | | List<Depot> listDepot = commonManager.listDepotByDeptId(user.getCompanyId(), iDept.getId()); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | // 库区列表 |