Commit e0d63fa0 authored by zhangwanglin's avatar zhangwanglin

操作人

parent a1eab186
...@@ -5,6 +5,7 @@ import com.hungraim.ltc.governance.service.SrvTaskService; ...@@ -5,6 +5,7 @@ import com.hungraim.ltc.governance.service.SrvTaskService;
import com.hungraim.ltc.pojo.vo.governance.*; import com.hungraim.ltc.pojo.vo.governance.*;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
import com.hungraim.ltc.util.ResultCode; import com.hungraim.ltc.util.ResultCode;
import com.hungraim.ltc.util.TokenParsingUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -159,10 +160,12 @@ public class SrvTaskController { ...@@ -159,10 +160,12 @@ public class SrvTaskController {
* 补卡 * 补卡
**/ **/
@PostMapping("/saveApplyCard") @PostMapping("/saveApplyCard")
public Result saveApplyCard(SrvPlanInputVO srvPlanInputVO){ public Result saveApplyCard(@RequestHeader("Authorization") String token,SrvPlanInputVO srvPlanInputVO){
if (srvPlanInputVO.getDisabInfoId() == null) { if (srvPlanInputVO.getDisabInfoId() == null) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
Integer userId = TokenParsingUtil.TokenParsing(token, "userId");
srvPlanInputVO.setAdmin(String.valueOf(userId));
return srvTaskService.saveApplyCard(srvPlanInputVO); return srvTaskService.saveApplyCard(srvPlanInputVO);
} }
......
...@@ -303,7 +303,7 @@ public class SrvTaskServiceImpl implements SrvTaskService { ...@@ -303,7 +303,7 @@ public class SrvTaskServiceImpl implements SrvTaskService {
// 补卡标识 // 补卡标识
chSrvTaskDetail.setIsClock((short) 1); chSrvTaskDetail.setIsClock((short) 1);
chSrvTaskDetail.setClockReason(srvPlanInputVO.getClockReason()); chSrvTaskDetail.setClockReason(srvPlanInputVO.getClockReason());
chSrvTaskDetail.setClockOperator("admin"); chSrvTaskDetail.setClockOperator(srvPlanInputVO.getAdmin());
chSrvTaskDetail.setFcd(new Date()); chSrvTaskDetail.setFcd(new Date());
int insert = chSrvTaskDetailMapper.insert(chSrvTaskDetail); int insert = chSrvTaskDetailMapper.insert(chSrvTaskDetail);
if(insert == 0){ if(insert == 0){
......
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