| | |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import com.zy.asrs.entity.TaskDetlLog; |
| | | import com.zy.asrs.entity.WrkDetlLog; |
| | | import com.zy.asrs.service.TaskDetlLogService; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | |
| | | @Autowired |
| | | private TaskDetlLogService taskDetlLogService; |
| | | |
| | | |
| | | @RequestMapping(value = "/taskDetlLogByMast/list/auth") |
| | | @ManagerAuth |
| | | public R list1(@RequestParam(defaultValue = "1") Integer curr, |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam Integer wrk_no, |
| | | @RequestParam String id) { |
| | | EntityWrapper<TaskDetlLog> wrapper = new EntityWrapper<>(); |
| | | if (!Cools.isEmpty(wrk_no) && wrk_no != 0) { |
| | | wrapper.eq("wrk_no", wrk_no); |
| | | } |
| | | if (!Cools.isEmpty(id)) { |
| | | wrapper.eq("log_id",id); |
| | | } |
| | | return R.ok(taskDetlLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/taskDetlLog/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |