|
@@ -1,5 +1,6 @@
|
|
|
package com.fs.live.controller;
|
|
package com.fs.live.controller;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.date.DateTime;
|
|
|
import com.fs.common.annotation.Log;
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
@@ -11,7 +12,9 @@ import com.fs.common.utils.ParseUtils;
|
|
|
import com.fs.common.utils.ServletUtils;
|
|
import com.fs.common.utils.ServletUtils;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
import com.fs.framework.web.service.TokenService;
|
|
import com.fs.framework.web.service.TokenService;
|
|
|
|
|
+import com.fs.his.domain.FsStoreAfterSalesLogs;
|
|
|
import com.fs.his.domain.FsUser;
|
|
import com.fs.his.domain.FsUser;
|
|
|
|
|
+import com.fs.his.enums.FsStoreAfterSalesStatusEnum;
|
|
|
import com.fs.his.service.IFsUserService;
|
|
import com.fs.his.service.IFsUserService;
|
|
|
import com.fs.live.domain.LiveAfterSales;
|
|
import com.fs.live.domain.LiveAfterSales;
|
|
|
import com.fs.live.domain.LiveAfterSalesItem;
|
|
import com.fs.live.domain.LiveAfterSalesItem;
|
|
@@ -130,6 +133,16 @@ public class LiveAfterSalesController extends BaseController
|
|
|
@PutMapping
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody LiveAfterSales liveAfterSales)
|
|
public AjaxResult edit(@RequestBody LiveAfterSales liveAfterSales)
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
|
|
+ LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
|
|
+ //操作记录
|
|
|
|
|
+ LiveAfterSalesLogs logs = new LiveAfterSalesLogs();
|
|
|
|
|
+ logs.setChangeTime(new DateTime());
|
|
|
|
|
+ logs.setChangeType(2);
|
|
|
|
|
+ logs.setOperator(loginUser.getUser().getNickName());
|
|
|
|
|
+ logs.setStoreAfterSalesId(liveAfterSales.getId());
|
|
|
|
|
+ logs.setChangeMessage(FsStoreAfterSalesStatusEnum.STATUS_2.getDesc());
|
|
|
|
|
+ liveAfterSalesLogsService.insertLiveAfterSalesLogs(logs);
|
|
|
return toAjax(liveAfterSalesService.updateLiveAfterSales(liveAfterSales));
|
|
return toAjax(liveAfterSalesService.updateLiveAfterSales(liveAfterSales));
|
|
|
}
|
|
}
|
|
|
|
|
|