Browse Source

证件档案

duhongyu 1 month ago
parent
commit
dd1d95ef70

+ 100 - 0
smart-steward-api/src/main/java/com/smartSteward/web/controller/gas/GasLicenseArchiveController.java

@@ -0,0 +1,100 @@
1
+package com.smartSteward.web.controller.gas;;
2
+
3
+import java.util.List;
4
+import io.swagger.annotations.Api;
5
+import io.swagger.annotations.ApiOperation;
6
+import javax.servlet.http.HttpServletResponse;
7
+import org.springframework.security.access.prepost.PreAuthorize;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.web.bind.annotation.GetMapping;
10
+import org.springframework.web.bind.annotation.PostMapping;
11
+import org.springframework.web.bind.annotation.PutMapping;
12
+import org.springframework.web.bind.annotation.DeleteMapping;
13
+import org.springframework.web.bind.annotation.PathVariable;
14
+import org.springframework.web.bind.annotation.RequestBody;
15
+import org.springframework.web.bind.annotation.RequestMapping;
16
+import org.springframework.web.bind.annotation.RestController;
17
+import com.smartSteward.common.annotation.Log;
18
+import com.smartSteward.web.controller.BaseController;
19
+import com.smartSteward.common.core.AjaxResult;
20
+import com.smartSteward.common.enums.BusinessType;
21
+import com.smartSteward.entity.database.gas.GasLicenseArchive;
22
+import com.smartSteward.service.gas.IGasLicenseArchiveService;
23
+import com.smartSteward.common.utils.poi.ExcelUtil;
24
+import com.smartSteward.common.core.page.TableDataInfo;
25
+
26
+/**
27
+ * 证照档案Controller
28
+ * 
29
+ * @author smart-steward
30
+ */
31
+@RestController
32
+@Api(value = "证照档案",tags = "证照档案")
33
+@RequestMapping("/gasLicenseArchive/archive")
34
+public class GasLicenseArchiveController extends BaseController
35
+{
36
+    @Autowired
37
+    private IGasLicenseArchiveService gasLicenseArchiveService;
38
+
39
+
40
+    @ApiOperation("查询证照档案列表")
41
+    @PreAuthorize("@ss.hasPermi('gasLicenseArchive:archive:list')")
42
+    @GetMapping("/list")
43
+    public TableDataInfo list(GasLicenseArchive gasLicenseArchive)
44
+    {
45
+        startPage();
46
+        List<GasLicenseArchive> list = gasLicenseArchiveService.selectGasLicenseArchiveList(gasLicenseArchive);
47
+        return getDataTable(list);
48
+    }
49
+
50
+
51
+    @ApiOperation("导出证照档案列表")
52
+    @PreAuthorize("@ss.hasPermi('gasLicenseArchive:archive:export')")
53
+    @Log(title = "证照档案", businessType = BusinessType.EXPORT)
54
+    @PostMapping("/export")
55
+    public void export(HttpServletResponse response, GasLicenseArchive gasLicenseArchive)
56
+    {
57
+        List<GasLicenseArchive> list = gasLicenseArchiveService.selectGasLicenseArchiveList(gasLicenseArchive);
58
+        ExcelUtil<GasLicenseArchive> util = new ExcelUtil<GasLicenseArchive>(GasLicenseArchive.class);
59
+        util.exportExcel(response, list, "证照档案数据");
60
+    }
61
+
62
+
63
+    @ApiOperation("获取证照档案详细信息")
64
+    @PreAuthorize("@ss.hasPermi('gasLicenseArchive:archive:query')")
65
+    @GetMapping(value = "/{id}")
66
+    public AjaxResult getInfo(@PathVariable("id") Long id)
67
+    {
68
+        return success(gasLicenseArchiveService.selectGasLicenseArchiveById(id));
69
+    }
70
+
71
+
72
+    @ApiOperation("新增证照档案")
73
+    @PreAuthorize("@ss.hasPermi('gasLicenseArchive:archive:add')")
74
+    @Log(title = "证照档案", businessType = BusinessType.INSERT)
75
+    @PostMapping
76
+    public AjaxResult add(@RequestBody GasLicenseArchive gasLicenseArchive)
77
+    {
78
+        return toAjax(gasLicenseArchiveService.insertGasLicenseArchive(gasLicenseArchive));
79
+    }
80
+
81
+
82
+    @ApiOperation("修改证照档案")
83
+    @PreAuthorize("@ss.hasPermi('gasLicenseArchive:archive:edit')")
84
+    @Log(title = "证照档案", businessType = BusinessType.UPDATE)
85
+    @PutMapping
86
+    public AjaxResult edit(@RequestBody GasLicenseArchive gasLicenseArchive)
87
+    {
88
+        return toAjax(gasLicenseArchiveService.updateGasLicenseArchive(gasLicenseArchive));
89
+    }
90
+
91
+
92
+    @ApiOperation("删除证照档案")
93
+    @PreAuthorize("@ss.hasPermi('gasLicenseArchive:archive:remove')")
94
+    @Log(title = "证照档案", businessType = BusinessType.DELETE)
95
+	@DeleteMapping("/{ids}")
96
+    public AjaxResult remove(@PathVariable Long[] ids)
97
+    {
98
+        return toAjax(gasLicenseArchiveService.deleteGasLicenseArchiveByIds(ids));
99
+    }
100
+}

