Commit 21a7e84e authored by liuxun's avatar liuxun

merge

parent aa23b382
package com.hungraim.ltc.pojo.vo.governance;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
public class SaveStopTime {
private Long srvSendId;
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
private Date stopTime;
}
......@@ -250,12 +250,12 @@ public class BuildBedController {
* 终止录入
*/
@PostMapping("/saveStopTime")
public Result<Boolean> saveStopTime(@RequestParam Long srvSendId,@RequestParam Date stopTime){
ChSrvSend chSrvSend = sendService.getById(srvSendId);
public Result<Boolean> saveStopTime(@RequestBody SaveStopTime saveStopTime){
ChSrvSend chSrvSend = sendService.getById(saveStopTime.getSrvSendId());
if(chSrvSend == null){
return Result.failed("提交失败,服务分配记录不存在");
}
chSrvSend.setStopTime(stopTime);
chSrvSend.setStopTime(saveStopTime.getStopTime());
sendService.updateById(chSrvSend);
return Result.success(true);
}
......
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