| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priQuoteBudget/add/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "添加报价预算单") |
| | | public R add(@RequestBody Map<String,Object> map) { |
| | | PriSales priSales = priSalesService.selectById(Long.parseLong(map.get("priSalesId").toString())); |
| | | |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priQuoteBudget/addOther/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "另存报价预算单") |
| | | public R addOther(@RequestBody Map<String,Object> map) { |
| | | PriQuoteBudget quote = priQuoteBudgetService.selectById(Long.parseLong(map.get("id").toString())); |
| | | |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priQuoteBudget/update/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "更新报价预算单") |
| | | public R update(@RequestBody Map<String,Object> map){ |
| | | PriQuoteBudget priQuoteBudget = priQuoteBudgetService.selectById(Long.parseLong(map.get("id").toString())); |
| | | priQuoteBudget.setTitle(map.get("title").toString()); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priQuoteBudget/updateForm/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "更新报价预算单") |
| | | public R updateForm(Long id,String templateName,String title){ |
| | | PriQuoteBudget priQuoteBudget = priQuoteBudgetService.selectById(id); |
| | | priQuoteBudget.setTemplateName(templateName); |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/priQuoteBudget/delete/auth") |
| | | @ManagerAuth |
| | | @ManagerAuth(memo = "删除报价预算单") |
| | | public R delete(Long[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | return R.error(); |