|
@@ -1,20 +1,57 @@
|
|
|
package com.rongwei.bsserver.controller;
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
+import com.rongwei.bscommon.sys.service.ZhcxPmqManagementLogService;
|
|
|
+import com.rongwei.bscommon.sys.utils.CommonUtils;
|
|
|
+import com.rongwei.bsentity.domain.ZhcxPmqManagementLogDo;
|
|
|
+import com.rongwei.rwadmincommon.system.vo.SysUserVo;
|
|
|
+import com.rongwei.rwcommon.base.R;
|
|
|
+import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
|
+import com.rongwei.rwcommon.utils.StringUtils;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
+import java.util.Map;
|
|
|
+import java.util.Objects;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
- * 三单管理_操作日志 前端控制器
|
|
|
+ * 三单管理_操作日志
|
|
|
* </p>
|
|
|
*
|
|
|
* @author xuan
|
|
|
* @since 2024-11-22
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@RestController
|
|
|
@RequestMapping("/zhcxPmqManagementLog")
|
|
|
public class ZhcxPmqManagementLogController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ZhcxPmqManagementLogService logService;
|
|
|
+
|
|
|
+ @PostMapping("/loginfo")
|
|
|
+ @ApiOperation("第一层修改表单数据塞入操作记录")
|
|
|
+ public void generateDistributionDetail(@RequestBody Map<String,Object> map){
|
|
|
+ Date nowDate = DateUtil.parse(DateUtil.now(), "yyyy-MM-dd HH:mm:ss");
|
|
|
+ SysUserVo currentUser = CommonUtils.getCurrentUser();
|
|
|
+ ZhcxPmqManagementLogDo logDao = new ZhcxPmqManagementLogDo();
|
|
|
+ logDao.setId(SecurityUtil.getUUID())
|
|
|
+ .setOperator(currentUser.getName())
|
|
|
+ .setOperatorid(currentUser.getId())
|
|
|
+ .setOperationtype((String)map.get("type"))
|
|
|
+ .setOperationtime(nowDate)
|
|
|
+ .setPmqmid((String)map.get("id"))
|
|
|
+ .setDescription((String)map.get("description"));
|
|
|
+ logService.save(logDao);
|
|
|
+ log.info("第一层修改表单数据塞入操作记录");
|
|
|
+ }
|
|
|
}
|
|
|
|