Commit 5cb1822345422c8a339a81c82829bc73fee30bf6
1 parent
87a98801
fix: 新增显示字段
Showing
4 changed files
with
33 additions
and
2 deletions
ruoyi-admin/src/main/java/com/ruoyi/pojo/response/ReportDetailResponseVo.java
| @@ -3,7 +3,36 @@ package com.ruoyi.pojo.response; | @@ -3,7 +3,36 @@ package com.ruoyi.pojo.response; | ||
| 3 | import io.swagger.annotations.ApiModel; | 3 | import io.swagger.annotations.ApiModel; |
| 4 | import lombok.Data; | 4 | import lombok.Data; |
| 5 | 5 | ||
| 6 | +import java.util.Date; | ||
| 7 | + | ||
| 8 | +/** | ||
| 9 | + * @author 20412 | ||
| 10 | + */ | ||
| 6 | @Data | 11 | @Data |
| 7 | @ApiModel("签到报表查看详情vo") | 12 | @ApiModel("签到报表查看详情vo") |
| 8 | public class ReportDetailResponseVo { | 13 | public class ReportDetailResponseVo { |
| 14 | + private String name; | ||
| 15 | + private String posts; | ||
| 16 | + private String lineName; | ||
| 17 | + private String lpName; | ||
| 18 | + /** | ||
| 19 | + * 计划操作 | ||
| 20 | + */ | ||
| 21 | + private String planAction; | ||
| 22 | + /** | ||
| 23 | + * 实际操作 | ||
| 24 | + */ | ||
| 25 | + private String actualAction; | ||
| 26 | + /** | ||
| 27 | + * 是否酒精测试 | ||
| 28 | + */ | ||
| 29 | + private Boolean alcoholFlag; | ||
| 30 | + /** | ||
| 31 | + * 签到时间 | ||
| 32 | + */ | ||
| 33 | + private Date createTime; | ||
| 34 | + /** | ||
| 35 | + * 原因 | ||
| 36 | + */ | ||
| 37 | + private String remark; | ||
| 9 | } | 38 | } |
ruoyi-admin/src/main/java/com/ruoyi/service/ReportService.java
| @@ -10,6 +10,7 @@ import com.ruoyi.in.mapper.SignInMapper; | @@ -10,6 +10,7 @@ import com.ruoyi.in.mapper.SignInMapper; | ||
| 10 | import com.ruoyi.pojo.entity.DriverScheduling; | 10 | import com.ruoyi.pojo.entity.DriverScheduling; |
| 11 | import com.ruoyi.pojo.request.ReportViewRequestVo; | 11 | import com.ruoyi.pojo.request.ReportViewRequestVo; |
| 12 | import com.ruoyi.pojo.request.ReportErrorRequestVo; | 12 | import com.ruoyi.pojo.request.ReportErrorRequestVo; |
| 13 | +import com.ruoyi.pojo.response.ReportDetailResponseVo; | ||
| 13 | import com.ruoyi.pojo.response.ReportErrorResponseVo; | 14 | import com.ruoyi.pojo.response.ReportErrorResponseVo; |
| 14 | import com.ruoyi.pojo.response.ReportSignInResponseVo; | 15 | import com.ruoyi.pojo.response.ReportSignInResponseVo; |
| 15 | import com.ruoyi.pojo.response.ReportViewResponseVo; | 16 | import com.ruoyi.pojo.response.ReportViewResponseVo; |
| @@ -128,7 +129,7 @@ public class ReportService { | @@ -128,7 +129,7 @@ public class ReportService { | ||
| 128 | return null; | 129 | return null; |
| 129 | } | 130 | } |
| 130 | 131 | ||
| 131 | - public List<DriverScheduling> getReportDetail(ReportViewRequestVo vo, HttpServletResponse response) { | 132 | + public List<ReportDetailResponseVo> getReportDetail(ReportViewRequestVo vo, HttpServletResponse response) { |
| 132 | List<DriverScheduling> toDay = schedulingMapper.queryToDay(vo.getDate(), vo.getName(), vo.getJobCode(), vo.getLineName()); | 133 | List<DriverScheduling> toDay = schedulingMapper.queryToDay(vo.getDate(), vo.getName(), vo.getJobCode(), vo.getLineName()); |
| 133 | return null; | 134 | return null; |
| 134 | } | 135 | } |
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIndexController.java
| @@ -24,6 +24,6 @@ public class SysIndexController | @@ -24,6 +24,6 @@ public class SysIndexController | ||
| 24 | @RequestMapping("/") | 24 | @RequestMapping("/") |
| 25 | public String index() | 25 | public String index() |
| 26 | { | 26 | { |
| 27 | - return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion()); | 27 | + return "访问首页请通过前端。"; |
| 28 | } | 28 | } |
| 29 | } | 29 | } |
ruoyi-admin/src/main/resources/mapper/driver/DriverMapper.xml
| @@ -58,6 +58,7 @@ | @@ -58,6 +58,7 @@ | ||
| 58 | 58 | ||
| 59 | <select id="selectDriverList" parameterType="Driver" resultMap="DriverResult"> | 59 | <select id="selectDriverList" parameterType="Driver" resultMap="DriverResult"> |
| 60 | select | 60 | select |
| 61 | + distinct | ||
| 61 | driver.id, | 62 | driver.id, |
| 62 | driver.job_code, | 63 | driver.job_code, |
| 63 | driver.company_code, | 64 | driver.company_code, |