feat: 标准库详情 更新记录
This commit is contained in:
+19
-1
@@ -1,12 +1,21 @@
|
||||
package com.adc.da.slrs.sarUpdLog.controller;
|
||||
|
||||
|
||||
import com.adc.da.http.ResponseMessage;
|
||||
import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.sarUpdLog.entity.SarUpdLogEOPage;
|
||||
import com.adc.da.slrs.sarUpdLog.service.ISarUpdLogService;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.adc.da.slrs.sarUpdLog.entity.SarUpdLog;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
@@ -17,7 +26,16 @@ import com.adc.da.base.web.BaseController;
|
||||
*/
|
||||
@RestController
|
||||
@Api(description = "|SarUpdLog|")
|
||||
@RequestMapping("/SarUpdLog/sar-upd-log")
|
||||
@RequestMapping("/${restPath}/lawss/sarUpdLog")
|
||||
public class SarUpdLogController extends BaseController<SarUpdLog> {
|
||||
|
||||
@Autowired
|
||||
private ISarUpdLogService iSarUpdLogService;
|
||||
|
||||
@ApiOperation(value = "|SarUpdLogEO|查询")
|
||||
@GetMapping("/getLogList")
|
||||
public ResponseMessage<List<SarUpdLog>> list(SarUpdLogEOPage page) throws Exception {
|
||||
page.setOrderBy("SAR_UPD_LOG.creation_time desc,id");
|
||||
return Result.success(iSarUpdLogService.queryByList(page));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
package com.adc.da.slrs.sarUpdLog.dao;
|
||||
|
||||
import com.adc.da.slrs.sarUpdLog.entity.SarUpdLog;
|
||||
import com.adc.da.slrs.sarUpdLog.entity.SarUpdLogEOPage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
@@ -13,4 +16,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
*/
|
||||
public interface SarUpdLogDao extends BaseMapper<SarUpdLog> {
|
||||
|
||||
List<SarUpdLog> queryByList(SarUpdLogEOPage page);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@@ -45,10 +46,13 @@ public class SarUpdLog extends BaseEntity {
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATION_TIME")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
|
||||
@TableField("CREATION_USER")
|
||||
private String creationUser;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "创建用户名称")
|
||||
@TableField(exist = false)
|
||||
private String creationUserName;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
package com.adc.da.slrs.sarUpdLog.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_UPD_LOG SarUpdLogEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-12-08 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarUpdLogEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String sarType;
|
||||
private String sarTypeOperator = "=";
|
||||
private String sarId;
|
||||
private String sarIdOperator = "=";
|
||||
private String content;
|
||||
private String contentOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getSarType() {
|
||||
return this.sarType;
|
||||
}
|
||||
|
||||
public void setSarType(String sarType) {
|
||||
this.sarType = sarType;
|
||||
}
|
||||
|
||||
public String getSarTypeOperator() {
|
||||
return this.sarTypeOperator;
|
||||
}
|
||||
|
||||
public void setSarTypeOperator(String sarTypeOperator) {
|
||||
this.sarTypeOperator = sarTypeOperator;
|
||||
}
|
||||
|
||||
public String getSarId() {
|
||||
return this.sarId;
|
||||
}
|
||||
|
||||
public void setSarId(String sarId) {
|
||||
this.sarId = sarId;
|
||||
}
|
||||
|
||||
public String getSarIdOperator() {
|
||||
return this.sarIdOperator;
|
||||
}
|
||||
|
||||
public void setSarIdOperator(String sarIdOperator) {
|
||||
this.sarIdOperator = sarIdOperator;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContentOperator() {
|
||||
return this.contentOperator;
|
||||
}
|
||||
|
||||
public void setContentOperator(String contentOperator) {
|
||||
this.contentOperator = contentOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
package com.adc.da.slrs.sarUpdLog.service;
|
||||
|
||||
import com.adc.da.slrs.sarUpdLog.entity.SarUpdLog;
|
||||
import com.adc.da.slrs.sarUpdLog.entity.SarUpdLogEOPage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -15,6 +17,8 @@ import java.util.Map;
|
||||
*/
|
||||
public interface ISarUpdLogService extends IService<SarUpdLog> {
|
||||
|
||||
List<SarUpdLog> queryByList(SarUpdLogEOPage page);
|
||||
|
||||
void createBaseLog(String sarId, String sarType, String content) throws Exception;
|
||||
|
||||
void createUpdateLog(String sarType, String sarId, Map<String, Object> oldMap, Map<String, Object> newMap, String standContent) throws Exception;
|
||||
|
||||
+6
@@ -4,6 +4,7 @@ import com.adc.da.common.SarTypeEnum;
|
||||
import com.adc.da.slrs.sarStandAttrDetails.dao.SarStandAttrDetailsDao;
|
||||
import com.adc.da.slrs.sarUpdLog.entity.SarUpdLog;
|
||||
import com.adc.da.slrs.sarUpdLog.dao.SarUpdLogDao;
|
||||
import com.adc.da.slrs.sarUpdLog.entity.SarUpdLogEOPage;
|
||||
import com.adc.da.slrs.sarUpdLog.service.ISarUpdLogService;
|
||||
import com.adc.da.slrs.sysInfo.service.SysInfoEOService;
|
||||
import com.adc.da.util.LoginUserUtil;
|
||||
@@ -48,6 +49,11 @@ public class SarUpdLogServiceImpl extends ServiceImpl<SarUpdLogDao, SarUpdLog> i
|
||||
|
||||
private List<String> notCheckFieldList = Arrays.asList(notCheckField.split(","));
|
||||
|
||||
@Override
|
||||
public List<SarUpdLog> queryByList(SarUpdLogEOPage page){
|
||||
return dao.queryByList(page);
|
||||
}
|
||||
|
||||
public void createUpdateLog (String sarType, String sarId, Map<String,Object> oldMap, Map<String,Object> newMap,String standContent) throws Exception {
|
||||
SarUpdLog sarUpdLogEO = new SarUpdLog();
|
||||
sarUpdLogEO.setId(UUIDUtils.randomUUID20());
|
||||
|
||||
Reference in New Issue
Block a user