|
@@ -454,11 +454,10 @@ 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 = "draft", value = "状态(0:草稿,1:提交)", required = true, paramType = "form")
|
|
|
+ @ApiImplicitParam(name = "attendanceType", value = "外出/出差(2/3)", required = false, paramType = "form")
|
|
|
})
|
|
|
public MessageResult<WorkAttendanceDTO> postPatchCard(
|
|
|
- String ids,String draft,String workAttendanceId, String alarmConfigId,
|
|
|
+ String workAttendanceId, String alarmConfigId,
|
|
|
@RequestParam("workAttendanceDate") String workAttendanceDate,
|
|
|
@RequestParam("workAttendanceTime") String workAttendanceTime,
|
|
|
@RequestParam("type") String type,
|
|
@@ -525,7 +524,7 @@ public class WorkAttendanceApiController {
|
|
|
|
|
|
FillAttendance fillAttendance = fillAttendanceService.insertAndfile(workAttendanceId, workAttendanceDate,
|
|
|
workAttendanceTime, content, type, photoFile, longitude, latitude,
|
|
|
- approvalPersonId, personInfo.getId(), alarmConfigId, address, attendanceType,draft,ids);
|
|
|
+ approvalPersonId, personInfo.getId(), alarmConfigId, address, attendanceType);
|
|
|
|
|
|
|
|
|
WorkAttendanceDTO workAttendanceDTO = new WorkAttendanceDTO();
|
|
@@ -594,8 +593,9 @@ public class WorkAttendanceApiController {
|
|
|
@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 = "draft", value = "状态(0:草稿,1:提交)", required = true, paramType = "form")
|
|
|
})
|
|
|
- public MessageResult<Map> supplementWorkSubmit(String id, String reason, String imageUrl,String formId, String token, @RequestAttribute String subject) {
|
|
|
+ public MessageResult<Map> supplementWorkSubmit(String ids,String draft,String id, String reason, String imageUrl,String formId, String token, @RequestAttribute String subject) {
|
|
|
|
|
|
|
|
|
MessageResult<Map> messageResult = new MessageResult<>();
|
|
@@ -605,7 +605,7 @@ public class WorkAttendanceApiController {
|
|
|
PersonPopedom personPopedom = personPopedomService.get(person.getPopedom());
|
|
|
|
|
|
|
|
|
- String supplementWorkId = supplementWorkService.supplementWorkSubmit(personPopedom, id, reason,imageUrl, formId);
|
|
|
+ String supplementWorkId = supplementWorkService.supplementWorkSubmit(personPopedom, id, reason,imageUrl, formId,ids,draft);
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("id", supplementWorkId);
|