| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priSales/add/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "添加产品费用明细") |
| | | public R add(@RequestBody Map<String,Object> map) { |
| | | PriOnline priOnline = priOnlineService.selectById(Long.parseLong(map.get("priOnlineId").toString())); |
| | | |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priSales/addOther/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "另存产品费用明细") |
| | | public R addOther(@RequestBody Map<String,Object> map) { |
| | | PriSales online = priSalesService.selectById(Long.parseLong(map.get("id").toString())); |
| | | |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priSales/update/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "更新产品费用明细") |
| | | public R update(@RequestBody Map<String,Object> map){ |
| | | PriSales priSales = priSalesService.selectById(Long.parseLong(map.get("id").toString())); |
| | | priSales.setTitle(map.get("title").toString()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priSales/updateForm/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "更新产品费用明细模板名和标题") |
| | | public R updateForm(Long id,String templateName,String title){ |
| | | PriSales priSales = priSalesService.selectById(id); |
| | | priSales.setTemplateName(templateName); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priSales/delete/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "删除产品费用明细") |
| | | public R delete(Long[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | return R.error(); |