|
@@ -454,10 +454,11 @@ public class WorkAttendanceApiController {
|
|
|
@ApiImplicitParam(name = "latitude", value = "纬度", required = false, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "address", value = "打卡地址", required = false, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "approvalPersonId", value = "审核人", required = false, paramType = "form"),
|
|
|
- @ApiImplicitParam(name = "attendanceType", value = "外出/出差(2/3)", required = false, paramType = "form")
|
|
|
+ @ApiImplicitParam(name = "attendanceType", value = "外出/出差(2/3)", required = false, paramType = "form"),
|
|
|
+ @ApiImplicitParam(name = "draft", value = "状态(0:草稿,1:提交)", required = true, paramType = "form")
|
|
|
})
|
|
|
public MessageResult<WorkAttendanceDTO> postPatchCard(
|
|
|
- String workAttendanceId, String alarmConfigId,
|
|
|
+ String ids,String draft,String workAttendanceId, String alarmConfigId,
|
|
|
@RequestParam("workAttendanceDate") String workAttendanceDate,
|
|
|
@RequestParam("workAttendanceTime") String workAttendanceTime,
|
|
|
@RequestParam("type") String type,
|
|
@@ -524,7 +525,7 @@ public class WorkAttendanceApiController {
|
|
|
|
|
|
FillAttendance fillAttendance = fillAttendanceService.insertAndfile(workAttendanceId, workAttendanceDate,
|
|
|
workAttendanceTime, content, type, photoFile, longitude, latitude,
|
|
|
- approvalPersonId, personInfo.getId(), alarmConfigId, address, attendanceType);
|
|
|
+ approvalPersonId, personInfo.getId(), alarmConfigId, address, attendanceType,draft,ids);
|
|
|
|
|
|
|
|
|
WorkAttendanceDTO workAttendanceDTO = new WorkAttendanceDTO();
|
|
@@ -592,7 +593,7 @@ public class WorkAttendanceApiController {
|
|
|
@ApiImplicitParam(name = "id", value = "考勤记录id", required = true, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "reason", value = "申请理由", required = true, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "imageUrl", value = "照片地址", required = false, paramType = "form"),
|
|
|
- @ApiImplicitParam(name = "formId", value = "标识", required = true, paramType = "form")
|
|
|
+ @ApiImplicitParam(name = "formId", value = "标识", required = true, paramType = "form"),
|
|
|
})
|
|
|
public MessageResult<Map> supplementWorkSubmit(String id, String reason, String imageUrl,String formId, String token, @RequestAttribute String subject) {
|
|
|
|
|
@@ -632,9 +633,10 @@ public class WorkAttendanceApiController {
|
|
|
@ApiImplicitParam(name = "reason", value = "申请理由", required = true, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "personIds", value = "人员", required = true, paramType = "form"),
|
|
|
@ApiImplicitParam(name = "imageUrl", value = "照片地址", required = false, paramType = "form"),
|
|
|
- @ApiImplicitParam(name = "formId", value = "标识", required = true, paramType = "form")
|
|
|
+ @ApiImplicitParam(name = "formId", value = "标识", required = true, paramType = "form"),
|
|
|
+ @ApiImplicitParam(name = "draft", value = "状态(0:草稿,1:提交)", required = true, paramType = "form")
|
|
|
})
|
|
|
- public MessageResult<Map> supplementWorkBatchSubmit(String date, String reason,String personIds, String imageUrl,String formId, String token, @RequestAttribute String subject) {
|
|
|
+ public MessageResult<Map> supplementWorkBatchSubmit(String ids,String draft,String date, String reason,String personIds, String imageUrl,String formId, String token, @RequestAttribute String subject) {
|
|
|
|
|
|
|
|
|
MessageResult<Map> messageResult = new MessageResult<>();
|
|
@@ -644,7 +646,7 @@ public class WorkAttendanceApiController {
|
|
|
PersonPopedom personPopedom = personPopedomService.get(person.getPopedom());
|
|
|
|
|
|
|
|
|
- String supplementWorkId = supplementWorkService.supplementWorkBatchSubmit(personPopedom, date,personIds, reason,imageUrl, formId);
|
|
|
+ String supplementWorkId = supplementWorkService.supplementWorkBatchSubmit(personPopedom, date,personIds, reason,imageUrl, formId,draft,ids);
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("id", supplementWorkId);
|