Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@ -318,11 +318,13 @@ public class BusMrpBaseServiceImpl extends ServiceImpl<BusMrpBaseMapper, BusMrpB
|
||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
}
|
||||
map.put("remainingQuantity",quantity.subtract(reduce));
|
||||
map.put("specification",busBillofquantities.getSpecification());
|
||||
map.put("suppliespriceId",limitListId);
|
||||
map.put("unit",busBillofquantities.getUnit());
|
||||
map.put("remark",busBillofquantities.getRemark());
|
||||
map.put("name",busBillofquantities.getName());
|
||||
if (busBillofquantities != null) {
|
||||
map.put("specification",busBillofquantities.getSpecification());
|
||||
map.put("unit",busBillofquantities.getUnit());
|
||||
map.put("remark",busBillofquantities.getRemark());
|
||||
map.put("name",busBillofquantities.getName());
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
@ -87,8 +87,7 @@ public class AttendanceJob {
|
||||
.lt(BusAttendanceRule::getClockInResultTime, end));
|
||||
}
|
||||
|
||||
//获取当前日期
|
||||
LocalDate date = LocalDate.now();
|
||||
|
||||
|
||||
//管理员关联多个项目,需要记录是否已生成缺卡记录
|
||||
// HashSet<Long> manageUserIds = new HashSet<>();
|
||||
@ -97,6 +96,8 @@ public class AttendanceJob {
|
||||
for (BusAttendanceRule rule : list) {
|
||||
LocalTime clockInTime = rule.getClockInTime();
|
||||
LocalTime clockInResultTime = rule.getClockInResultTime();
|
||||
//获取当前日期
|
||||
LocalDate date = LocalDate.now();
|
||||
|
||||
//计算考勤日期
|
||||
if (start.isAfter(end)) { // 跨天情况
|
||||
|
||||
@ -78,6 +78,7 @@ public class BusAttendanceDeviceController extends BaseController {
|
||||
req.setUserId(userId);
|
||||
req.setPunchTime(localDateTime);
|
||||
req.setSource("1");
|
||||
req.setSn(dto.getSn());
|
||||
//打印req
|
||||
log.info("请求参数:{}", req);
|
||||
//base64转MultipartFile
|
||||
|
||||
@ -118,4 +118,9 @@ public class BusAttendance extends BaseEntity {
|
||||
* 来源
|
||||
*/
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
private String sn;
|
||||
}
|
||||
|
||||
@ -53,4 +53,6 @@ public class BusAttendancePunchCardByFaceReq implements Serializable {
|
||||
*/
|
||||
private String source;
|
||||
|
||||
private String sn;
|
||||
|
||||
}
|
||||
|
||||
@ -420,6 +420,7 @@ public class BusAttendanceServiceImpl extends ServiceImpl<BusAttendanceMapper, B
|
||||
attendance.setReplaceId(replaceId);
|
||||
if(req.getSource() != null){
|
||||
attendance.setSource(req.getSource());
|
||||
attendance.setSn(req.getSn());
|
||||
}
|
||||
// 记录打卡坐标
|
||||
attendance.setLat(req.getLat());
|
||||
@ -465,6 +466,7 @@ public class BusAttendanceServiceImpl extends ServiceImpl<BusAttendanceMapper, B
|
||||
}
|
||||
|
||||
busAttendance.setSource(req.getSource());
|
||||
busAttendance.setSn(req.getSn());
|
||||
//如果是缺卡需要上传人脸
|
||||
if(oldStatus.equals(BusAttendanceClockStatusEnum.UNCLOCK.getValue())){
|
||||
SysOssVo upload = ossService.upload(file);
|
||||
@ -480,6 +482,7 @@ public class BusAttendanceServiceImpl extends ServiceImpl<BusAttendanceMapper, B
|
||||
BusAttendance busAttendance = outAttendances.getFirst();
|
||||
if("1".equals(req.getSource())){
|
||||
busAttendance.setSource(req.getSource());
|
||||
busAttendance.setSn(req.getSn());
|
||||
if(busAttendance.getClockStatus().equals(BusAttendanceClockStatusEnum.UNCLOCK.getValue())){
|
||||
SysOssVo upload = ossService.upload(file);
|
||||
busAttendance.setFacePic(upload.getOssId().toString());
|
||||
@ -532,6 +535,7 @@ public class BusAttendanceServiceImpl extends ServiceImpl<BusAttendanceMapper, B
|
||||
attendance.setReplaceId(replaceId);
|
||||
if(req.getSource() != null){
|
||||
attendance.setSource(req.getSource());
|
||||
attendance.setSn(req.getSn());
|
||||
}
|
||||
// 记录打卡坐标
|
||||
attendance.setLat(req.getLat());
|
||||
|
||||
Reference in New Issue
Block a user