feat: 迁移国内标准法规部分2 创建国内标准法规

This commit is contained in:
super_liu
2021-06-03 13:39:40 +08:00
parent 4cc558befc
commit 4caa481d31
36 changed files with 2181 additions and 31 deletions
@@ -0,0 +1,23 @@
package com.adc.da.slrs.sarStandPutTime.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.adc.da.slrs.sarStandPutTime.entity.SarStandPutTime;
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 = "|SarStandPutTime|")
@RequestMapping("/sarStandPutTime/sar-stand-put-time")
public class SarStandPutTimeController extends BaseController<SarStandPutTime> {
}
@@ -0,0 +1,21 @@
package com.adc.da.slrs.sarStandPutTime.dao;
import com.adc.da.slrs.sarStandPutTime.entity.SarStandPutTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
/**
* <p>
* Mapper 接口
* </p>
*
* @author super_liu
* @since 2021-06-02
*/
public interface SarStandPutTimeDao extends BaseMapper<SarStandPutTime> {
int deleteByStandId(String standId);
int insertForeach(List<SarStandPutTime> list); //批量新增
}
@@ -0,0 +1,61 @@
package com.adc.da.slrs.sarStandPutTime.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author super_liu
* @since 2021-06-02
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SarStandPutTime对象", description="")
public class SarStandPutTime extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "主键")
@TableId("ID")
private String id;
@ApiModelProperty(value = "标准基础表主键")
@TableField("STAND_ID")
private String standId;
@ApiModelProperty(value = "日期名称")
@TableField("TIME_NAME")
private String timeName;
@ApiModelProperty(value = "实施日期")
@TableField("PUT_TIME")
private Date putTime;
@ApiModelProperty(value = "日期类型")
@TableField("TIME_TYPE")
private String timeType;
@ApiModelProperty(value = "展示顺序")
@TableField("ORDER_NUM")
private String orderNum;
@ApiModelProperty(value = "创建时间")
@TableField("CREATION_TIME")
private Date creationTime;
}
@@ -0,0 +1,16 @@
package com.adc.da.slrs.sarStandPutTime.service;
import com.adc.da.slrs.sarStandPutTime.entity.SarStandPutTime;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author super_liu
* @since 2021-06-02
*/
public interface ISarStandPutTimeService extends IService<SarStandPutTime> {
}
@@ -0,0 +1,20 @@
package com.adc.da.slrs.sarStandPutTime.service.impl;
import com.adc.da.slrs.sarStandPutTime.entity.SarStandPutTime;
import com.adc.da.slrs.sarStandPutTime.dao.SarStandPutTimeDao;
import com.adc.da.slrs.sarStandPutTime.service.ISarStandPutTimeService;
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 SarStandPutTimeServiceImpl extends ServiceImpl<SarStandPutTimeDao, SarStandPutTime> implements ISarStandPutTimeService {
}