| | |
| | | @RequestMapping("/init-inout-data") |
| | | @ResponseBody |
| | | public PageResponse<String> initInoutData(@RequestBody BaseParam param) { |
| | | inoutCommonManager.initInoutScreen(param.getDeptId()); |
| | | |
| | | 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(), "成功!"); |
| | | } |
| | | |
| | |
| | | @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(), "成功!"); |
| | | } |
| | | |