| | |
| | | import com.zy.crm.manager.entity.Plan; |
| | | import com.zy.crm.manager.entity.Reimburse; |
| | | import com.zy.crm.manager.entity.ReimburseOnline; |
| | | import com.zy.crm.manager.entity.ReimburseOnlineDetl; |
| | | import com.zy.crm.manager.entity.param.ReimburseOnlineDomainParam; |
| | | import com.zy.crm.manager.service.*; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.core.io.ClassPathResource; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.ClassUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | |
| | | @Autowired |
| | | private PlanService planService; |
| | | @Autowired |
| | | private ReimburseOnlineDetlService reimburseOnlineDetlService; |
| | | |
| | | @RequestMapping(value = "/reimburseOnline/{id}/auth") |
| | | @ManagerAuth |
| | |
| | | wrapper.eq("user_id", getUserId()); |
| | | } |
| | | } |
| | | @RequestMapping(value = "/reimburseOnline/from/add/auth") |
| | | @Transactional |
| | | public R formAdd(@RequestBody ReimburseOnlineDomainParam param){ |
| | | System.out.println(param); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/reimburseOnline/from/modify/auth") |
| | | @Transactional |
| | | public R formModify(@RequestBody ReimburseOnlineDomainParam param){ |
| | | System.out.println(param); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/reimburseOnline/detl/all/auth") |
| | | @Transactional |
| | | public R head(@RequestParam Integer reimburseId){ |
| | | List<ReimburseOnlineDetl> reimburseOnlineDetls = reimburseOnlineDetlService.selectList(new EntityWrapper<ReimburseOnlineDetl>().eq("reimburse_id", reimburseId)); |
| | | return R.ok().add(reimburseOnlineDetls); |
| | | } |
| | | |
| | | @RequestMapping(value = "/reimburseOnline/add/auth") |
| | | @ManagerAuth |