| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.gkhy.safePlatform.commons.utils.BeanCopyUtils; |
| | | import com.gkhy.safePlatform.targetDuty.entity.RewardPunishmentDetail; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.ExamineMngDto; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.ExamineTemplateDto; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.RewardPunishmentDetailDto; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.RewardPunishmentDetailExcel; |
| | | import com.gkhy.safePlatform.targetDuty.service.RewardPunishmentDetailService; |
| | | import com.gkhy.safePlatform.targetDuty.utils.DateUtils; |
| | |
| | | */ |
| | | @GetMapping(value = "/selectOne/{id}") |
| | | public ResultVO selectOne(@PathVariable Serializable id) { |
| | | return new ResultVO<>(ResultCodes.OK,this.rewardPunishmentDetailService.getById(id)); |
| | | RewardPunishmentDetailDto mngDto = this.rewardPunishmentDetailService.selectOne(id); |
| | | return new ResultVO<>(ResultCodes.OK,mngDto); |
| | | } |
| | | |
| | | /** |
| | |
| | | // list.add(new1); |
| | | // }); |
| | | if (rewardPunishmentDetail.getId() == null) { |
| | | rewardPunishmentDetail.setCreateTime(new Date()); |
| | | return new ResultVO<>(ResultCodes.OK,rewardPunishmentDetailService.save(rewardPunishmentDetail)); |
| | | } else { |
| | | rewardPunishmentDetailService.updateById(rewardPunishmentDetail); |