+ 130 - 0
smart-steward-entity/src/main/java/com/smartSteward/entity/database/gas/GasLicenseArchive.java

@@ -0,0 +1,130 @@
1
+package com.smartSteward.entity.database.gas;;
2
+
3
+import java.util.Date;
4
+import com.fasterxml.jackson.annotation.JsonFormat;
5
+import io.swagger.annotations.ApiModel;
6
+import io.swagger.annotations.ApiModelProperty;
7
+import lombok.Data;
8
+import lombok.EqualsAndHashCode;
9
+import com.smartSteward.common.annotation.Excel;
10
+import com.smartSteward.common.core.BaseEntity;
11
+
12
+/**
13
+ * 证照档案对象 gas_license_archive
14
+ *
15
+ * @author smart-steward
16
+ */
17
+@Data
18
+@EqualsAndHashCode(callSuper = true)
19
+@ApiModel("证照档案")
20
+public class GasLicenseArchive extends BaseEntity
21
+{
22
+    private static final long serialVersionUID = 1L;
23
+
24
+    /** $column.columnComment */
25
+    @ApiModelProperty(value = "主键id", required = true)
26
+    private Long id;
27
+
28
+    /** 油站ID */
29
+    @Excel(name = "油站ID")
30
+    @ApiModelProperty("油站ID")
31
+    private Long stationId;
32
+
33
+    /** 证照名称编码 */
34
+    @Excel(name = "证照名称编码")
35
+    @ApiModelProperty("证照名称编码")
36
+    private String licenseNameCode;
37
+
38
+    /** 机构类型编码 */
39
+    @Excel(name = "机构类型编码")
40
+    @ApiModelProperty("机构类型编码")
41
+    private String orgTypeCode;
42
+
43
+    /** 发证机关 */
44
+    @Excel(name = "发证机关")
45
+    @ApiModelProperty("发证机关")
46
+    private String issuingAuthority;
47
+
48
+    /** 证件编号 */
49
+    @Excel(name = "证件编号")
50
+    @ApiModelProperty("证件编号")
51
+    private String certificateNumber;
52
+
53
+    /** 发证日期 */
54
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
55
+    @Excel(name = "发证日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
56
+    @ApiModelProperty("发证日期")
57
+    private Date issueDate;
58
+
59
+    /** 有效日期 */
60
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
61
+    @Excel(name = "有效日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
62
+    @ApiModelProperty("有效日期")
63
+    private Date validDate;
64
+
65
+    /** 是否长期有效:0-否,1-是 */
66
+    @Excel(name = "是否长期有效:0-否,1-是")
67
+    @ApiModelProperty("是否长期有效:0-否,1-是")
68
+    private Long isLongTerm;
69
+
70
+    /** 下次换证日期 */
71
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
72
+    @Excel(name = "下次换证日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
73
+    @ApiModelProperty("下次换证日期")
74
+    private Date nextRenewalDate;
75
+
76
+    /** 下次年审时间 */
77
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
78
+    @Excel(name = "下次年审时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
79
+    @ApiModelProperty("下次年审时间")
80
+    private Date nextAnnualReviewDate;
81
+
82
+    /** 更换要求 */
83
+    @Excel(name = "更换要求")
84
+    @ApiModelProperty("更换要求")
85
+    private String renewalRequirements;
86
+
87
+    /** 存放处编码 */
88
+    @Excel(name = "存放处编码")
89
+    @ApiModelProperty("存放处编码")
90
+    private String storageLocationCode;
91
+
92
+    /** 证件扫描件文件路径 */
93
+    @Excel(name = "证件扫描件文件路径")
94
+    @ApiModelProperty("证件扫描件文件路径")
95
+    private String certificateScanPath;
96
+
97
+    /** 状态编码 */
98
+    @Excel(name = "状态编码")
99
+    @ApiModelProperty("状态编码")
100
+    private String statusCode;
101
+
102
+    /** 操作人ID */
103
+    @Excel(name = "操作人ID")
104
+    @ApiModelProperty("操作人ID")
105
+    private Long operatorId;
106
+
107
+    /** 操作人姓名 */
108
+    @Excel(name = "操作人姓名")
109
+    @ApiModelProperty("操作人姓名")
110
+    private String operatorName;
111
+
112
+    /** 操作时间 */
113
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
114
+    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
115
+    @ApiModelProperty("操作时间")
116
+    private Date operatedAt;
117
+
118
+    /** 创建时间 */
119
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
120
+    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
121
+    @ApiModelProperty("创建时间")
122
+    private Date createdAt;
123
+
124
+    /** 修改时间 */
125
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
126
+    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
127
+    @ApiModelProperty("修改时间")
128
+    private Date updatedAt;
129
+
130
+}

+ 60 - 0
smart-steward-mapper/src/main/java/com/smartSteward/mapper/gas/GasLicenseArchiveMapper.java

@@ -0,0 +1,60 @@
1
+package com.smartSteward.mapper.gas;
2
+
3
+import java.util.List;
4
+import com.smartSteward.entity.database.gas.GasLicenseArchive;
5
+
6
+/**
7
+ * 证照档案Mapper接口
8
+ * 
9
+ * @author smart-steward
10
+ */
11
+public interface GasLicenseArchiveMapper 
12
+{
13
+    /**
14
+     * 查询证照档案
15
+     * 
16
+     * @param id 证照档案主键
17
+     * @return 证照档案
18
+     */
19
+    public GasLicenseArchive selectGasLicenseArchiveById(Long id);
20
+
21
+    /**
22
+     * 查询证照档案列表
23
+     * 
24
+     * @param gasLicenseArchive 证照档案
25
+     * @return 证照档案集合
26
+     */
27
+    public List<GasLicenseArchive> selectGasLicenseArchiveList(GasLicenseArchive gasLicenseArchive);
28
+
29
+    /**
30
+     * 新增证照档案
31
+     * 
32
+     * @param gasLicenseArchive 证照档案
33
+     * @return 结果
34
+     */
35
+    public int insertGasLicenseArchive(GasLicenseArchive gasLicenseArchive);
36
+
37
+    /**
38
+     * 修改证照档案
39
+     * 
40
+     * @param gasLicenseArchive 证照档案
41
+     * @return 结果
42
+     */
43
+    public int updateGasLicenseArchive(GasLicenseArchive gasLicenseArchive);
44
+
45
+    /**
46
+     * 删除证照档案
47
+     * 
48
+     * @param id 证照档案主键
49
+     * @return 结果
50
+     */
51
+    public int deleteGasLicenseArchiveById(Long id);
52
+
53
+    /**
54
+     * 批量删除证照档案
55
+     * 
56
+     * @param ids 需要删除的数据主键集合
57
+     * @return 结果
58
+     */
59
+    public int deleteGasLicenseArchiveByIds(Long[] ids);
60
+}

+ 146 - 0
smart-steward-mapper/src/main/resources/mapper/gas/GasLicenseArchiveMapper.xml

@@ -0,0 +1,146 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.smartSteward.mapper.gas.GasLicenseArchiveMapper">
6
+    
7
+    <resultMap type="GasLicenseArchive" id="GasLicenseArchiveResult">
8
+        <result property="id"    column="id"    />
9
+        <result property="stationId"    column="station_id"    />
10
+        <result property="licenseNameCode"    column="license_name_code"    />
11
+        <result property="orgTypeCode"    column="org_type_code"    />
12
+        <result property="issuingAuthority"    column="issuing_authority"    />
13
+        <result property="certificateNumber"    column="certificate_number"    />
14
+        <result property="issueDate"    column="issue_date"    />
15
+        <result property="validDate"    column="valid_date"    />
16
+        <result property="isLongTerm"    column="is_long_term"    />
17
+        <result property="nextRenewalDate"    column="next_renewal_date"    />
18
+        <result property="nextAnnualReviewDate"    column="next_annual_review_date"    />
19
+        <result property="renewalRequirements"    column="renewal_requirements"    />
20
+        <result property="storageLocationCode"    column="storage_location_code"    />
21
+        <result property="certificateScanPath"    column="certificate_scan_path"    />
22
+        <result property="statusCode"    column="status_code"    />
23
+        <result property="operatorId"    column="operator_id"    />
24
+        <result property="operatorName"    column="operator_name"    />
25
+        <result property="operatedAt"    column="operated_at"    />
26
+        <result property="createdAt"    column="created_at"    />
27
+        <result property="updatedAt"    column="updated_at"    />
28
+    </resultMap>
29
+
30
+    <sql id="selectGasLicenseArchiveVo">
31
+        select id, station_id, license_name_code, org_type_code, issuing_authority, certificate_number, issue_date, valid_date, is_long_term, next_renewal_date, next_annual_review_date, renewal_requirements, storage_location_code, certificate_scan_path, status_code, operator_id, operator_name, operated_at, created_at, updated_at from gas_license_archive
32
+    </sql>
33
+
34
+    <select id="selectGasLicenseArchiveList" parameterType="GasLicenseArchive" resultMap="GasLicenseArchiveResult">
35
+        <include refid="selectGasLicenseArchiveVo"/>
36
+        <where>  
37
+            <if test="stationId != null "> and station_id = #{stationId}</if>
38
+            <if test="licenseNameCode != null  and licenseNameCode != ''"> and license_name_code = #{licenseNameCode}</if>
39
+            <if test="orgTypeCode != null  and orgTypeCode != ''"> and org_type_code = #{orgTypeCode}</if>
40
+            <if test="issuingAuthority != null  and issuingAuthority != ''"> and issuing_authority = #{issuingAuthority}</if>
41
+            <if test="certificateNumber != null  and certificateNumber != ''"> and certificate_number = #{certificateNumber}</if>
42
+            <if test="issueDate != null "> and issue_date = #{issueDate}</if>
43
+            <if test="validDate != null "> and valid_date = #{validDate}</if>
44
+            <if test="isLongTerm != null "> and is_long_term = #{isLongTerm}</if>
45
+            <if test="nextRenewalDate != null "> and next_renewal_date = #{nextRenewalDate}</if>
46
+            <if test="nextAnnualReviewDate != null "> and next_annual_review_date = #{nextAnnualReviewDate}</if>
47
+            <if test="renewalRequirements != null  and renewalRequirements != ''"> and renewal_requirements = #{renewalRequirements}</if>
48
+            <if test="storageLocationCode != null  and storageLocationCode != ''"> and storage_location_code = #{storageLocationCode}</if>
49
+            <if test="certificateScanPath != null  and certificateScanPath != ''"> and certificate_scan_path = #{certificateScanPath}</if>
50
+            <if test="statusCode != null  and statusCode != ''"> and status_code = #{statusCode}</if>
51
+            <if test="operatorId != null "> and operator_id = #{operatorId}</if>
52
+            <if test="operatorName != null  and operatorName != ''"> and operator_name like concat('%', #{operatorName}, '%')</if>
53
+            <if test="operatedAt != null "> and operated_at = #{operatedAt}</if>
54
+            <if test="createdAt != null "> and created_at = #{createdAt}</if>
55
+            <if test="updatedAt != null "> and updated_at = #{updatedAt}</if>
56
+        </where>
57
+    </select>
58
+    
59
+    <select id="selectGasLicenseArchiveById" parameterType="Long" resultMap="GasLicenseArchiveResult">
60
+        <include refid="selectGasLicenseArchiveVo"/>
61
+        where id = #{id}
62
+    </select>
63
+
64
+    <insert id="insertGasLicenseArchive" parameterType="GasLicenseArchive" useGeneratedKeys="true" keyProperty="id">
65
+        insert into gas_license_archive
66
+        <trim prefix="(" suffix=")" suffixOverrides=",">
67
+            <if test="stationId != null">station_id,</if>
68
+            <if test="licenseNameCode != null and licenseNameCode != ''">license_name_code,</if>
69
+            <if test="orgTypeCode != null and orgTypeCode != ''">org_type_code,</if>
70
+            <if test="issuingAuthority != null and issuingAuthority != ''">issuing_authority,</if>
71
+            <if test="certificateNumber != null and certificateNumber != ''">certificate_number,</if>
72
+            <if test="issueDate != null">issue_date,</if>
73
+            <if test="validDate != null">valid_date,</if>
74
+            <if test="isLongTerm != null">is_long_term,</if>
75
+            <if test="nextRenewalDate != null">next_renewal_date,</if>
76
+            <if test="nextAnnualReviewDate != null">next_annual_review_date,</if>
77
+            <if test="renewalRequirements != null">renewal_requirements,</if>
78
+            <if test="storageLocationCode != null and storageLocationCode != ''">storage_location_code,</if>
79
+            <if test="certificateScanPath != null">certificate_scan_path,</if>
80
+            <if test="statusCode != null">status_code,</if>
81
+            <if test="operatorId != null">operator_id,</if>
82
+            <if test="operatorName != null">operator_name,</if>
83
+            <if test="operatedAt != null">operated_at,</if>
84
+            <if test="createdAt != null">created_at,</if>
85
+            <if test="updatedAt != null">updated_at,</if>
86
+         </trim>
87
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
88
+            <if test="stationId != null">#{stationId},</if>
89
+            <if test="licenseNameCode != null and licenseNameCode != ''">#{licenseNameCode},</if>
90
+            <if test="orgTypeCode != null and orgTypeCode != ''">#{orgTypeCode},</if>
91
+            <if test="issuingAuthority != null and issuingAuthority != ''">#{issuingAuthority},</if>
92
+            <if test="certificateNumber != null and certificateNumber != ''">#{certificateNumber},</if>
93
+            <if test="issueDate != null">#{issueDate},</if>
94
+            <if test="validDate != null">#{validDate},</if>
95
+            <if test="isLongTerm != null">#{isLongTerm},</if>
96
+            <if test="nextRenewalDate != null">#{nextRenewalDate},</if>
97
+            <if test="nextAnnualReviewDate != null">#{nextAnnualReviewDate},</if>
98
+            <if test="renewalRequirements != null">#{renewalRequirements},</if>
99
+            <if test="storageLocationCode != null and storageLocationCode != ''">#{storageLocationCode},</if>
100
+            <if test="certificateScanPath != null">#{certificateScanPath},</if>
101
+            <if test="statusCode != null">#{statusCode},</if>
102
+            <if test="operatorId != null">#{operatorId},</if>
103
+            <if test="operatorName != null">#{operatorName},</if>
104
+            <if test="operatedAt != null">#{operatedAt},</if>
105
+            <if test="createdAt != null">#{createdAt},</if>
106
+            <if test="updatedAt != null">#{updatedAt},</if>
107
+         </trim>
108
+    </insert>
109
+
110
+    <update id="updateGasLicenseArchive" parameterType="GasLicenseArchive">
111
+        update gas_license_archive
112
+        <trim prefix="SET" suffixOverrides=",">
113
+            <if test="stationId != null">station_id = #{stationId},</if>
114
+            <if test="licenseNameCode != null and licenseNameCode != ''">license_name_code = #{licenseNameCode},</if>
115
+            <if test="orgTypeCode != null and orgTypeCode != ''">org_type_code = #{orgTypeCode},</if>
116
+            <if test="issuingAuthority != null and issuingAuthority != ''">issuing_authority = #{issuingAuthority},</if>
117
+            <if test="certificateNumber != null and certificateNumber != ''">certificate_number = #{certificateNumber},</if>
118
+            <if test="issueDate != null">issue_date = #{issueDate},</if>
119
+            <if test="validDate != null">valid_date = #{validDate},</if>
120
+            <if test="isLongTerm != null">is_long_term = #{isLongTerm},</if>
121
+            <if test="nextRenewalDate != null">next_renewal_date = #{nextRenewalDate},</if>
122
+            <if test="nextAnnualReviewDate != null">next_annual_review_date = #{nextAnnualReviewDate},</if>
123
+            <if test="renewalRequirements != null">renewal_requirements = #{renewalRequirements},</if>
124
+            <if test="storageLocationCode != null and storageLocationCode != ''">storage_location_code = #{storageLocationCode},</if>
125
+            <if test="certificateScanPath != null">certificate_scan_path = #{certificateScanPath},</if>
126
+            <if test="statusCode != null">status_code = #{statusCode},</if>
127
+            <if test="operatorId != null">operator_id = #{operatorId},</if>
128
+            <if test="operatorName != null">operator_name = #{operatorName},</if>
129
+            <if test="operatedAt != null">operated_at = #{operatedAt},</if>
130
+            <if test="createdAt != null">created_at = #{createdAt},</if>
131
+            <if test="updatedAt != null">updated_at = #{updatedAt},</if>
132
+        </trim>
133
+        where id = #{id}
134
+    </update>
135
+
136
+    <delete id="deleteGasLicenseArchiveById" parameterType="Long">
137
+        delete from gas_license_archive where id = #{id}
138
+    </delete>
139
+
140
+    <delete id="deleteGasLicenseArchiveByIds" parameterType="String">
141
+        delete from gas_license_archive where id in 
142
+        <foreach item="id" collection="array" open="(" separator="," close=")">
143
+            #{id}
144
+        </foreach>
145
+    </delete>
146
+</mapper>

+ 60 - 0
smart-steward-service/src/main/java/com/smartSteward/service/gas/IGasLicenseArchiveService.java

@@ -0,0 +1,60 @@
1
+package com.smartSteward.service.gas;
2
+
3
+import java.util.List;
4
+import com.smartSteward.entity.database.gas.GasLicenseArchive;
5
+
6
+/**
7
+ * 证照档案Service接口
8
+ * 
9
+ * @author smart-steward
10
+ */
11
+public interface IGasLicenseArchiveService 
12
+{
13
+    /**
14
+     * 查询证照档案
15
+     * 
16
+     * @param id 证照档案主键
17
+     * @return 证照档案
18
+     */
19
+    public GasLicenseArchive selectGasLicenseArchiveById(Long id);
20
+
21
+    /**
22
+     * 查询证照档案列表
23
+     * 
24
+     * @param gasLicenseArchive 证照档案
25
+     * @return 证照档案集合
26
+     */
27
+    public List<GasLicenseArchive> selectGasLicenseArchiveList(GasLicenseArchive gasLicenseArchive);
28
+
29
+    /**
30
+     * 新增证照档案
31
+     * 
32
+     * @param gasLicenseArchive 证照档案
33
+     * @return 结果
34
+     */
35
+    public int insertGasLicenseArchive(GasLicenseArchive gasLicenseArchive);
36
+
37
+    /**
38
+     * 修改证照档案
39
+     * 
40
+     * @param gasLicenseArchive 证照档案
41
+     * @return 结果
42
+     */
43
+    public int updateGasLicenseArchive(GasLicenseArchive gasLicenseArchive);
44
+
45
+    /**
46
+     * 批量删除证照档案
47
+     * 
48
+     * @param ids 需要删除的证照档案主键集合
49
+     * @return 结果
50
+     */
51
+    public int deleteGasLicenseArchiveByIds(Long[] ids);
52
+
53
+    /**
54
+     * 删除证照档案信息
55
+     * 
56
+     * @param id 证照档案主键
57
+     * @return 结果
58
+     */
59
+    public int deleteGasLicenseArchiveById(Long id);
60
+}

+ 92 - 0
smart-steward-service/src/main/java/com/smartSteward/service/gas/impl/GasLicenseArchiveServiceImpl.java

@@ -0,0 +1,92 @@
1
+package com.smartSteward.service.gas.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.smartSteward.mapper.gas.GasLicenseArchiveMapper;
7
+import com.smartSteward.entity.database.gas.GasLicenseArchive;
8
+import com.smartSteward.service.gas.IGasLicenseArchiveService;
9
+
10
+/**
11
+ * 证照档案Service业务层处理
12
+ * 
13
+ * @author smart-steward
14
+ */
15
+@Service
16
+public class GasLicenseArchiveServiceImpl implements IGasLicenseArchiveService 
17
+{
18
+    @Autowired
19
+    private GasLicenseArchiveMapper gasLicenseArchiveMapper;
20
+
21
+    /**
22
+     * 查询证照档案
23
+     * 
24
+     * @param id 证照档案主键
25
+     * @return 证照档案
26
+     */
27
+    @Override
28
+    public GasLicenseArchive selectGasLicenseArchiveById(Long id)
29
+    {
30
+        return gasLicenseArchiveMapper.selectGasLicenseArchiveById(id);
31
+    }
32
+
33
+    /**
34
+     * 查询证照档案列表
35
+     * 
36
+     * @param gasLicenseArchive 证照档案
37
+     * @return 证照档案
38
+     */
39
+    @Override
40
+    public List<GasLicenseArchive> selectGasLicenseArchiveList(GasLicenseArchive gasLicenseArchive)
41
+    {
42
+        return gasLicenseArchiveMapper.selectGasLicenseArchiveList(gasLicenseArchive);
43
+    }
44
+
45
+    /**
46
+     * 新增证照档案
47
+     * 
48
+     * @param gasLicenseArchive 证照档案
49
+     * @return 结果
50
+     */
51
+    @Override
52
+    public int insertGasLicenseArchive(GasLicenseArchive gasLicenseArchive)
53
+    {
54
+        return gasLicenseArchiveMapper.insertGasLicenseArchive(gasLicenseArchive);
55
+    }
56
+
57
+    /**
58
+     * 修改证照档案
59
+     * 
60
+     * @param gasLicenseArchive 证照档案
61
+     * @return 结果
62
+     */
63
+    @Override
64
+    public int updateGasLicenseArchive(GasLicenseArchive gasLicenseArchive)
65
+    {
66
+        return gasLicenseArchiveMapper.updateGasLicenseArchive(gasLicenseArchive);
67
+    }
68
+
69
+    /**
70
+     * 批量删除证照档案
71
+     * 
72
+     * @param ids 需要删除的证照档案主键
73
+     * @return 结果
74
+     */
75
+    @Override
76
+    public int deleteGasLicenseArchiveByIds(Long[] ids)
77
+    {
78
+        return gasLicenseArchiveMapper.deleteGasLicenseArchiveByIds(ids);
79
+    }
80
+
81
+    /**
82
+     * 删除证照档案信息
83
+     * 
84
+     * @param id 证照档案主键
85
+     * @return 结果
86
+     */
87
+    @Override
88
+    public int deleteGasLicenseArchiveById(Long id)
89
+    {
90
+        return gasLicenseArchiveMapper.deleteGasLicenseArchiveById(id);
91
+    }
92
+}