| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priOnline2/viewCheck/{id}/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "查看询价") |
| | | public R viewCheck(@PathVariable("id") String id) { |
| | | PriOnline2 priOnline = priOnline2Service.selectById(String.valueOf(id)); |
| | | if (Cools.isEmpty(priOnline.getCheckData())) { |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priOnline2/add/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "添加核价管理") |
| | | public R add(@RequestBody Map<String,Object> map) { |
| | | PriOnline2 priOnline2 = new PriOnline2(); |
| | | priOnline2.setCreateTime(new Date()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priOnline2/addOther/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "另存核价管理") |
| | | public R addOther(@RequestBody Map<String,Object> map) { |
| | | PriOnline2 online = priOnline2Service.selectById(Long.parseLong(map.get("id").toString())); |
| | | |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priOnline2/update/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "更新核价管理") |
| | | public R update(@RequestBody Map<String,Object> map){ |
| | | PriOnline2 priOnline2 = priOnline2Service.selectById(Long.parseLong(map.get("id").toString())); |
| | | if (priOnline2.getStatus() == 1) { |
| | |
| | | |
| | | //更新状态 |
| | | @RequestMapping(value = "/priOnline2/updateForm/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "更新核价管理状态") |
| | | public R updateForm(Long id,Integer status,String title,String templateName){ |
| | | PriOnline2 priOnline2 = priOnline2Service.selectById(id); |
| | | priOnline2.setStatus(status); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priOnline2/uploadCheck/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "上传询价文件") |
| | | public R uploadCheck(@RequestParam("id") Integer id, |
| | | @RequestParam("checkData") String checkData, |
| | | @RequestParam("file") MultipartFile[] files){ |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priOnline2/delete/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "删除核价管理") |
| | | public R delete(Long[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | return R.error(); |