Commit 1afd6f46 authored by 姬鋆屾's avatar 姬鋆屾
parents a8c046ec cebe28e7
...@@ -37,4 +37,15 @@ public class EffectSaveReq extends BaseReq { ...@@ -37,4 +37,15 @@ public class EffectSaveReq extends BaseReq {
* 抓拍图片 * 抓拍图片
*/ */
private String snapPath; private String snapPath;
/**
* 唯一标识
*/
private String ext;
/**
* 名称
*/
private String staffName;
} }
...@@ -170,7 +170,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq> ...@@ -170,7 +170,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
@PostMapping("effect/save") @PostMapping("effect/save")
@UnAuth @UnAuth
public Rest<Void> effectSave(@RequestBody EffectSaveReq req) { public Rest<Void> effectSave(@RequestBody EffectSaveReq req) {
log.info("web Api req==>{}", JSON.toJSONString(req)); log.info("web Api req==>{}", JSON.toJSONString(req));
String busiDesc = "外部效能新增"; String busiDesc = "外部效能新增";
Rest rest = Rest.ok(busiDesc + "成功!"); Rest rest = Rest.ok(busiDesc + "成功!");
try { try {
...@@ -405,7 +405,6 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq> ...@@ -405,7 +405,6 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
//效能保存 //效能保存
StaffEntity staffEntity = getStaff(req.getPhone()); StaffEntity staffEntity = getStaff(req.getPhone());
PerformRulesEntity rule = getRule(req.getRuleCode()); PerformRulesEntity rule = getRule(req.getRuleCode());
checkStaffAutoConf(staffEntity, rule);
PerformEffectRecordEntity recordEntity = new PerformEffectRecordEntity(); PerformEffectRecordEntity recordEntity = new PerformEffectRecordEntity();
recordEntity.initAttrValue(); recordEntity.initAttrValue();
recordEntity.setSubMethod(SubMethodEnum.系统自动.getValue()); recordEntity.setSubMethod(SubMethodEnum.系统自动.getValue());
...@@ -426,6 +425,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq> ...@@ -426,6 +425,7 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
recordEntity.setDeductPerson("系统管理员"); recordEntity.setDeductPerson("系统管理员");
recordEntity.setDeductTime(new Date()); recordEntity.setDeductTime(new Date());
recordEntity.setWorkNum(staffEntity.getWorkNum()); recordEntity.setWorkNum(staffEntity.getWorkNum());
recordEntity.setRemark(req.getExt());
recordEntity.setWindowNum(req.getWindowNum()); recordEntity.setWindowNum(req.getWindowNum());
...@@ -506,13 +506,12 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq> ...@@ -506,13 +506,12 @@ public class ApiWebPerformController extends AbstractBaseController<PerformReq>
PerformRulesEntity rule = rulesService.getCache(ruleCode); PerformRulesEntity rule = rulesService.getCache(ruleCode);
if (ObjectUtils.isEmpty(rule)) if (ObjectUtils.isEmpty(rule))
throw new AppException(String.format("当前手机号码未找到匹配的员工!rule:%s", ruleCode)); throw new AppException(String.format("当前手机号码未找到匹配的员工!rule:%s", ruleCode));
return rule; return rule;
} }
private StaffEntity getStaff(String phone) { private StaffEntity getStaff(String phone) {
StaffEntity staffEntity = staffService.selectOne(new StaffQuery().phoneNumber(phone)); StaffEntity staffEntity = staffService.selectOne(new StaffQuery().phoneNumber(phone));
if (ObjectUtils.isEmpty(staffEntity)){ if (ObjectUtils.isEmpty(staffEntity)) {
throw new AppException(String.format("当前手机号码未找到匹配的员工!phone:%s", phone)); throw new AppException(String.format("当前手机号码未找到匹配的员工!phone:%s", phone));
} }
......
...@@ -29,4 +29,6 @@ public class ParamKey { ...@@ -29,4 +29,6 @@ public class ParamKey {
public static String SYS_PARAM_BELONG = "belong"; public static String SYS_PARAM_BELONG = "belong";
public static String SYS_PARAM_XNJC_URL = "xnjc_url";
} }
...@@ -86,7 +86,7 @@ Content-Type: application/json ...@@ -86,7 +86,7 @@ Content-Type: application/json
POST {{baseUrl}}/staff/perform/summary/summary POST {{baseUrl}}/staff/perform/summary/summary
Content-Type: application/json Content-Type: application/json
{"checkTimeStart":"2024-02-01","checkTimeEnd":"2024-02-29"} {"checkTimeStart":"2024-02-01","checkTimeEnd":"2024-02-29","checkType":4}
###考勤打卡记录异常信息列表 ###考勤打卡记录异常信息列表
POST {{baseUrl}}/attendance/record/error/doReprocess POST {{baseUrl}}/attendance/record/error/doReprocess
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment