feat: 迁移国内标准法规部分1
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
package com.adc.da.slrs.sarStandAttrDetails.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import com.adc.da.slrs.sarStandAttrDetails.entity.SarStandAttrDetails;
|
||||
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-01
|
||||
*/
|
||||
@RestController
|
||||
@Api(description = "|SarStandAttrDetails|")
|
||||
@RequestMapping("/sarStandAttrDetails/sar-stand-attr-details")
|
||||
public class SarStandAttrDetailsController extends BaseController<SarStandAttrDetails> {
|
||||
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.adc.da.slrs.sarStandAttrDetails.dao;
|
||||
|
||||
import com.adc.da.slrs.sarStandAttrDetails.entity.SarStandAttrDetails;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-01
|
||||
*/
|
||||
public interface SarStandAttrDetailsDao extends BaseMapper<SarStandAttrDetails> {
|
||||
|
||||
String selectNameByField(@Param("attrField") String attrField, @Param("sarType") String sarType);
|
||||
|
||||
SarStandAttrDetails selectFieldByName(@Param("attrName") String attrName, @Param("sarType") String sarType);
|
||||
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
package com.adc.da.slrs.sarStandAttrDetails.entity;
|
||||
|
||||
import com.adc.da.base.entity.BaseEntity;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
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;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springframework.data.annotation.Transient;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-01
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@ApiModel(value="SarStandAttrDetails对象", description="")
|
||||
public class SarStandAttrDetails extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
@TableId("ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "属性字段")
|
||||
@TableField("ATTR_FIELD")
|
||||
private String attrField;
|
||||
|
||||
@ApiModelProperty(value = "属性名称")
|
||||
@TableField("ATTR_NAME")
|
||||
private String attrName;
|
||||
|
||||
@ApiModelProperty(value = "类型(INPUT_STR字符串输入框,INPUT_NUM数字输入框,SELECT_OPTION下拉框,DATE_PICKER日期选择,FILE文件,TEXTAREA文本框)")
|
||||
@TableField("ATTR_TYPE")
|
||||
private String attrType;
|
||||
|
||||
@ApiModelProperty(value = "属性字段长度")
|
||||
@TableField("ATTR_LEN")
|
||||
private Long attrLen;
|
||||
|
||||
@ApiModelProperty(value = "展示顺序")
|
||||
@TableField("ORDER_NUM")
|
||||
private Long orderNum;
|
||||
|
||||
@ApiModelProperty(value = "是否可编辑(0是,1否)")
|
||||
@TableField("IS_EDIT")
|
||||
private String isEdit;
|
||||
|
||||
@TableField("CREATION_USER")
|
||||
private String creationUser;
|
||||
|
||||
@ApiModelProperty(value = "是否有效")
|
||||
@TableField("VALID_FLAG")
|
||||
private String validFlag;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATION_TIME")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date creationTime;
|
||||
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@TableField("MODIFY_TIME")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
|
||||
@ApiModelProperty(value = "是否必填")
|
||||
@TableField("IS_MUST")
|
||||
private String isMust;
|
||||
|
||||
@ApiModelProperty(value = "是否展示")
|
||||
@TableField("IS_SHOW_IMP")
|
||||
private String isShowImp;
|
||||
|
||||
@ApiModelProperty(value = "展示区域")
|
||||
@TableField("SHOW_REGION_ID")
|
||||
private String showRegionId;
|
||||
|
||||
@ApiModelProperty(value = "下拉选项所用的值")
|
||||
@TableField("SEL_VAL")
|
||||
private String selVal;
|
||||
|
||||
@ApiModelProperty(value = "模块类型(STAND标准,LAWS政策)")
|
||||
@TableField("SAR_TYPE")
|
||||
private String sarType;
|
||||
|
||||
@ApiModelProperty(value = "是否作为检索条件")
|
||||
@TableField("IS_SEARCH")
|
||||
private String isSearch;
|
||||
|
||||
@ApiModelProperty(value = "是否预警")
|
||||
@TableField("IS_WARN")
|
||||
private String isWarn;
|
||||
|
||||
@ApiModelProperty(value = "是否检索字段")
|
||||
@TableField("IS_JANSUO")
|
||||
private String isJansuo;
|
||||
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.adc.da.slrs.sarStandAttrDetails.page;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STAND_ATTR_DETAILS SarStandAttrDetailsEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-08-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Data
|
||||
public class SarStandAttrDetailsEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String attrField;
|
||||
private String attrFieldOperator = "=";
|
||||
private String attrName;
|
||||
private String attrNameOperator = "=";
|
||||
private String attrType;
|
||||
private String attrTypeOperator = "=";
|
||||
private String orderNum;
|
||||
private String orderNumOperator = "=";
|
||||
private String isEdit;
|
||||
private String isEditOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String attrLen;
|
||||
private String attrLenOperator = "=";
|
||||
private String[] idList;
|
||||
private String notId;
|
||||
private String sarType;
|
||||
private String isSearch;
|
||||
private String isWarn;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.adc.da.slrs.sarStandAttrDetails.service;
|
||||
|
||||
import com.adc.da.slrs.sarStandAttrDetails.entity.SarStandAttrDetails;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-01
|
||||
*/
|
||||
public interface ISarStandAttrDetailsService extends IService<SarStandAttrDetails> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.adc.da.slrs.sarStandAttrDetails.service.impl;
|
||||
|
||||
import com.adc.da.slrs.sarStandAttrDetails.entity.SarStandAttrDetails;
|
||||
import com.adc.da.slrs.sarStandAttrDetails.dao.SarStandAttrDetailsDao;
|
||||
import com.adc.da.slrs.sarStandAttrDetails.service.ISarStandAttrDetailsService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author super_liu
|
||||
* @since 2021-06-01
|
||||
*/
|
||||
@Service
|
||||
public class SarStandAttrDetailsServiceImpl extends ServiceImpl<SarStandAttrDetailsDao, SarStandAttrDetails> implements ISarStandAttrDetailsService {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user