Commit 467471bddb0d581f62573b7e015192a98bef5a80
1 parent
fac8b470
添加提醒功能
Showing
7 changed files
with
155 additions
and
4 deletions
Bsth-admin/src/main/java/com/ruoyi/controller/dss/DssFaceController.java
| @@ -76,8 +76,8 @@ public class DssFaceController extends BaseController { | @@ -76,8 +76,8 @@ public class DssFaceController extends BaseController { | ||
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | NewDriver driver = new NewDriver(); | 78 | NewDriver driver = new NewDriver(); |
| 79 | - driver.setPosts("驾驶员"); | ||
| 80 | - driver.setFaceSignIn(1); | 79 | +// driver.setPosts("驾驶员"); |
| 80 | +// driver.setFaceSignIn(1); | ||
| 81 | 81 | ||
| 82 | List<NewDriver> drivers = newDriverService.list(driver); | 82 | List<NewDriver> drivers = newDriverService.list(driver); |
| 83 | List<ReqDataVo> vos = convertReqDataVo(drivers); | 83 | List<ReqDataVo> vos = convertReqDataVo(drivers); |
| @@ -357,6 +357,10 @@ public class DssFaceController extends BaseController { | @@ -357,6 +357,10 @@ public class DssFaceController extends BaseController { | ||
| 357 | if (StringUtils.indexOf(post, "工会副主席") > -1) { | 357 | if (StringUtils.indexOf(post, "工会副主席") > -1) { |
| 358 | postSet.add(3); | 358 | postSet.add(3); |
| 359 | } | 359 | } |
| 360 | + if (StringUtils.indexOf(post, "管理员") > -1) { | ||
| 361 | + postSet.add(3); | ||
| 362 | + } | ||
| 363 | + | ||
| 360 | 364 | ||
| 361 | 365 | ||
| 362 | if (CollectionUtils.isEmpty(postSet)) { | 366 | if (CollectionUtils.isEmpty(postSet)) { |
Bsth-admin/src/main/java/com/ruoyi/controller/dss/RemindDriverKeyLocalController.java
0 → 100644
| 1 | +package com.ruoyi.controller.dss; | ||
| 2 | + | ||
| 3 | +import com.ruoyi.common.core.controller.BaseController; | ||
| 4 | +import com.ruoyi.common.core.domain.ResponseResult; | ||
| 5 | +import com.ruoyi.domain.dss.scheling.dto.RemindDriverReportDTO; | ||
| 6 | +import com.ruoyi.domain.dss.scheling.vo.RemindDriverReportVo; | ||
| 7 | +import io.swagger.annotations.Api; | ||
| 8 | +import io.swagger.annotations.ApiOperation; | ||
| 9 | +import lombok.extern.slf4j.Slf4j; | ||
| 10 | +import org.springframework.validation.BindingResult; | ||
| 11 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 12 | +import org.springframework.web.bind.annotation.RequestBody; | ||
| 13 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 14 | +import org.springframework.web.bind.annotation.RestController; | ||
| 15 | + | ||
| 16 | +import javax.validation.Valid; | ||
| 17 | + | ||
| 18 | +/** | ||
| 19 | + * @author liujun | ||
| 20 | + * @date 2024年10月09日 15:48 | ||
| 21 | + */ | ||
| 22 | +@Slf4j | ||
| 23 | +@RestController | ||
| 24 | +@RequestMapping("/dss") | ||
| 25 | +@Api(tags = "【对接】钥匙提醒功能") | ||
| 26 | +public class RemindDriverKeyLocalController extends BaseController { | ||
| 27 | + | ||
| 28 | + | ||
| 29 | + @ApiOperation("司机提醒信息") | ||
| 30 | + @PostMapping(value = "/remind/driver/key/local/report") | ||
| 31 | + public ResponseResult<RemindDriverReportVo> remindDriverKeyLocalReport(@Valid @RequestBody RemindDriverReportDTO request, BindingResult bindingResult) { | ||
| 32 | + if (bindingResult.hasErrors()) { | ||
| 33 | + return ResponseResult.error(bindingResult.getFieldError().getDefaultMessage()); | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + | ||
| 37 | + return null; | ||
| 38 | + } | ||
| 39 | +} |
Bsth-admin/src/main/java/com/ruoyi/domain/dss/key/location/vo/RemindKeyInfoLocalVo.java
0 → 100644
| 1 | +package com.ruoyi.domain.dss.key.location.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.NoArgsConstructor; | ||
| 8 | +import lombok.experimental.Accessors; | ||
| 9 | + | ||
| 10 | +import java.io.Serializable; | ||
| 11 | + | ||
| 12 | +/** | ||
| 13 | + * @author liujun | ||
| 14 | + * @date 2024年10月09日 15:31 | ||
| 15 | + */ | ||
| 16 | +@Data | ||
| 17 | +@NoArgsConstructor | ||
| 18 | +@AllArgsConstructor | ||
| 19 | +@Accessors(chain = true) | ||
| 20 | +@ApiModel(value = "钥匙信息提醒") | ||
| 21 | +public class RemindKeyInfoLocalVo implements Serializable { | ||
| 22 | + | ||
| 23 | + | ||
| 24 | + private static final long serialVersionUID = -6256368671786016831L; | ||
| 25 | + | ||
| 26 | + @ApiModelProperty(value = "车辆自编号") | ||
| 27 | + private String nbbm; | ||
| 28 | + | ||
| 29 | + @ApiModelProperty(value = "1=取出,0=存入,16=钥匙未归还,255=异常") | ||
| 30 | + private Integer keyInfoStatus; | ||
| 31 | + | ||
| 32 | + @ApiModelProperty(value = "钥匙已经存在的柜子") | ||
| 33 | + private String equipmentName; | ||
| 34 | + @ApiModelProperty(value = "钥匙已经存在的场地") | ||
| 35 | + private String yardName; | ||
| 36 | + | ||
| 37 | + @ApiModelProperty(value = "钥匙需要归还的柜子") | ||
| 38 | + private String returnEquipmentName; | ||
| 39 | + @ApiModelProperty(value = "钥匙需要归还的场地") | ||
| 40 | + private String returnYardName; | ||
| 41 | + | ||
| 42 | + | ||
| 43 | +} |
Bsth-admin/src/main/java/com/ruoyi/domain/dss/scheling/dto/RemindDriverReportDTO.java
0 → 100644
| 1 | +package com.ruoyi.domain.dss.scheling.dto; | ||
| 2 | + | ||
| 3 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 4 | +import io.swagger.annotations.ApiModel; | ||
| 5 | +import io.swagger.annotations.ApiModelProperty; | ||
| 6 | +import lombok.Data; | ||
| 7 | +import lombok.EqualsAndHashCode; | ||
| 8 | +import lombok.experimental.Accessors; | ||
| 9 | + | ||
| 10 | +import javax.validation.constraints.NotNull; | ||
| 11 | +import java.io.Serializable; | ||
| 12 | +import java.util.Date; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * @author liujun | ||
| 16 | + * @date 2024年10月09日 15:45 | ||
| 17 | + */ | ||
| 18 | +@Data | ||
| 19 | +@ApiModel(value = "司机和钥匙提醒信息") | ||
| 20 | +@Accessors(chain = true) | ||
| 21 | +@EqualsAndHashCode(callSuper = false) | ||
| 22 | +public class RemindDriverReportDTO implements Serializable { | ||
| 23 | + | ||
| 24 | + private static final long serialVersionUID = -2011474790725194886L; | ||
| 25 | + | ||
| 26 | + @NotNull(message = "司机工号不能为空") | ||
| 27 | + @ApiModelProperty(value = "司机工号", required = true) | ||
| 28 | + private String jobCode; | ||
| 29 | + | ||
| 30 | + @NotNull(message = "时间不能为空") | ||
| 31 | + @JsonFormat(pattern = "yyyy-MM-dd") | ||
| 32 | + @ApiModelProperty(value = "时间;格式=yyyy-MM-dd", required = true) | ||
| 33 | + private Date date; | ||
| 34 | +} |
Bsth-admin/src/main/java/com/ruoyi/domain/dss/scheling/vo/RemindDriverReportVo.java
0 → 100644
| 1 | +package com.ruoyi.domain.dss.scheling.vo; | ||
| 2 | + | ||
| 3 | +import com.ruoyi.domain.dss.key.location.vo.RemindKeyInfoLocalVo; | ||
| 4 | +import io.swagger.annotations.ApiModel; | ||
| 5 | +import io.swagger.annotations.ApiModelProperty; | ||
| 6 | +import lombok.AllArgsConstructor; | ||
| 7 | +import lombok.Data; | ||
| 8 | +import lombok.NoArgsConstructor; | ||
| 9 | +import lombok.experimental.Accessors; | ||
| 10 | + | ||
| 11 | +import java.io.Serializable; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * @author liujun | ||
| 16 | + * @date 2024年10月09日 15:35 | ||
| 17 | + */ | ||
| 18 | +@Data | ||
| 19 | +@NoArgsConstructor | ||
| 20 | +@AllArgsConstructor | ||
| 21 | +@Accessors(chain = true) | ||
| 22 | +@ApiModel(value = "司机当天排班信息") | ||
| 23 | +public class RemindDriverReportVo implements Serializable { | ||
| 24 | + | ||
| 25 | + private static final long serialVersionUID = 2852709680924849711L; | ||
| 26 | + | ||
| 27 | + @ApiModelProperty(value = "当天有多少个班次") | ||
| 28 | + private Integer count; | ||
| 29 | + @ApiModelProperty(value = "钥匙地址提醒信息") | ||
| 30 | + private List<RemindKeyInfoLocalVo> remindKeyInfoLocalVoList; | ||
| 31 | +} |
Bsth-admin/src/main/java/com/ruoyi/service/impl/dss/FaceServiceImpl.java
| @@ -75,7 +75,7 @@ public class FaceServiceImpl implements FaceService { | @@ -75,7 +75,7 @@ public class FaceServiceImpl implements FaceService { | ||
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | - Optional<NewDriver> optional = drivers.stream().map(dr -> { | 78 | + Optional<NewDriver> optional = drivers.parallelStream().map(dr -> { |
| 79 | float imageScore = checkFaceScore(dr, sourceFaceFeature); | 79 | float imageScore = checkFaceScore(dr, sourceFaceFeature); |
| 80 | dr.setImageScore(imageScore); | 80 | dr.setImageScore(imageScore); |
| 81 | 81 |
Bsth-admin/src/main/resources/application-druid-devTest.yml
| @@ -215,4 +215,4 @@ bsth: | @@ -215,4 +215,4 @@ bsth: | ||
| 215 | faceFeature: | 215 | faceFeature: |
| 216 | url: http://222.76.217.238:8880/fcgi-bin/entry.fcgi/system | 216 | url: http://222.76.217.238:8880/fcgi-bin/entry.fcgi/system |
| 217 | skip: | 217 | skip: |
| 218 | - url: /big/view/queryNumberByType;/big/view/queryLineInfo/*;/big/view/querySignDetails;/report/list/**;/system/dict/data/**;/app/version/check/**;/app/checkDeviceHeart;/app/download;"/driver/**;/in/**;/eexception/**;/equipment/**;/report/**;/login;/register;/captchaImage;/dss/Driver/Auth;/login/no/code;/uploadPath/** | 218 | + url: /big/view/queryNumberByType;/big/view/queryLineInfo/*;/big/view/querySignDetails;/report/list/**;/system/dict/data/**;/app/version/check/**;/app/checkDeviceHeart;/app/download;"/driver/**;/in/**;/eexception/**;/equipment/**;/report/**;/login;/register;/captchaImage;/dss/Driver/Auth;/login/no/code;/uploadPath/**;/doc.html |