Commit ee908e27642eaf5cc8b0f98f72fd6825c8c597b5

Authored by liujun001
1 parent f869756e

设备和场地

Showing 21 changed files with 338 additions and 96 deletions
Bsth-admin/src/main/java/com/ruoyi/controller/dss/DssEquipmentController.java
@@ -134,7 +134,9 @@ public class DssEquipmentController extends BaseController { @@ -134,7 +134,9 @@ public class DssEquipmentController extends BaseController {
134 sysDictData.setStatus(Constants.ENABLE_STR); 134 sysDictData.setStatus(Constants.ENABLE_STR);
135 135
136 List<SysDictData> list = sysDictDataService.queryDictDateList(sysDictData, keys); 136 List<SysDictData> list = sysDictDataService.queryDictDateList(sysDictData, keys);
137 - EquipmentConfigVo configVo = combitionEquipmentConfigVo(list); 137 + Equipment equipment = equipmentService.getOneByDeviceId(device);
  138 +
  139 + EquipmentConfigVo configVo = combitionEquipmentConfigVo(list,equipment);
138 return ResponseResult.success(configVo); 140 return ResponseResult.success(configVo);
139 } 141 }
140 142
@@ -179,7 +181,7 @@ public class DssEquipmentController extends BaseController { @@ -179,7 +181,7 @@ public class DssEquipmentController extends BaseController {
179 return heartbeat; 181 return heartbeat;
180 } 182 }
181 183
182 - private EquipmentConfigVo combitionEquipmentConfigVo(List<SysDictData> sysDictDatas) { 184 + private EquipmentConfigVo combitionEquipmentConfigVo(List<SysDictData> sysDictDatas, Equipment equipment) {
183 if (CollectionUtils.isEmpty(sysDictDatas)) { 185 if (CollectionUtils.isEmpty(sysDictDatas)) {
184 return null; 186 return null;
185 } 187 }
@@ -198,15 +200,15 @@ public class DssEquipmentController extends BaseController { @@ -198,15 +200,15 @@ public class DssEquipmentController extends BaseController {
198 } else if (StringUtils.equals(sysDictData.getDiscKey(), "timespan")) { 200 } else if (StringUtils.equals(sysDictData.getDiscKey(), "timespan")) {
199 equimentVideoParamVo.setTimespan(Convert.toInt(sysDictData.getDictValue())); 201 equimentVideoParamVo.setTimespan(Convert.toInt(sysDictData.getDictValue()));
200 } else if (StringUtils.equals(sysDictData.getDiscKey(), "url")) { 202 } else if (StringUtils.equals(sysDictData.getDiscKey(), "url")) {
201 - equimentVideoParamVo.setUrl(Objects.nonNull(sysDictData.getDictValue())?sysDictData.getDictValue().toString():null); 203 + equimentVideoParamVo.setUrl(Objects.nonNull(sysDictData.getDictValue()) ? sysDictData.getDictValue().toString() : null);
202 } else if (StringUtils.equals(sysDictData.getDiscKey(), "saveday")) { 204 } else if (StringUtils.equals(sysDictData.getDiscKey(), "saveday")) {
203 equimentVideoParamVo.setSaveday(Convert.toInt(sysDictData.getDictValue())); 205 equimentVideoParamVo.setSaveday(Convert.toInt(sysDictData.getDictValue()));
204 } else if (StringUtils.equals(sysDictData.getDiscKey(), "videoTimeSlot")) { 206 } else if (StringUtils.equals(sysDictData.getDiscKey(), "videoTimeSlot")) {
205 - equimentVideoParamVo.setVideoTimeSlot(Objects.nonNull(sysDictData.getDictValue())?sysDictData.getDictValue().toString():null); 207 + equimentVideoParamVo.setVideoTimeSlot(Objects.nonNull(sysDictData.getDictValue()) ? sysDictData.getDictValue().toString() : null);
206 } 208 }
207 } else if (Objects.equals(sysDictData.getDictType(), "addressParam") && Objects.nonNull(sysDictData.getDictValue())) { 209 } else if (Objects.equals(sysDictData.getDictType(), "addressParam") && Objects.nonNull(sysDictData.getDictValue())) {
208 if (StringUtils.equals(sysDictData.getDiscKey(), "upgradeAddress")) { 210 if (StringUtils.equals(sysDictData.getDiscKey(), "upgradeAddress")) {
209 - equimentAddressParamVo.setUpgradeAddress(Objects.nonNull(sysDictData.getDictValue())?sysDictData.getDictValue().toString():null); 211 + equimentAddressParamVo.setUpgradeAddress(Objects.nonNull(sysDictData.getDictValue()) ? sysDictData.getDictValue().toString() : null);
210 } else if (StringUtils.equals(sysDictData.getDiscKey(), "integer")) { 212 } else if (StringUtils.equals(sysDictData.getDiscKey(), "integer")) {
211 equimentAddressParamVo.setInteger(Convert.toInt(sysDictData.getDictValue())); 213 equimentAddressParamVo.setInteger(Convert.toInt(sysDictData.getDictValue()));
212 } 214 }
@@ -215,6 +217,10 @@ public class DssEquipmentController extends BaseController { @@ -215,6 +217,10 @@ public class DssEquipmentController extends BaseController {
215 217
216 configVo.setAddressParam(equimentAddressParamVo); 218 configVo.setAddressParam(equimentAddressParamVo);
217 configVo.setVideoParam(equimentVideoParamVo); 219 configVo.setVideoParam(equimentVideoParamVo);
  220 +
  221 + int moodCheck = Objects.isNull(equipment) ? null : StringUtils.endsWith(equipment.getPromise(), ",4") || StringUtils.startsWith(equipment.getPromise(), "4,")
  222 + || StringUtils.indexOf(equipment.getPromise(), ",4,") > -1 ? 1 : 0;
  223 + configVo.setMoodCheck(moodCheck);
218 return configVo; 224 return configVo;
219 } 225 }
220 226
@@ -223,8 +229,8 @@ public class DssEquipmentController extends BaseController { @@ -223,8 +229,8 @@ public class DssEquipmentController extends BaseController {
223 BeanUtils.copyProperties(dto, selfCheck); 229 BeanUtils.copyProperties(dto, selfCheck);
224 if (CollectionUtils.isNotEmpty(dto.getCameras())) { 230 if (CollectionUtils.isNotEmpty(dto.getCameras())) {
225 selfCheck.setCameras(JSON.toJSONString(dto.getCameras())); 231 selfCheck.setCameras(JSON.toJSONString(dto.getCameras()));
226 - Optional<EquipmentSelfcheckCamerasDto> optional = dto.getCameras().stream().filter(c->Objects.equals(c.getStatus(),1)).findFirst();  
227 - selfCheck.setCamerasSaveExceptionFlag(optional.isPresent()); 232 + Optional<EquipmentSelfcheckCamerasDto> optional = dto.getCameras().stream().filter(c -> Objects.equals(c.getStatus(), 1)).findFirst();
  233 + selfCheck.setCamerasSaveExceptionFlag(optional.isPresent());
228 } 234 }
229 235
230 return selfCheck; 236 return selfCheck;
Bsth-admin/src/main/java/com/ruoyi/controller/dss/DssFaceController.java
1 package com.ruoyi.controller.dss; 1 package com.ruoyi.controller.dss;
2 2
3 3
  4 +import cn.hutool.core.convert.Convert;
4 import com.ruoyi.common.TipEnum; 5 import com.ruoyi.common.TipEnum;
5 import com.ruoyi.common.core.controller.BaseController; 6 import com.ruoyi.common.core.controller.BaseController;
6 import com.ruoyi.common.core.domain.ResponseResult; 7 import com.ruoyi.common.core.domain.ResponseResult;
@@ -9,8 +10,10 @@ import com.ruoyi.domain.driver.dss.syn.DrivePosEnum; @@ -9,8 +10,10 @@ import com.ruoyi.domain.driver.dss.syn.DrivePosEnum;
9 import com.ruoyi.domain.driver.dss.syn.dto.DssDriveQueryDTO; 10 import com.ruoyi.domain.driver.dss.syn.dto.DssDriveQueryDTO;
10 import com.ruoyi.domain.driver.dss.syn.res.dto.FaceCheckDTO; 11 import com.ruoyi.domain.driver.dss.syn.res.dto.FaceCheckDTO;
11 import com.ruoyi.domain.driver.dss.syn.res.dto.FaceRegisterDTO; 12 import com.ruoyi.domain.driver.dss.syn.res.dto.FaceRegisterDTO;
  13 +import com.ruoyi.domain.driver.dss.syn.res.dto.ReqDataDTO;
12 import com.ruoyi.domain.driver.dss.syn.res.dto.ResDataDriveDTO; 14 import com.ruoyi.domain.driver.dss.syn.res.dto.ResDataDriveDTO;
13 import com.ruoyi.domain.driver.dss.syn.res.vo.FaceCheckVo; 15 import com.ruoyi.domain.driver.dss.syn.res.vo.FaceCheckVo;
  16 +import com.ruoyi.domain.driver.dss.syn.res.vo.ReqDataVo;
14 import com.ruoyi.domain.driver.dss.syn.vo.DssDriveVo; 17 import com.ruoyi.domain.driver.dss.syn.vo.DssDriveVo;
15 import com.ruoyi.service.driver.NewDriverService; 18 import com.ruoyi.service.driver.NewDriverService;
16 import com.ruoyi.service.dss.FaceService; 19 import com.ruoyi.service.dss.FaceService;
@@ -18,6 +21,7 @@ import io.swagger.annotations.Api; @@ -18,6 +21,7 @@ import io.swagger.annotations.Api;
18 import io.swagger.annotations.ApiOperation; 21 import io.swagger.annotations.ApiOperation;
19 import lombok.extern.slf4j.Slf4j; 22 import lombok.extern.slf4j.Slf4j;
20 import org.apache.commons.collections4.CollectionUtils; 23 import org.apache.commons.collections4.CollectionUtils;
  24 +import org.apache.commons.lang3.StringUtils;
21 import org.springframework.beans.factory.annotation.Autowired; 25 import org.springframework.beans.factory.annotation.Autowired;
22 import org.springframework.validation.BindingResult; 26 import org.springframework.validation.BindingResult;
23 import org.springframework.web.bind.annotation.PostMapping; 27 import org.springframework.web.bind.annotation.PostMapping;
@@ -36,7 +40,7 @@ import java.util.stream.Collectors; @@ -36,7 +40,7 @@ import java.util.stream.Collectors;
36 40
37 @Slf4j 41 @Slf4j
38 @RestController 42 @RestController
39 -@RequestMapping("/dss/Driver") 43 +@RequestMapping("/dss")
40 @Api(tags = "【蓝斯一期】人脸信息") 44 @Api(tags = "【蓝斯一期】人脸信息")
41 public class DssFaceController extends BaseController { 45 public class DssFaceController extends BaseController {
42 46
@@ -45,7 +49,19 @@ public class DssFaceController extends BaseController { @@ -45,7 +49,19 @@ public class DssFaceController extends BaseController {
45 @Autowired 49 @Autowired
46 private FaceService faceService; 50 private FaceService faceService;
47 51
48 - @PostMapping("/syn/reqData") 52 + @ApiOperation(value = "05.终端同步人脸数据")
  53 + @PostMapping(value = "/face/syn/reqData")
  54 + public ResponseResult<List<ReqDataVo>> reqData(@Valid @RequestBody ReqDataDTO dto, BindingResult bindingResult) {
  55 + if (bindingResult.hasErrors()) {
  56 + return ResponseResult.error(bindingResult.getFieldError().getDefaultMessage());
  57 + }
  58 +
  59 + List<NewDriver> drivers = newDriverService.list();
  60 + List<ReqDataVo> vos = convertReqDataVo(drivers);
  61 + return ResponseResult.success(vos);
  62 + }
  63 +
  64 + @PostMapping("/Driver/syn/reqData")
49 @ApiOperation("获取数据库人员信息") 65 @ApiOperation("获取数据库人员信息")
50 public List<DssDriveVo> queryDriver(@Valid @RequestBody DssDriveQueryDTO dto, BindingResult bindingResult) { 66 public List<DssDriveVo> queryDriver(@Valid @RequestBody DssDriveQueryDTO dto, BindingResult bindingResult) {
51 67
@@ -54,29 +70,29 @@ public class DssFaceController extends BaseController { @@ -54,29 +70,29 @@ public class DssFaceController extends BaseController {
54 } 70 }
55 71
56 @ApiOperation("终端同步人脸数据结果上报") 72 @ApiOperation("终端同步人脸数据结果上报")
57 - @PostMapping(value = "/syn/resData") 73 + @PostMapping(value = "/face/syn/resData")
58 public ResponseResult<Object> insertDriver(@Valid @RequestBody ResDataDriveDTO dto, BindingResult bindingResult) { 74 public ResponseResult<Object> insertDriver(@Valid @RequestBody ResDataDriveDTO dto, BindingResult bindingResult) {
59 if (bindingResult.hasErrors()) { 75 if (bindingResult.hasErrors()) {
60 return ResponseResult.error(bindingResult.getFieldError().getDefaultMessage()); 76 return ResponseResult.error(bindingResult.getFieldError().getDefaultMessage());
61 } 77 }
62 NewDriver newDriver = convertNewDriver(dto); 78 NewDriver newDriver = convertNewDriver(dto);
63 TipEnum errorTipEnum = newDriverService.updateClient(newDriver); 79 TipEnum errorTipEnum = newDriverService.updateClient(newDriver);
64 - return new ResponseResult<>(errorTipEnum.getCode(),errorTipEnum.getMsg()); 80 + return new ResponseResult<>(errorTipEnum.getCode(), errorTipEnum.getMsg());
65 } 81 }
66 82
67 @ApiOperation(("人脸注册")) 83 @ApiOperation(("人脸注册"))
68 - @PostMapping(value = "FaceRegister") 84 + @PostMapping(value = "/Driver/FaceRegister")
69 public ResponseResult<Object> faceRegister(@Valid @RequestBody FaceRegisterDTO dto, BindingResult bindingResult) { 85 public ResponseResult<Object> faceRegister(@Valid @RequestBody FaceRegisterDTO dto, BindingResult bindingResult) {
70 if (bindingResult.hasErrors()) { 86 if (bindingResult.hasErrors()) {
71 return ResponseResult.error(bindingResult.getFieldError().getDefaultMessage()); 87 return ResponseResult.error(bindingResult.getFieldError().getDefaultMessage());
72 } 88 }
73 NewDriver newDriver = convertFaceRegister(dto); 89 NewDriver newDriver = convertFaceRegister(dto);
74 TipEnum errorTipEnum = newDriverService.faceRegister(newDriver); 90 TipEnum errorTipEnum = newDriverService.faceRegister(newDriver);
75 - return new ResponseResult<>(errorTipEnum.getCode(),errorTipEnum.getMsg()); 91 + return new ResponseResult<>(errorTipEnum.getCode(), errorTipEnum.getMsg());
76 } 92 }
77 93
78 @ApiOperation("人脸校验") 94 @ApiOperation("人脸校验")
79 - @PostMapping(value = "FaceCheck") 95 + @PostMapping(value = "/Driver/FaceCheck")
80 public ResponseResult<FaceCheckVo> faceCheck(@Valid @RequestBody FaceCheckDTO dto, BindingResult bindingResult) { 96 public ResponseResult<FaceCheckVo> faceCheck(@Valid @RequestBody FaceCheckDTO dto, BindingResult bindingResult) {
81 if (bindingResult.hasErrors()) { 97 if (bindingResult.hasErrors()) {
82 return ResponseResult.error(bindingResult.getFieldError().getDefaultMessage()); 98 return ResponseResult.error(bindingResult.getFieldError().getDefaultMessage());
@@ -118,8 +134,8 @@ public class DssFaceController extends BaseController { @@ -118,8 +134,8 @@ public class DssFaceController extends BaseController {
118 private NewDriver convertNewDriver(ResDataDriveDTO dto) { 134 private NewDriver convertNewDriver(ResDataDriveDTO dto) {
119 NewDriver newDriver = new NewDriver(); 135 NewDriver newDriver = new NewDriver();
120 newDriver.setJobCode(dto.getStaffId()); 136 newDriver.setJobCode(dto.getStaffId());
121 -// newDriver.setPersonnelName(dto.getStaffName());  
122 -// newDriver.setIcCardCode(dto.getIcCardNo()); 137 + newDriver.setPersonnelName(dto.getStaffName());
  138 + newDriver.setIcCardCode(dto.getIcCardNo());
123 newDriver.setImage(dto.getFacePhotoPath()); 139 newDriver.setImage(dto.getFacePhotoPath());
124 newDriver.setFaceFeature(dto.getFaceFeature()); 140 newDriver.setFaceFeature(dto.getFaceFeature());
125 newDriver.setBlueTooth(dto.getBlueTooth()); 141 newDriver.setBlueTooth(dto.getBlueTooth());
@@ -127,7 +143,7 @@ public class DssFaceController extends BaseController { @@ -127,7 +143,7 @@ public class DssFaceController extends BaseController {
127 newDriver.setSyncontent((dto.getSynContent())); 143 newDriver.setSyncontent((dto.getSynContent()));
128 newDriver.setCsn(dto.getCsn()); 144 newDriver.setCsn(dto.getCsn());
129 145
130 - return null; 146 + return newDriver;
131 } 147 }
132 148
133 private NewDriver convertFaceRegister(FaceRegisterDTO dto) { 149 private NewDriver convertFaceRegister(FaceRegisterDTO dto) {
@@ -153,6 +169,100 @@ public class DssFaceController extends BaseController { @@ -153,6 +169,100 @@ public class DssFaceController extends BaseController {
153 return faceCheckVo; 169 return faceCheckVo;
154 } 170 }
155 171
  172 + private List<ReqDataVo> convertReqDataVo(List<NewDriver> drivers){
  173 + if(CollectionUtils.isEmpty(drivers)){
  174 + return Collections.emptyList();
  175 + }
  176 + return drivers.stream().map(d->{
  177 + ReqDataVo vo = new ReqDataVo();
  178 + vo.setVersionNo(Convert.toStr(d.getImageVersion()));
  179 + vo.setStaffId(Convert.toStr(d.getId()));
  180 + vo.setStaffName(d.getPersonnelName());
  181 + vo.setIcCardNo(d.getIcCardCode());
  182 + vo.setFacePhotoPath(d.getImage());
  183 + vo.setFaceFeature(vo.getFaceFeature());
  184 + vo.setStaffCode(d.getJobCode());
  185 +// vo.setSynState(d.getS)
  186 + vo.setSynContent(d.getSyncontent());
  187 +
  188 + vo.setStaffTypeItem(switchPostion(d.getPosts()));
  189 +
  190 + return vo;
  191 + }).collect(Collectors.toList());
  192 + }
  193 +
  194 + private Set<Integer> switchPostion(String post){
  195 +
  196 + Set<Integer> postSet = new LinkedHashSet<>();
  197 + if(StringUtils.indexOf(post,"驾驶员") > -1){
  198 + postSet.add(2);
  199 + }
  200 +
  201 + if(StringUtils.indexOf(post,"集调中心") > -1){
  202 + postSet.add(3);
  203 + }
  204 +
  205 + if(StringUtils.indexOf(post,"稽查") > -1){
  206 + postSet.add(3);
  207 + }
  208 +
  209 + if(StringUtils.indexOf(post,"行管员") > -1){
  210 + postSet.add(3);
  211 + }
  212 +
  213 + if(StringUtils.indexOf(post,"副队长") > -1){
  214 + postSet.add(3);
  215 + }
  216 +
  217 + if(StringUtils.indexOf(post,"调度") > -1){
  218 + postSet.add(3);
  219 + }
  220 +
  221 + if(StringUtils.indexOf(post,"科员") > -1){
  222 + postSet.add(3);
  223 + }
  224 +
  225 + if(StringUtils.indexOf(post,"队长") > -1){
  226 + postSet.add(3);
  227 + }
  228 +
  229 + if(StringUtils.indexOf(post,"车队支部书记") > -1){
  230 + postSet.add(3);
  231 + }
  232 +
  233 +
  234 + if(StringUtils.indexOf(post,"部门副经理") > -1){
  235 + postSet.add(3);
  236 + }
  237 +
  238 + if(StringUtils.indexOf(post,"副总经理") > -1){
  239 + postSet.add(3);
  240 + }
  241 +
  242 +
  243 + if(StringUtils.indexOf(post,"部门经理") > -1){
  244 + postSet.add(3);
  245 + }
  246 +
  247 + if(StringUtils.indexOf(post,"办公室主任") > -1){
  248 + postSet.add(3);
  249 + }
  250 +
  251 + if(StringUtils.indexOf(post,"办公室副主任") > -1){
  252 + postSet.add(3);
  253 + }
  254 +
  255 + if(StringUtils.indexOf(post,"工会副主席") > -1){
  256 + postSet.add(3);
  257 + }
  258 +
  259 +
  260 + if(CollectionUtils.isEmpty(postSet)){
  261 + postSet.add(1);
  262 + }
  263 +
  264 + return postSet;
  265 + }
156 266
157 267
158 } 268 }
Bsth-admin/src/main/java/com/ruoyi/domain/driver/NewDriver.java
@@ -18,101 +18,98 @@ import lombok.extern.slf4j.Slf4j; @@ -18,101 +18,98 @@ import lombok.extern.slf4j.Slf4j;
18 public class NewDriver { 18 public class NewDriver {
19 /***主键*/ 19 /***主键*/
20 @Excel(name = "主键") 20 @Excel(name = "主键")
21 - private Integer id; 21 + private java.lang.Integer id;
22 22
23 23
24 /***工号*/ 24 /***工号*/
25 @TableId(value = "job_code", type = IdType.AUTO) 25 @TableId(value = "job_code", type = IdType.AUTO)
26 @Excel(name = "工号") 26 @Excel(name = "工号")
27 - private String jobCode; 27 + private java.lang.String jobCode;
28 28
29 29
30 /***公司编码*/ 30 /***公司编码*/
31 @Excel(name = "公司编码") 31 @Excel(name = "公司编码")
32 - private String companyCode; 32 + private java.lang.String companyCode;
33 33
34 34
35 /***分公司编码*/ 35 /***分公司编码*/
36 @Excel(name = "分公司编码") 36 @Excel(name = "分公司编码")
37 - private String brancheCompanyCode; 37 + private java.lang.String brancheCompanyCode;
38 38
39 39
40 /***姓名*/ 40 /***姓名*/
41 @Excel(name = "姓名") 41 @Excel(name = "姓名")
42 - private String personnelName; 42 + private java.lang.String personnelName;
43 43
44 44
45 /***运营服务证书号*/ 45 /***运营服务证书号*/
46 @Excel(name = "运营服务证书号") 46 @Excel(name = "运营服务证书号")
47 - private String papersCode; 47 + private java.lang.String papersCode;
48 48
49 49
50 /***一卡通工作卡号*/ 50 /***一卡通工作卡号*/
51 @Excel(name = "一卡通工作卡号") 51 @Excel(name = "一卡通工作卡号")
52 - private String icCardCode; 52 + private java.lang.String icCardCode;
53 53
54 54
55 /***性别*/ 55 /***性别*/
56 @Excel(name = "性别") 56 @Excel(name = "性别")
57 - private String personnelType; 57 + private java.lang.String personnelType;
58 58
59 59
60 /***所属岗位/工种*/ 60 /***所属岗位/工种*/
61 @Excel(name = "所属岗位/工种") 61 @Excel(name = "所属岗位/工种")
62 - private String posts; 62 + private java.lang.String posts;
63 63
64 64
65 /***身份证*/ 65 /***身份证*/
66 @Excel(name = "身份证") 66 @Excel(name = "身份证")
67 - private String card; 67 + private java.lang.String card;
68 68
69 69
70 /***联系电话*/ 70 /***联系电话*/
71 @Excel(name = "联系电话") 71 @Excel(name = "联系电话")
72 - private String telphone; 72 + private java.lang.String telphone;
73 73
74 74
75 /***RFID 人卡IC号*/ 75 /***RFID 人卡IC号*/
76 @Excel(name = "RFID 人卡IC号") 76 @Excel(name = "RFID 人卡IC号")
77 - private String icRfid; 77 + private java.lang.String icRfid;
78 78
79 79
80 /***RFID 人卡ID号(10进制)*/ 80 /***RFID 人卡ID号(10进制)*/
81 @Excel(name = "RFID 人卡ID号(10进制)") 81 @Excel(name = "RFID 人卡ID号(10进制)")
82 - private String idRfid; 82 + private java.lang.String idRfid;
83 83
84 84
85 /***RFID 标签号*/ 85 /***RFID 标签号*/
86 @Excel(name = "RFID 标签号") 86 @Excel(name = "RFID 标签号")
87 - private String tagRfid; 87 + private java.lang.String tagRfid;
88 88
89 89
90 /***备注*/ 90 /***备注*/
91 @Excel(name = "备注") 91 @Excel(name = "备注")
92 - private String remark; 92 + private java.lang.String remark;
93 93
94 94
95 /***线路名称*/ 95 /***线路名称*/
96 @Excel(name = "线路名称") 96 @Excel(name = "线路名称")
97 - private String lineName; 97 + private java.lang.String lineName;
98 98
99 99
100 /***线路编码*/ 100 /***线路编码*/
101 @Excel(name = "线路编码") 101 @Excel(name = "线路编码")
102 - private String lineCode; 102 + private java.lang.String lineCode;
103 103
104 104
105 /***是否进行人脸注册 1 注册 2 未注册*/ 105 /***是否进行人脸注册 1 注册 2 未注册*/
106 @Excel(name = "是否进行人脸注册 1 注册 2 未注册") 106 @Excel(name = "是否进行人脸注册 1 注册 2 未注册")
107 - private Integer faceSignIn; 107 + private java.lang.Integer faceSignIn;
108 108
109 109
110 /***头像*/ 110 /***头像*/
111 @Excel(name = "头像") 111 @Excel(name = "头像")
112 - private String image;  
113 -  
114 - @TableField(exist = false)  
115 - private float imageScore; 112 + private java.lang.String image;
116 113
117 114
118 /***更新日期*/ 115 /***更新日期*/
@@ -122,12 +119,12 @@ public class NewDriver { @@ -122,12 +119,12 @@ public class NewDriver {
122 119
123 /***注册设备列表*/ 120 /***注册设备列表*/
124 @Excel(name = "注册设备列表") 121 @Excel(name = "注册设备列表")
125 - private String signInEquipment; 122 + private java.lang.String signInEquipment;
126 123
127 124
128 /***车队名称*/ 125 /***车队名称*/
129 @Excel(name = "车队名称") 126 @Excel(name = "车队名称")
130 - private String fleetName; 127 + private java.lang.String fleetName;
131 128
132 129
133 /***人脸识别特征*/ 130 /***人脸识别特征*/
@@ -142,6 +139,7 @@ public class NewDriver { @@ -142,6 +139,7 @@ public class NewDriver {
142 139
143 /***同步结果状态;0成功,1失败*/ 140 /***同步结果状态;0成功,1失败*/
144 @Excel(name = "同步结果状态;0成功,1失败") 141 @Excel(name = "同步结果状态;0成功,1失败")
  142 + @TableField(value = "`integer`")
145 private java.lang.Integer integer; 143 private java.lang.Integer integer;
146 144
147 145
@@ -155,6 +153,14 @@ public class NewDriver { @@ -155,6 +153,14 @@ public class NewDriver {
155 private java.lang.String csn; 153 private java.lang.String csn;
156 154
157 155
  156 + /***图片版本号*/
  157 + @Excel(name = "图片版本号")
  158 + private java.lang.Integer imageVersion;
  159 +
  160 + @TableField(exist = false)
  161 + private float imageScore;
  162 +
  163 +
158 @Override 164 @Override
159 public String toString() { 165 public String toString() {
160 return com.alibaba.fastjson2.JSON.toJSONString(this); 166 return com.alibaba.fastjson2.JSON.toJSONString(this);
Bsth-admin/src/main/java/com/ruoyi/domain/driver/dss/syn/login/dto/LoginDriverDTO.java
@@ -8,7 +8,7 @@ import lombok.Data; @@ -8,7 +8,7 @@ import lombok.Data;
8 import lombok.EqualsAndHashCode; 8 import lombok.EqualsAndHashCode;
9 import lombok.experimental.Accessors; 9 import lombok.experimental.Accessors;
10 10
11 -import javax.validation.constraints.NotNull; 11 +import javax.validation.constraints.NotEmpty;
12 import java.util.Date; 12 import java.util.Date;
13 13
14 /** 14 /**
@@ -22,15 +22,15 @@ import java.util.Date; @@ -22,15 +22,15 @@ import java.util.Date;
22 public class LoginDriverDTO implements java.io.Serializable { 22 public class LoginDriverDTO implements java.io.Serializable {
23 23
24 private static final long serialVersionUID = -1677262685203673206L; 24 private static final long serialVersionUID = -1677262685203673206L;
25 - @NotNull(message = "设备上线号不能为空") 25 + @NotEmpty(message = "设备上线号不能为空")
26 @ApiModelProperty(value = "设备上线号", required = true) 26 @ApiModelProperty(value = "设备上线号", required = true)
27 private String device; 27 private String device;
28 28
29 - @NotNull(message = "登录校验类型不能为空") 29 + @NotEmpty(message = "登录校验类型不能为空")
30 @ApiModelProperty(value = "登录校验类型;0:卡号登录,1:人脸登录", required = true) 30 @ApiModelProperty(value = "登录校验类型;0:卡号登录,1:人脸登录", required = true)
31 private String authType; 31 private String authType;
32 32
33 - @NotNull(message = "登录校验信息 不能为空") 33 + @NotEmpty(message = "登录校验信息 不能为空")
34 @ApiModelProperty(value = "登录校验类型; 登录校验信息 卡号或人脸图片数据,图片数据格式为BASE64", required = true) 34 @ApiModelProperty(value = "登录校验类型; 登录校验信息 卡号或人脸图片数据,图片数据格式为BASE64", required = true)
35 private String authValue; 35 private String authValue;
36 36
Bsth-admin/src/main/java/com/ruoyi/domain/driver/dss/syn/res/dto/FaceRegisterDTO.java
@@ -10,7 +10,7 @@ import lombok.EqualsAndHashCode; @@ -10,7 +10,7 @@ import lombok.EqualsAndHashCode;
10 import lombok.NoArgsConstructor; 10 import lombok.NoArgsConstructor;
11 import lombok.experimental.Accessors; 11 import lombok.experimental.Accessors;
12 12
13 -import javax.validation.constraints.NotNull; 13 +import javax.validation.constraints.NotEmpty;
14 import java.util.Date; 14 import java.util.Date;
15 15
16 /** 16 /**
@@ -26,17 +26,17 @@ import java.util.Date; @@ -26,17 +26,17 @@ import java.util.Date;
26 public class FaceRegisterDTO implements java.io.Serializable { 26 public class FaceRegisterDTO implements java.io.Serializable {
27 27
28 private static final long serialVersionUID = 228485023686482474L; 28 private static final long serialVersionUID = 228485023686482474L;
29 - @NotNull(message = "设备上线号 不能为空") 29 + @NotEmpty(message = "设备上线号 不能为空")
30 @ApiModelProperty(value = "设备上线号", required = true) 30 @ApiModelProperty(value = "设备上线号", required = true)
31 private String device; 31 private String device;
32 - @NotNull(message = "IC卡号 不能为空") 32 + @NotEmpty(message = "IC卡号 不能为空")
33 @ApiModelProperty(value = "IC卡号", required = true) 33 @ApiModelProperty(value = "IC卡号", required = true)
34 private String driverCode; 34 private String driverCode;
35 35
36 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") 36 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
37 @ApiModelProperty(value = "时间") 37 @ApiModelProperty(value = "时间")
38 private Date regTime; 38 private Date regTime;
39 - @NotNull(message = "人脸图片数据 不能为空") 39 + @NotEmpty(message = "人脸图片数据 不能为空")
40 @ApiModelProperty(value = "人脸图片数据", required = true) 40 @ApiModelProperty(value = "人脸图片数据", required = true)
41 private String faceValue; 41 private String faceValue;
42 42
Bsth-admin/src/main/java/com/ruoyi/domain/driver/dss/syn/res/dto/ReqDataDTO.java 0 → 100644
  1 +package com.ruoyi.domain.driver.dss.syn.res.dto;
  2 +
  3 +import com.alibaba.fastjson2.JSON;
  4 +import io.swagger.annotations.ApiModel;
  5 +import io.swagger.annotations.ApiModelProperty;
  6 +import lombok.AllArgsConstructor;
  7 +import lombok.Data;
  8 +import lombok.EqualsAndHashCode;
  9 +import lombok.NoArgsConstructor;
  10 +import lombok.experimental.Accessors;
  11 +
  12 +import javax.validation.constraints.NotEmpty;
  13 +
  14 +/**
  15 + * @author liujun
  16 + * @date 2024年07月29日 16:56
  17 + */
  18 +@Data
  19 +@NoArgsConstructor
  20 +@AllArgsConstructor
  21 +@Accessors(chain = true)
  22 +@ApiModel(value = "终端同步人脸数据 DTO")
  23 +@EqualsAndHashCode(callSuper = false)
  24 +public class ReqDataDTO implements java.io.Serializable {
  25 +
  26 + private static final long serialVersionUID = 7218144455404373395L;
  27 +
  28 + @NotEmpty(message = "设备号不能为空")
  29 + @ApiModelProperty(value = "设备上线号", required = true)
  30 + private String device;
  31 + @NotEmpty(message = "设备ID不能为空")
  32 + @ApiModelProperty(value = "设备ID", required = true)
  33 + private String deviceId;
  34 + @ApiModelProperty(value = "终端人脸数据版本 null终端无记录", required = true)
  35 + private String versionNo;
  36 +
  37 + @Override
  38 + public String toString() {
  39 + return JSON.toJSONString(this);
  40 + }
  41 +}
Bsth-admin/src/main/java/com/ruoyi/domain/driver/dss/syn/res/dto/ResDataDriveDTO.java
@@ -9,6 +9,7 @@ import lombok.EqualsAndHashCode; @@ -9,6 +9,7 @@ import lombok.EqualsAndHashCode;
9 import lombok.NoArgsConstructor; 9 import lombok.NoArgsConstructor;
10 import lombok.experimental.Accessors; 10 import lombok.experimental.Accessors;
11 11
  12 +import javax.validation.constraints.NotEmpty;
12 import javax.validation.constraints.NotNull; 13 import javax.validation.constraints.NotNull;
13 import java.util.Set; 14 import java.util.Set;
14 15
@@ -25,19 +26,19 @@ import java.util.Set; @@ -25,19 +26,19 @@ import java.util.Set;
25 public class ResDataDriveDTO implements java.io.Serializable { 26 public class ResDataDriveDTO implements java.io.Serializable {
26 27
27 private static final long serialVersionUID = -815323242596921313L; 28 private static final long serialVersionUID = -815323242596921313L;
28 - @NotNull(message = "服务器人脸信息版本号不能为空") 29 + @NotEmpty(message = "服务器人脸信息版本号不能为空")
29 @ApiModelProperty(value = "服务器人脸信息版本号", required = true) 30 @ApiModelProperty(value = "服务器人脸信息版本号", required = true)
30 private String versionNo; 31 private String versionNo;
31 32
32 - @NotNull(message = "设备上线号不能为空") 33 + @NotEmpty(message = "设备上线号不能为空")
33 @ApiModelProperty(value = "设备上线号", required = true) 34 @ApiModelProperty(value = "设备上线号", required = true)
34 private String device; 35 private String device;
35 36
36 - @NotNull(message = "设备ID不能为空") 37 + @NotEmpty(message = "设备ID不能为空")
37 @ApiModelProperty(value = "设备ID", required = true) 38 @ApiModelProperty(value = "设备ID", required = true)
38 private String deviceId; 39 private String deviceId;
39 40
40 - @NotNull(message = "员工id不能为空") 41 + @NotEmpty(message = "员工id不能为空")
41 @ApiModelProperty(value = "员工id", required = true) 42 @ApiModelProperty(value = "员工id", required = true)
42 private String staffId; 43 private String staffId;
43 @ApiModelProperty(value = "员工姓名") 44 @ApiModelProperty(value = "员工姓名")
@@ -57,11 +58,11 @@ public class ResDataDriveDTO implements java.io.Serializable { @@ -57,11 +58,11 @@ public class ResDataDriveDTO implements java.io.Serializable {
57 @ApiModelProperty(value = "同步结果状态;0成功,1失败", required = true, example = "1") 58 @ApiModelProperty(value = "同步结果状态;0成功,1失败", required = true, example = "1")
58 private Integer integer; 59 private Integer integer;
59 60
60 - @NotNull(message = "同步内容不能为空") 61 + @NotEmpty(message = "同步内容不能为空")
61 @ApiModelProperty(value = "同步内容", required = true) 62 @ApiModelProperty(value = "同步内容", required = true)
62 private String synContent; 63 private String synContent;
63 64
64 - @NotNull(message = "物理卡号不能为空") 65 + @NotEmpty(message = "物理卡号不能为空")
65 @ApiModelProperty(value = "物理卡号", required = true) 66 @ApiModelProperty(value = "物理卡号", required = true)
66 private String csn; 67 private String csn;
67 68
Bsth-admin/src/main/java/com/ruoyi/domain/driver/dss/syn/res/vo/ReqDataVo.java 0 → 100644
  1 +package com.ruoyi.domain.driver.dss.syn.res.vo;
  2 +
  3 +import io.swagger.annotations.ApiModel;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +import lombok.AllArgsConstructor;
  6 +import lombok.Data;
  7 +import lombok.EqualsAndHashCode;
  8 +import lombok.NoArgsConstructor;
  9 +import lombok.experimental.Accessors;
  10 +
  11 +import java.util.Set;
  12 +
  13 +/**
  14 + * @author liujun
  15 + * @date 2024年07月29日 17:01
  16 + */
  17 +@Data
  18 +@NoArgsConstructor
  19 +@AllArgsConstructor
  20 +@Accessors(chain = true)
  21 +@ApiModel(value = "终端同步人脸数据 Vo")
  22 +@EqualsAndHashCode(callSuper = false)
  23 +public class ReqDataVo implements java.io.Serializable {
  24 +
  25 + private static final long serialVersionUID = -4791224929481921281L;
  26 + @ApiModelProperty(value = "服务器人脸信息版本号")
  27 + private String versionNo;
  28 + @ApiModelProperty(value = "员工id")
  29 + private String staffId;
  30 + @ApiModelProperty(value = "员工姓名")
  31 + private String staffName;
  32 + @ApiModelProperty(value = "IC卡号")
  33 + private String icCardNo;
  34 + @ApiModelProperty(value = "原始图片地址")
  35 + private String facePhotoPath;
  36 + @ApiModelProperty(value = "解析后的访问图片地址")
  37 + private String cropFacePhotoUrl;
  38 + @ApiModelProperty(value = "人脸识别特征值")
  39 + private String faceFeature;
  40 + @ApiModelProperty(value = "手环mac地址")
  41 + private String blueTooth;
  42 + @ApiModelProperty(value = "工号")
  43 + private String staffCode;
  44 + @ApiModelProperty(value = "同步状态")
  45 + private Integer synState;
  46 + @ApiModelProperty(value = "同步内容")
  47 + private String synContent;
  48 + @ApiModelProperty(value = "物理卡号")
  49 + private String csn;
  50 + @ApiModelProperty(value = "角色类型 1:员工 2:驾驶员 3管理员 4移车员")
  51 + private Set<Integer> staffTypeItem;
  52 +}
Bsth-admin/src/main/java/com/ruoyi/domain/dss/car/info/dto/GetPlatesDTO.java
@@ -7,7 +7,7 @@ import lombok.Data; @@ -7,7 +7,7 @@ import lombok.Data;
7 import lombok.EqualsAndHashCode; 7 import lombok.EqualsAndHashCode;
8 import lombok.experimental.Accessors; 8 import lombok.experimental.Accessors;
9 9
10 -import javax.validation.constraints.NotNull; 10 +import javax.validation.constraints.NotEmpty;
11 11
12 /** 12 /**
13 * @author liujun 13 * @author liujun
@@ -25,7 +25,7 @@ public class GetPlatesDTO implements java.io.Serializable { @@ -25,7 +25,7 @@ public class GetPlatesDTO implements java.io.Serializable {
25 @ApiModelProperty(value = "模糊查询参数,null返回data=nul") 25 @ApiModelProperty(value = "模糊查询参数,null返回data=nul")
26 private String plate; 26 private String plate;
27 27
28 - @NotNull(message = "设备上线号不能为空") 28 + @NotEmpty(message = "设备上线号不能为空")
29 @ApiModelProperty(value = "设备上线号", required = true) 29 @ApiModelProperty(value = "设备上线号", required = true)
30 private String device; 30 private String device;
31 31
Bsth-admin/src/main/java/com/ruoyi/domain/dss/equipment/dto/EquipmentAuthDTO.java
@@ -7,7 +7,7 @@ import lombok.Data; @@ -7,7 +7,7 @@ import lombok.Data;
7 import lombok.EqualsAndHashCode; 7 import lombok.EqualsAndHashCode;
8 import lombok.experimental.Accessors; 8 import lombok.experimental.Accessors;
9 9
10 -import javax.validation.constraints.NotNull; 10 +import javax.validation.constraints.NotEmpty;
11 import java.util.Date; 11 import java.util.Date;
12 12
13 /** 13 /**
@@ -19,7 +19,8 @@ import java.util.Date; @@ -19,7 +19,8 @@ import java.util.Date;
19 @Accessors(chain = true) 19 @Accessors(chain = true)
20 @EqualsAndHashCode(callSuper = false) 20 @EqualsAndHashCode(callSuper = false)
21 public class EquipmentAuthDTO { 21 public class EquipmentAuthDTO {
22 - @NotNull(message = "设备号不能为空") 22 +
  23 + @NotEmpty(message = "设备号不能为空")
23 @ApiModelProperty(value = "设备上线号", required = true) 24 @ApiModelProperty(value = "设备上线号", required = true)
24 private String device; 25 private String device;
25 @ApiModelProperty(value = "获取token设备时间", required = true) 26 @ApiModelProperty(value = "获取token设备时间", required = true)
Bsth-admin/src/main/java/com/ruoyi/domain/dss/equipment/dto/EquipmentSelfcheckDto.java
@@ -9,6 +9,7 @@ import lombok.Data; @@ -9,6 +9,7 @@ import lombok.Data;
9 import lombok.EqualsAndHashCode; 9 import lombok.EqualsAndHashCode;
10 import lombok.experimental.Accessors; 10 import lombok.experimental.Accessors;
11 11
  12 +import javax.validation.constraints.NotEmpty;
12 import javax.validation.constraints.NotNull; 13 import javax.validation.constraints.NotNull;
13 import java.util.Date; 14 import java.util.Date;
14 import java.util.List; 15 import java.util.List;
@@ -25,11 +26,11 @@ public class EquipmentSelfcheckDto implements java.io.Serializable { @@ -25,11 +26,11 @@ public class EquipmentSelfcheckDto implements java.io.Serializable {
25 26
26 private static final long serialVersionUID = 1874941263694729359L; 27 private static final long serialVersionUID = 1874941263694729359L;
27 28
28 - @NotNull(message = "设备上线号不能为空") 29 + @NotEmpty(message = "设备上线号不能为空")
29 @ApiModelProperty(value = "设备上线号", required = true) 30 @ApiModelProperty(value = "设备上线号", required = true)
30 private String device; 31 private String device;
31 32
32 - @NotNull(message = "设备应用版本号不能为空") 33 + @NotEmpty(message = "设备应用版本号不能为空")
33 @ApiModelProperty(value = "设备应用版本号", required = true) 34 @ApiModelProperty(value = "设备应用版本号", required = true)
34 @JsonProperty("app_version") 35 @JsonProperty("app_version")
35 private String appVersion; 36 private String appVersion;
@@ -58,7 +59,7 @@ public class EquipmentSelfcheckDto implements java.io.Serializable { @@ -58,7 +59,7 @@ public class EquipmentSelfcheckDto implements java.io.Serializable {
58 private Date time; 59 private Date time;
59 60
60 @ApiModelProperty(value = "设备类型") 61 @ApiModelProperty(value = "设备类型")
61 - private String deviceTyp; 62 + private String deviceType;
62 63
63 @ApiModelProperty(value = "是否拥有钥匙柜外设:null/0:否,1:是", example = "1") 64 @ApiModelProperty(value = "是否拥有钥匙柜外设:null/0:否,1:是", example = "1")
64 private Integer isKeybox; 65 private Integer isKeybox;
Bsth-admin/src/main/java/com/ruoyi/domain/dss/equipment/dto/ExKeysDTO.java
@@ -7,6 +7,7 @@ import lombok.Data; @@ -7,6 +7,7 @@ import lombok.Data;
7 import lombok.EqualsAndHashCode; 7 import lombok.EqualsAndHashCode;
8 import lombok.experimental.Accessors; 8 import lombok.experimental.Accessors;
9 9
  10 +import javax.validation.constraints.NotEmpty;
10 import javax.validation.constraints.NotNull; 11 import javax.validation.constraints.NotNull;
11 12
12 /** 13 /**
@@ -20,7 +21,7 @@ import javax.validation.constraints.NotNull; @@ -20,7 +21,7 @@ import javax.validation.constraints.NotNull;
20 public class ExKeysDTO implements java.io.Serializable { 21 public class ExKeysDTO implements java.io.Serializable {
21 22
22 private static final long serialVersionUID = -6900289229012374739L; 23 private static final long serialVersionUID = -6900289229012374739L;
23 - @NotNull(message = "设备号不能为空") 24 + @NotEmpty(message = "设备号不能为空")
24 @ApiModelProperty(value = "设备上线号", required = true) 25 @ApiModelProperty(value = "设备上线号", required = true)
25 private String device; 26 private String device;
26 @NotNull(message = "钥匙位号不能为空") 27 @NotNull(message = "钥匙位号不能为空")
Bsth-admin/src/main/java/com/ruoyi/domain/dss/equipment/dto/HeartbeatDTO.java
@@ -8,6 +8,7 @@ import lombok.Data; @@ -8,6 +8,7 @@ import lombok.Data;
8 import lombok.EqualsAndHashCode; 8 import lombok.EqualsAndHashCode;
9 import lombok.experimental.Accessors; 9 import lombok.experimental.Accessors;
10 10
  11 +import javax.validation.constraints.NotEmpty;
11 import javax.validation.constraints.NotNull; 12 import javax.validation.constraints.NotNull;
12 import java.util.Date; 13 import java.util.Date;
13 import java.util.List; 14 import java.util.List;
@@ -25,7 +26,7 @@ public class HeartbeatDTO implements java.io.Serializable { @@ -25,7 +26,7 @@ public class HeartbeatDTO implements java.io.Serializable {
25 26
26 private static final long serialVersionUID = 5168784920496912635L; 27 private static final long serialVersionUID = 5168784920496912635L;
27 28
28 - @NotNull(message = "设备号不能为空") 29 + @NotEmpty(message = "设备号不能为空")
29 @ApiModelProperty(value = "设备上线号", required = true) 30 @ApiModelProperty(value = "设备上线号", required = true)
30 private String device; 31 private String device;
31 32
Bsth-admin/src/main/java/com/ruoyi/domain/dss/equipment/vo/EquipmentConfigVo.java
@@ -24,8 +24,22 @@ import java.math.BigDecimal; @@ -24,8 +24,22 @@ import java.math.BigDecimal;
24 public class EquipmentConfigVo implements java.io.Serializable { 24 public class EquipmentConfigVo implements java.io.Serializable {
25 25
26 private static final long serialVersionUID = -3893021736941993364L; 26 private static final long serialVersionUID = -3893021736941993364L;
  27 + @ApiModelProperty(value = "是否开启")
27 private Integer promiseSwitch; 28 private Integer promiseSwitch;
28 29
  30 + @ApiModelProperty(value = "是否开启健康检测 0:不开启 1:开启",example = "1")
  31 + private Integer healthCheck;
  32 +
  33 + @ApiModelProperty(value = "是否开启情绪检测 0:不开启 1:开启",example = "1")
  34 + private Integer moodCheck;
  35 +
  36 + @ApiModelProperty(value = "是否开启安全考试 0:不开启 1:开启",example = "1")
  37 + private Integer safetyExam;
  38 +
  39 + @ApiModelProperty(value = "开启体温检测 0:不开启 1:开启",example = "1")
  40 + private Integer temperatureSwitch;
  41 +
  42 +
29 @ApiModelProperty(value = "饮酒限制值") 43 @ApiModelProperty(value = "饮酒限制值")
30 private BigDecimal drinking; 44 private BigDecimal drinking;
31 @ApiModelProperty(value = "醉酒限制值") 45 @ApiModelProperty(value = "醉酒限制值")
Bsth-admin/src/main/java/com/ruoyi/domain/dss/key/location/dto/WorkPlateV2DTO.java
@@ -8,6 +8,7 @@ import lombok.Data; @@ -8,6 +8,7 @@ import lombok.Data;
8 import lombok.EqualsAndHashCode; 8 import lombok.EqualsAndHashCode;
9 import lombok.experimental.Accessors; 9 import lombok.experimental.Accessors;
10 10
  11 +import javax.validation.constraints.NotEmpty;
11 import javax.validation.constraints.NotNull; 12 import javax.validation.constraints.NotNull;
12 import java.util.Date; 13 import java.util.Date;
13 14
@@ -20,16 +21,16 @@ import java.util.Date; @@ -20,16 +21,16 @@ import java.util.Date;
20 @Accessors(chain = true) 21 @Accessors(chain = true)
21 @EqualsAndHashCode(callSuper = false) 22 @EqualsAndHashCode(callSuper = false)
22 public class WorkPlateV2DTO { 23 public class WorkPlateV2DTO {
23 - @NotNull(message = "设备上线号不能为空") 24 + @NotEmpty(message = "设备上线号不能为空")
24 @ApiModelProperty(value = "设备上线号", required = true) 25 @ApiModelProperty(value = "设备上线号", required = true)
25 private String device; 26 private String device;
26 - @NotNull(message = "设备类型不能为空") 27 + @NotEmpty(message = "设备类型不能为空")
27 @ApiModelProperty(value = "设备类型上线号", required = true) 28 @ApiModelProperty(value = "设备类型上线号", required = true)
28 private String deviceType; 29 private String deviceType;
29 - @NotNull(message = "卡号不能为空") 30 + @NotEmpty(message = "卡号不能为空")
30 @ApiModelProperty(value = "卡号", required = true) 31 @ApiModelProperty(value = "卡号", required = true)
31 private String driverCode; 32 private String driverCode;
32 - @NotNull(message = "工号不能为空") 33 + @NotEmpty(message = "工号不能为空")
33 @ApiModelProperty(value = "工号", required = true) 34 @ApiModelProperty(value = "工号", required = true)
34 private String staffCode; 35 private String staffCode;
35 36
Bsth-admin/src/main/java/com/ruoyi/domain/dss/sign/dto/DssSignDTO.java
@@ -8,6 +8,7 @@ import lombok.Data; @@ -8,6 +8,7 @@ import lombok.Data;
8 import lombok.EqualsAndHashCode; 8 import lombok.EqualsAndHashCode;
9 import lombok.experimental.Accessors; 9 import lombok.experimental.Accessors;
10 10
  11 +import javax.validation.constraints.NotEmpty;
11 import javax.validation.constraints.NotNull; 12 import javax.validation.constraints.NotNull;
12 import java.math.BigDecimal; 13 import java.math.BigDecimal;
13 import java.util.Date; 14 import java.util.Date;
@@ -21,19 +22,19 @@ import java.util.Date; @@ -21,19 +22,19 @@ import java.util.Date;
21 @Accessors(chain = true) 22 @Accessors(chain = true)
22 @EqualsAndHashCode(callSuper = false) 23 @EqualsAndHashCode(callSuper = false)
23 public class DssSignDTO { 24 public class DssSignDTO {
24 - @NotNull(message = "设备上线号 不能为空") 25 + @NotEmpty(message = "设备上线号 不能为空")
25 @ApiModelProperty(value = "设备上线号", required = true) 26 @ApiModelProperty(value = "设备上线号", required = true)
26 private String device; 27 private String device;
27 28
28 - @NotNull(message = "设备类型 不能为空") 29 + @NotEmpty(message = "设备类型 不能为空")
29 @ApiModelProperty(value = "设备类型", required = true) 30 @ApiModelProperty(value = "设备类型", required = true)
30 private String deviceType; 31 private String deviceType;
31 32
32 - @NotNull(message = "司机卡号 不能为空") 33 + @NotEmpty(message = "司机卡号 不能为空")
33 @ApiModelProperty(value = "司机卡号", required = true) 34 @ApiModelProperty(value = "司机卡号", required = true)
34 private String driverCode; 35 private String driverCode;
35 36
36 - @NotNull(message = "司机工号 不能为空") 37 + @NotEmpty(message = "司机工号 不能为空")
37 @ApiModelProperty(value = "司机工号", required = true) 38 @ApiModelProperty(value = "司机工号", required = true)
38 private String staffCode; 39 private String staffCode;
39 40
Bsth-admin/src/main/java/com/ruoyi/domain/dss/sign/dto/DssSignOutDTO.java
@@ -8,6 +8,7 @@ import lombok.Data; @@ -8,6 +8,7 @@ import lombok.Data;
8 import lombok.EqualsAndHashCode; 8 import lombok.EqualsAndHashCode;
9 import lombok.experimental.Accessors; 9 import lombok.experimental.Accessors;
10 10
  11 +import javax.validation.constraints.NotEmpty;
11 import javax.validation.constraints.NotNull; 12 import javax.validation.constraints.NotNull;
12 import java.util.Date; 13 import java.util.Date;
13 14
@@ -24,10 +25,10 @@ public class DssSignOutDTO implements java.io.Serializable { @@ -24,10 +25,10 @@ public class DssSignOutDTO implements java.io.Serializable {
24 25
25 private static final long serialVersionUID = 3995970715143952495L; 26 private static final long serialVersionUID = 3995970715143952495L;
26 27
27 - @NotNull(message = "签退设备上线号 不能为空") 28 + @NotEmpty(message = "签退设备上线号 不能为空")
28 @ApiModelProperty(value = "设备上线号", required = true) 29 @ApiModelProperty(value = "设备上线号", required = true)
29 private String device; 30 private String device;
30 - @NotNull(message = "签退卡号 不能为空") 31 + @NotEmpty(message = "签退卡号 不能为空")
31 @ApiModelProperty(value = "卡号") 32 @ApiModelProperty(value = "卡号")
32 private String driverCode; 33 private String driverCode;
33 34
Bsth-admin/src/main/java/com/ruoyi/domain/equipment/self/check/LingangEquimentSelfCheck.java
1 package com.ruoyi.domain.equipment.self.check; 1 package com.ruoyi.domain.equipment.self.check;
2 2
3 -import lombok.Data;  
4 import com.baomidou.mybatisplus.annotation.IdType; 3 import com.baomidou.mybatisplus.annotation.IdType;
5 import com.baomidou.mybatisplus.annotation.TableField; 4 import com.baomidou.mybatisplus.annotation.TableField;
6 import com.baomidou.mybatisplus.annotation.TableId; 5 import com.baomidou.mybatisplus.annotation.TableId;
7 import com.baomidou.mybatisplus.annotation.TableName; 6 import com.baomidou.mybatisplus.annotation.TableName;
8 -import org.apache.commons.lang3.StringUtils; 7 +import com.ruoyi.common.annotation.Excel;
  8 +import lombok.AllArgsConstructor;
  9 +import lombok.Data;
9 import lombok.EqualsAndHashCode; 10 import lombok.EqualsAndHashCode;
  11 +import lombok.NoArgsConstructor;
10 import lombok.experimental.Accessors; 12 import lombok.experimental.Accessors;
11 import lombok.extern.slf4j.Slf4j; 13 import lombok.extern.slf4j.Slf4j;
12 -import lombok.NoArgsConstructor;  
13 -import lombok.AllArgsConstructor;  
14 -import com.ruoyi.common.annotation.Excel;  
15 14
16 15
17 @Data 16 @Data
@@ -69,6 +68,7 @@ public class LingangEquimentSelfCheck { @@ -69,6 +68,7 @@ public class LingangEquimentSelfCheck {
69 68
70 /***锁控状态 1正常,2故障,null/3未检测到*/ 69 /***锁控状态 1正常,2故障,null/3未检测到*/
71 @Excel(name = "锁控状态 1正常,2故障,null/3未检测到") 70 @Excel(name = "锁控状态 1正常,2故障,null/3未检测到")
  71 + @TableField(value = "`lock`")
72 private java.lang.Integer lock; 72 private java.lang.Integer lock;
73 73
74 74
Bsth-admin/src/main/java/com/ruoyi/domain/key/info/box/dto/KeyBoxQueryDTO.java
@@ -7,7 +7,7 @@ import lombok.Data; @@ -7,7 +7,7 @@ import lombok.Data;
7 import lombok.EqualsAndHashCode; 7 import lombok.EqualsAndHashCode;
8 import lombok.experimental.Accessors; 8 import lombok.experimental.Accessors;
9 9
10 -import javax.validation.constraints.NotNull; 10 +import javax.validation.constraints.NotEmpty;
11 11
12 /** 12 /**
13 * @author liujun 13 * @author liujun
@@ -20,27 +20,27 @@ import javax.validation.constraints.NotNull; @@ -20,27 +20,27 @@ import javax.validation.constraints.NotNull;
20 public class KeyBoxQueryDTO implements java.io.Serializable { 20 public class KeyBoxQueryDTO implements java.io.Serializable {
21 21
22 private static final long serialVersionUID = -1865377310922939750L; 22 private static final long serialVersionUID = -1865377310922939750L;
23 - @NotNull(message = "设备号 不能为空") 23 + @NotEmpty(message = "设备号 不能为空")
24 @ApiModelProperty(value = "设备号", required = true) 24 @ApiModelProperty(value = "设备号", required = true)
25 private String device; 25 private String device;
26 26
27 - @NotNull(message = "设备类型 不能为空") 27 + @NotEmpty(message = "设备类型 不能为空")
28 @ApiModelProperty(value = "设备类型", required = true) 28 @ApiModelProperty(value = "设备类型", required = true)
29 private String deviceType; 29 private String deviceType;
30 30
31 - @NotNull(message = " 司机卡号不能为空") 31 + @NotEmpty(message = " 司机卡号不能为空")
32 @ApiModelProperty(value = "司机卡号", required = true) 32 @ApiModelProperty(value = "司机卡号", required = true)
33 private String driverCode; 33 private String driverCode;
34 34
35 - @NotNull(message = "工号 不能为空") 35 + @NotEmpty(message = "工号 不能为空")
36 @ApiModelProperty(value = "工号", required = true) 36 @ApiModelProperty(value = "工号", required = true)
37 private String staffCode; 37 private String staffCode;
38 38
39 - @NotNull(message = "时间 不能为空") 39 + @NotEmpty(message = "时间 不能为空")
40 @ApiModelProperty(value = "时间", required = true) 40 @ApiModelProperty(value = "时间", required = true)
41 private String time; 41 private String time;
42 42
43 - @NotNull(message = " 类型 不能为空") 43 + @NotEmpty(message = " 类型 不能为空")
44 @ApiModelProperty(value = "类型:0签到上报获取,1签退归还获取", required = true) 44 @ApiModelProperty(value = "类型:0签到上报获取,1签退归还获取", required = true)
45 private String eventType; 45 private String eventType;
46 46
Bsth-admin/src/main/java/com/ruoyi/expand/domain/DriverSchedulingExpand.java
1 package com.ruoyi.expand.domain; 1 package com.ruoyi.expand.domain;
2 2
3 -import java.util.Date;  
4 import com.fasterxml.jackson.annotation.JsonFormat; 3 import com.fasterxml.jackson.annotation.JsonFormat;
5 -import lombok.ToString;  
6 -import org.apache.commons.lang3.builder.ToStringBuilder;  
7 -import org.apache.commons.lang3.builder.ToStringStyle;  
8 import com.ruoyi.common.annotation.Excel; 4 import com.ruoyi.common.annotation.Excel;
9 import com.ruoyi.common.core.domain.BaseEntity; 5 import com.ruoyi.common.core.domain.BaseEntity;
  6 +import lombok.ToString;
10 7
11 import javax.validation.constraints.NotBlank; 8 import javax.validation.constraints.NotBlank;
12 import javax.validation.constraints.NotNull; 9 import javax.validation.constraints.NotNull;
  10 +import java.util.Date;
13 11
14 /** 12 /**
15 * 跟班设置对象 driver_scheduling_expand 13 * 跟班设置对象 driver_scheduling_expand
Bsth-admin/src/main/resources/mapper/driver/NewDriverMapper.xml
@@ -2,8 +2,8 @@ @@ -2,8 +2,8 @@
2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 <mapper namespace="com.ruoyi.mapper.driver.NewDriverMapper"> 3 <mapper namespace="com.ruoyi.mapper.driver.NewDriverMapper">
4 <resultMap id="BaseResultMap" type="com.ruoyi.domain.driver.NewDriver"> 4 <resultMap id="BaseResultMap" type="com.ruoyi.domain.driver.NewDriver">
5 - <id column="id" jdbcType="INTEGER" property="id"/>  
6 - <result column="job_code" jdbcType="VARCHAR" property="jobCode"/> 5 + <id column="job_code" jdbcType="VARCHAR" property="jobCode"/>
  6 + <result column="id" jdbcType="INTEGER" property="id"/>
7 <result column="company_code" jdbcType="VARCHAR" property="companyCode"/> 7 <result column="company_code" jdbcType="VARCHAR" property="companyCode"/>
8 <result column="branche_company_code" jdbcType="VARCHAR" property="brancheCompanyCode"/> 8 <result column="branche_company_code" jdbcType="VARCHAR" property="brancheCompanyCode"/>
9 <result column="personnel_name" jdbcType="VARCHAR" property="personnelName"/> 9 <result column="personnel_name" jdbcType="VARCHAR" property="personnelName"/>
@@ -29,22 +29,24 @@ @@ -29,22 +29,24 @@
29 <result column="integer" jdbcType="INTEGER" property="integer"/> 29 <result column="integer" jdbcType="INTEGER" property="integer"/>
30 <result column="synContent" jdbcType="VARCHAR" property="syncontent"/> 30 <result column="synContent" jdbcType="VARCHAR" property="syncontent"/>
31 <result column="csn" jdbcType="VARCHAR" property="csn"/> 31 <result column="csn" jdbcType="VARCHAR" property="csn"/>
  32 + <result column="image_version" jdbcType="INTEGER" property="imageVersion"/>
32 </resultMap> 33 </resultMap>
33 34
34 <insert id="insertSelective" keyColumn="job_code" keyProperty="jobCode" useGeneratedKeys="true" 35 <insert id="insertSelective" keyColumn="job_code" keyProperty="jobCode" useGeneratedKeys="true"
35 parameterType="com.ruoyi.domain.driver.NewDriver"> 36 parameterType="com.ruoyi.domain.driver.NewDriver">
36 - INSERT INTO driver <include refid="insertSelectiveColumn"></include> 37 + INSERT INTO driver
  38 + <include refid="insertSelectiveColumn"></include>
37 <include refid="insertSelectiveValue"></include> 39 <include refid="insertSelectiveValue"></include>
38 </insert> 40 </insert>
39 41
40 <sql id="columns"> 42 <sql id="columns">
41 id 43 id
42 - , job_code , company_code , branche_company_code , personnel_name , papers_code , ic_card_code , personnel_type , posts , card , telphone , ic_rfid , id_rfid , tag_rfid , remark , line_name , line_code , face_sign_in , image , update_time , sign_in_equipment , fleet_name , face_Feature , blue_Tooth , integer , synContent , csn 44 + , job_code , company_code , branche_company_code , personnel_name , papers_code , ic_card_code , personnel_type , posts , card , telphone , ic_rfid , id_rfid , tag_rfid , remark , line_name , line_code , face_sign_in , image , update_time , sign_in_equipment , fleet_name , face_Feature , blue_Tooth , integer , synContent , csn , image_version
43 </sql> 45 </sql>
44 46
45 <sql id="insert_columns"> 47 <sql id="insert_columns">
46 id 48 id
47 - , job_code , company_code , branche_company_code , personnel_name , papers_code , ic_card_code , personnel_type , posts , card , telphone , ic_rfid , id_rfid , tag_rfid , remark , line_name , line_code , face_sign_in , image , update_time , sign_in_equipment , fleet_name , face_Feature , blue_Tooth , integer , synContent , csn 49 + , job_code , company_code , branche_company_code , personnel_name , papers_code , ic_card_code , personnel_type , posts , card , telphone , ic_rfid , id_rfid , tag_rfid , remark , line_name , line_code , face_sign_in , image , update_time , sign_in_equipment , fleet_name , face_Feature , blue_Tooth , integer , synContent , csn , image_version
48 </sql> 50 </sql>
49 51
50 <sql id="insert_values"> 52 <sql id="insert_values">
@@ -75,7 +77,8 @@ @@ -75,7 +77,8 @@
75 #{blueTooth}, 77 #{blueTooth},
76 #{integer}, 78 #{integer},
77 #{syncontent}, 79 #{syncontent},
78 - #{csn} 80 + #{csn},
  81 + #{imageVersion}
79 </sql> 82 </sql>
80 83
81 <sql id="insertSelectiveColumn"> 84 <sql id="insertSelectiveColumn">
@@ -107,6 +110,7 @@ @@ -107,6 +110,7 @@
107 <if test="null!=integer">integer,</if> 110 <if test="null!=integer">integer,</if>
108 <if test="null!=syncontent">synContent,</if> 111 <if test="null!=syncontent">synContent,</if>
109 <if test="null!=csn">csn,</if> 112 <if test="null!=csn">csn,</if>
  113 + <if test="null!=imageVersion">image_version,</if>
110 </trim> 114 </trim>
111 </sql> 115 </sql>
112 116
@@ -139,6 +143,7 @@ @@ -139,6 +143,7 @@
139 <if test="null!=integer">#{integer,jdbcType=INTEGER},</if> 143 <if test="null!=integer">#{integer,jdbcType=INTEGER},</if>
140 <if test="null!=syncontent">#{syncontent,jdbcType=VARCHAR},</if> 144 <if test="null!=syncontent">#{syncontent,jdbcType=VARCHAR},</if>
141 <if test="null!=csn">#{csn,jdbcType=VARCHAR},</if> 145 <if test="null!=csn">#{csn,jdbcType=VARCHAR},</if>
  146 + <if test="null!=imageVersion">#{imageVersion,jdbcType=INTEGER},</if>
142 </trim> 147 </trim>
143 </sql> 148 </sql>
144 149
@@ -171,6 +176,7 @@ @@ -171,6 +176,7 @@
171 <if test="null!=integer">integer = #{integer,jdbcType=INTEGER},</if> 176 <if test="null!=integer">integer = #{integer,jdbcType=INTEGER},</if>
172 <if test="null!=syncontent">synContent = #{syncontent,jdbcType=VARCHAR},</if> 177 <if test="null!=syncontent">synContent = #{syncontent,jdbcType=VARCHAR},</if>
173 <if test="null!=csn">csn = #{csn,jdbcType=VARCHAR},</if> 178 <if test="null!=csn">csn = #{csn,jdbcType=VARCHAR},</if>
  179 + <if test="null!=imageVersion">image_version = #{imageVersion,jdbcType=INTEGER},</if>
174 </set> 180 </set>
175 </sql> 181 </sql>
176 182
@@ -202,5 +208,6 @@ @@ -202,5 +208,6 @@
202 <if test="null!=integer">AND integer = #{integer,jdbcType=INTEGER},</if> 208 <if test="null!=integer">AND integer = #{integer,jdbcType=INTEGER},</if>
203 <if test="null!=syncontent">AND synContent = #{syncontent,jdbcType=VARCHAR},</if> 209 <if test="null!=syncontent">AND synContent = #{syncontent,jdbcType=VARCHAR},</if>
204 <if test="null!=csn">AND csn = #{csn,jdbcType=VARCHAR},</if> 210 <if test="null!=csn">AND csn = #{csn,jdbcType=VARCHAR},</if>
  211 + <if test="null!=imageVersion">AND image_version = #{imageVersion,jdbcType=INTEGER},</if>
205 </sql> 212 </sql>
206 </mapper> 213 </mapper>
207 \ No newline at end of file 214 \ No newline at end of file