feat: 迁移国内标准法规部分2 创建国内标准法规
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
package com.adc.da.slrs.sarStandFile.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.adc.da.slrs.sarStandFile.entity.SarStandFile;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.adc.da.base.web.BaseController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
@RestController
|
||||
@Api(description = "|SarStandFile|")
|
||||
@RequestMapping("/sarStandFile/sar-stand-file")
|
||||
public class SarStandFileController extends BaseController<SarStandFile> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.adc.da.slrs.sarStandFile.dao;
|
||||
|
||||
import com.adc.da.slrs.sarStandFile.entity.SarStandFile;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
public interface SarStandFileDao extends BaseMapper<SarStandFile> {
|
||||
|
||||
List<SarStandFile> selectFileByStandId(String lawsId);
|
||||
|
||||
List<SarStandFile> selectFileByAttId(String attId);
|
||||
|
||||
List<SarStandFile> selectFileByResId(SarStandFile sarStandFileEO);
|
||||
|
||||
List<SarStandFile> selectFileByStandIdAndId(SarStandFile sarStandFileEO);
|
||||
|
||||
List<SarStandFile> selectFileMsgByAttId(String attId);
|
||||
|
||||
int deleteByStandId(String standId);
|
||||
|
||||
int insertForeach(List<SarStandFile> list); //批量新增
|
||||
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.adc.da.slrs.sarStandFile.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.data.annotation.Transient;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="SarStandFile对象", description="")
|
||||
public class SarStandFile extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "标准ID")
|
||||
@TableField("STAND_ID")
|
||||
private String standId;
|
||||
|
||||
@ApiModelProperty(value = "标准文件分类")
|
||||
@TableField("STAND_FILE_CLASSIFY")
|
||||
private String standFileClassify;
|
||||
|
||||
@ApiModelProperty(value = "文件主键")
|
||||
@TableField("ATT_ID")
|
||||
private String attId;
|
||||
|
||||
@ApiModelProperty(value = "文件名称")
|
||||
@TableField("FILE_NAME")
|
||||
private String fileName;
|
||||
|
||||
@ApiModelProperty(value = "文件后缀")
|
||||
@TableField("FILE_SUFFIX")
|
||||
private String fileSuffix;
|
||||
|
||||
@ApiModelProperty(value = "使用模式(SOURCE_FILE原文件,WEB_FILE转换后文件)")
|
||||
@TableField("USE_MODEL")
|
||||
private String useModel;
|
||||
|
||||
@ApiModelProperty(value = "加密密码")
|
||||
@TableField("PASSWORD")
|
||||
private String password;
|
||||
|
||||
@TableField("CREATION_USER")
|
||||
private String creationUser;
|
||||
|
||||
@ApiModelProperty(value = "是否有效")
|
||||
@TableField("VALID_FLAG")
|
||||
private String validFlag;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATION_TIME")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@TableField("MODIFY_TIME")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
@ApiModelProperty(value = "转换原文件id")
|
||||
@TableField("ORI_ATT_ID")
|
||||
private String oriAttId;
|
||||
|
||||
@Transient
|
||||
private String resId;
|
||||
@Transient
|
||||
private Integer pageCount;
|
||||
@Transient
|
||||
private String fileOldName;
|
||||
@Transient
|
||||
private List<String> idlist = new ArrayList<>();
|
||||
@Transient
|
||||
private String standFileClassifyShow;
|
||||
@Transient
|
||||
private String standNumber;
|
||||
@Transient
|
||||
private String standName;
|
||||
@Transient
|
||||
private String sarType;
|
||||
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.slrs.sarStandFile.service;
|
||||
|
||||
import com.adc.da.slrs.sarStandFile.entity.SarStandFile;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
public interface ISarStandFileService extends IService<SarStandFile> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.adc.da.slrs.sarStandFile.service.impl;
|
||||
|
||||
import com.adc.da.slrs.sarStandFile.entity.SarStandFile;
|
||||
import com.adc.da.slrs.sarStandFile.dao.SarStandFileDao;
|
||||
import com.adc.da.slrs.sarStandFile.service.ISarStandFileService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-02
|
||||
*/
|
||||
@Service
|
||||
public class SarStandFileServiceImpl extends ServiceImpl<SarStandFileDao, SarStandFile> implements ISarStandFileService {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user