소스 검색

新增专业领域表

lamphua 4 주 전
부모
커밋
1e920d4134

+ 97
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcResourceFieldController.java 파일 보기

@@ -0,0 +1,97 @@
1
+package com.ruoyi.web.controller.oa;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.PostMapping;
8
+import org.springframework.web.bind.annotation.PutMapping;
9
+import org.springframework.web.bind.annotation.DeleteMapping;
10
+import org.springframework.web.bind.annotation.PathVariable;
11
+import org.springframework.web.bind.annotation.RequestBody;
12
+import org.springframework.web.bind.annotation.RequestMapping;
13
+import org.springframework.web.bind.annotation.RestController;
14
+import com.ruoyi.common.annotation.Log;
15
+import com.ruoyi.common.core.controller.BaseController;
16
+import com.ruoyi.common.core.domain.AjaxResult;
17
+import com.ruoyi.common.enums.BusinessType;
18
+import com.ruoyi.oa.domain.CmcResourceField;
19
+import com.ruoyi.oa.service.ICmcResourceFieldService;
20
+import com.ruoyi.common.utils.poi.ExcelUtil;
21
+import com.ruoyi.common.core.page.TableDataInfo;
22
+
23
+/**
24
+ * 专业领域Controller
25
+ * 
26
+ * @author cmc
27
+ * @date 2025-03-21
28
+ */
29
+@RestController
30
+@RequestMapping("/oa/field")
31
+public class CmcResourceFieldController extends BaseController
32
+{
33
+    @Autowired
34
+    private ICmcResourceFieldService cmcResourceFieldService;
35
+
36
+    /**
37
+     * 查询专业领域列表
38
+     */
39
+    @GetMapping("/list")
40
+    public TableDataInfo list(CmcResourceField cmcResourceField)
41
+    {
42
+        startPage();
43
+        List<CmcResourceField> list = cmcResourceFieldService.selectCmcResourceFieldList(cmcResourceField);
44
+        return getDataTable(list);
45
+    }
46
+
47
+    /**
48
+     * 导出专业领域列表
49
+     */
50
+    @Log(title = "专业领域", businessType = BusinessType.EXPORT)
51
+    @PostMapping("/export")
52
+    public void export(HttpServletResponse response, CmcResourceField cmcResourceField)
53
+    {
54
+        List<CmcResourceField> list = cmcResourceFieldService.selectCmcResourceFieldList(cmcResourceField);
55
+        ExcelUtil<CmcResourceField> util = new ExcelUtil<CmcResourceField>(CmcResourceField.class);
56
+        util.exportExcel(response, list, "专业领域数据");
57
+    }
58
+
59
+    /**
60
+     * 获取专业领域详细信息
61
+     */
62
+    @GetMapping(value = "/{fieldId}")
63
+    public AjaxResult getInfo(@PathVariable("fieldId") Integer fieldId)
64
+    {
65
+        return success(cmcResourceFieldService.selectCmcResourceFieldByFieldId(fieldId));
66
+    }
67
+
68
+    /**
69
+     * 新增专业领域
70
+     */
71
+    @Log(title = "专业领域", businessType = BusinessType.INSERT)
72
+    @PostMapping
73
+    public AjaxResult add(@RequestBody CmcResourceField cmcResourceField)
74
+    {
75
+        return toAjax(cmcResourceFieldService.insertCmcResourceField(cmcResourceField));
76
+    }
77
+
78
+    /**
79
+     * 修改专业领域
80
+     */
81
+    @Log(title = "专业领域", businessType = BusinessType.UPDATE)
82
+    @PutMapping
83
+    public AjaxResult edit(@RequestBody CmcResourceField cmcResourceField)
84
+    {
85
+        return toAjax(cmcResourceFieldService.updateCmcResourceField(cmcResourceField));
86
+    }
87
+
88
+    /**
89
+     * 删除专业领域
90
+     */
91
+    @Log(title = "专业领域", businessType = BusinessType.DELETE)
92
+	@DeleteMapping("/{fieldIds}")
93
+    public AjaxResult remove(@PathVariable Integer[] fieldIds)
94
+    {
95
+        return toAjax(cmcResourceFieldService.deleteCmcResourceFieldByFieldIds(fieldIds));
96
+    }
97
+}

+ 24
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcResource.java 파일 보기

@@ -47,6 +47,8 @@ public class CmcResource extends BaseEntity
47 47
     private String type;
48 48
 
49 49
     /** 专业领域 */
50
+    private Integer fieldId;
51
+    private CmcResourceField resourceField;
50 52
     @Excel(name = "专业领域")
51 53
     private String field;
52 54
 
@@ -113,15 +115,24 @@ public class CmcResource extends BaseEntity
113 115
     {
114 116
         return type;
115 117
     }
116
-    public void setField(String field) 
118
+    public void setField(String field)
117 119
     {
118 120
         this.field = field;
119 121
     }
120 122
 
121
-    public String getField() 
123
+    public String getField()
122 124
     {
123 125
         return field;
124 126
     }
127
+    public void setFieldId(Integer fieldId)
128
+    {
129
+        this.fieldId = fieldId;
130
+    }
131
+
132
+    public Integer getFieldId()
133
+    {
134
+        return fieldId;
135
+    }
125 136
     public void setUploadTime(Date uploadTime) 
126 137
     {
127 138
         this.uploadTime = uploadTime;
@@ -160,6 +171,16 @@ public class CmcResource extends BaseEntity
160 171
     {
161 172
         return dept;
162 173
     }
174
+    public void setResourceField(CmcResourceField resourceField)
175
+    {
176
+        this.resourceField = resourceField;
177
+        this.field = resourceField == null ? "" : resourceField.getField();
178
+    }
179
+
180
+    public CmcResourceField getResourceField()
181
+    {
182
+        return resourceField;
183
+    }
163 184
 
164 185
     @Override
165 186
     public String toString() {
@@ -170,7 +191,7 @@ public class CmcResource extends BaseEntity
170 191
             .append("title", getTitle())
171 192
             .append("sourcePath", getSourcePath())
172 193
             .append("type", getType())
173
-            .append("field", getField())
194
+            .append("fieldId", getFieldId())
174 195
             .append("uploadTime", getUploadTime())
175 196
             .append("hours", getHours())
176 197
             .toString();

+ 65
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcResourceField.java 파일 보기

@@ -0,0 +1,65 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.ruoyi.common.annotation.Excel;
6
+import com.ruoyi.common.core.domain.BaseEntity;
7
+
8
+/**
9
+ * 专业领域对象 cmc_resource_field
10
+ * 
11
+ * @author cmc
12
+ * @date 2025-03-21
13
+ */
14
+public class CmcResourceField extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 专业领域id */
19
+    private Integer fieldId;
20
+
21
+    /** 专业领域 */
22
+    @Excel(name = "专业领域")
23
+    private String field;
24
+
25
+    /** 父id */
26
+    @Excel(name = "父id")
27
+    private Integer parentId;
28
+
29
+    public void setFieldId(Integer fieldId)
30
+    {
31
+        this.fieldId = fieldId;
32
+    }
33
+
34
+    public Integer getFieldId()
35
+    {
36
+        return fieldId;
37
+    }
38
+    public void setField(String field) 
39
+    {
40
+        this.field = field;
41
+    }
42
+
43
+    public String getField() 
44
+    {
45
+        return field;
46
+    }
47
+    public void setParentId(Integer parentId) 
48
+    {
49
+        this.parentId = parentId;
50
+    }
51
+
52
+    public Integer getParentId() 
53
+    {
54
+        return parentId;
55
+    }
56
+
57
+    @Override
58
+    public String toString() {
59
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
60
+            .append("FieldId", getFieldId())
61
+            .append("field", getField())
62
+            .append("parentId", getParentId())
63
+            .toString();
64
+    }
65
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcResourceFieldMapper.java 파일 보기

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcResourceField;
5
+
6
+/**
7
+ * 资料类别Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2025-03-21
11
+ */
12
+public interface CmcResourceFieldMapper 
13
+{
14
+    /**
15
+     * 查询资料类别
16
+     * 
17
+     * @param fieldId 资料类别主键
18
+     * @return 资料类别
19
+     */
20
+    public CmcResourceField selectCmcResourceFieldByFieldId(Integer fieldId);
21
+
22
+    /**
23
+     * 查询资料类别列表
24
+     * 
25
+     * @param cmcResourceField 资料类别
26
+     * @return 资料类别集合
27
+     */
28
+    public List<CmcResourceField> selectCmcResourceFieldList(CmcResourceField cmcResourceField);
29
+
30
+    /**
31
+     * 新增资料类别
32
+     * 
33
+     * @param cmcResourceField 资料类别
34
+     * @return 结果
35
+     */
36
+    public int insertCmcResourceField(CmcResourceField cmcResourceField);
37
+
38
+    /**
39
+     * 修改资料类别
40
+     * 
41
+     * @param cmcResourceField 资料类别
42
+     * @return 结果
43
+     */
44
+    public int updateCmcResourceField(CmcResourceField cmcResourceField);
45
+
46
+    /**
47
+     * 删除资料类别
48
+     * 
49
+     * @param fieldId 资料类别主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcResourceFieldByFieldId(Integer fieldId);
53
+
54
+    /**
55
+     * 批量删除资料类别
56
+     * 
57
+     * @param fieldIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcResourceFieldByFieldIds(Integer[] fieldIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcResourceFieldService.java 파일 보기

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcResourceField;
5
+
6
+/**
7
+ * 专业领域Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2025-03-21
11
+ */
12
+public interface ICmcResourceFieldService
13
+{
14
+    /**
15
+     * 查询专业领域
16
+     * 
17
+     * @param fieldId 专业领域主键
18
+     * @return 专业领域
19
+     */
20
+    public CmcResourceField selectCmcResourceFieldByFieldId(Integer fieldId);
21
+
22
+    /**
23
+     * 查询专业领域列表
24
+     * 
25
+     * @param cmcResourceField 专业领域
26
+     * @return 专业领域集合
27
+     */
28
+    public List<CmcResourceField> selectCmcResourceFieldList(CmcResourceField cmcResourceField);
29
+
30
+    /**
31
+     * 新增专业领域
32
+     * 
33
+     * @param cmcResourceField 专业领域
34
+     * @return 结果
35
+     */
36
+    public int insertCmcResourceField(CmcResourceField cmcResourceField);
37
+
38
+    /**
39
+     * 修改专业领域
40
+     * 
41
+     * @param cmcResourceField 专业领域
42
+     * @return 结果
43
+     */
44
+    public int updateCmcResourceField(CmcResourceField cmcResourceField);
45
+
46
+    /**
47
+     * 批量删除专业领域
48
+     * 
49
+     * @param fieldIds 需要删除的专业领域主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcResourceFieldByFieldIds(Integer[] fieldIds);
53
+
54
+    /**
55
+     * 删除专业领域信息
56
+     * 
57
+     * @param fieldId 专业领域主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcResourceFieldByFieldId(Integer fieldId);
61
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcResourceFieldServiceImpl.java 파일 보기

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcResourceFieldMapper;
7
+import com.ruoyi.oa.domain.CmcResourceField;
8
+import com.ruoyi.oa.service.ICmcResourceFieldService;
9
+
10
+/**
11
+ * 专业领域Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2025-03-21
15
+ */
16
+@Service
17
+public class CmcResourceFieldServiceImpl implements ICmcResourceFieldService
18
+{
19
+    @Autowired
20
+    private CmcResourceFieldMapper cmcResourceFieldMapper;
21
+
22
+    /**
23
+     * 查询专业领域
24
+     * 
25
+     * @param fieldId 专业领域主键
26
+     * @return 专业领域
27
+     */
28
+    @Override
29
+    public CmcResourceField selectCmcResourceFieldByFieldId(Integer fieldId)
30
+    {
31
+        return cmcResourceFieldMapper.selectCmcResourceFieldByFieldId(fieldId);
32
+    }
33
+
34
+    /**
35
+     * 查询专业领域列表
36
+     * 
37
+     * @param cmcResourceField 专业领域
38
+     * @return 专业领域
39
+     */
40
+    @Override
41
+    public List<CmcResourceField> selectCmcResourceFieldList(CmcResourceField cmcResourceField)
42
+    {
43
+        return cmcResourceFieldMapper.selectCmcResourceFieldList(cmcResourceField);
44
+    }
45
+
46
+    /**
47
+     * 新增专业领域
48
+     * 
49
+     * @param cmcResourceField 专业领域
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcResourceField(CmcResourceField cmcResourceField)
54
+    {
55
+        return cmcResourceFieldMapper.insertCmcResourceField(cmcResourceField);
56
+    }
57
+
58
+    /**
59
+     * 修改专业领域
60
+     * 
61
+     * @param cmcResourceField 专业领域
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcResourceField(CmcResourceField cmcResourceField)
66
+    {
67
+        return cmcResourceFieldMapper.updateCmcResourceField(cmcResourceField);
68
+    }
69
+
70
+    /**
71
+     * 批量删除专业领域
72
+     * 
73
+     * @param fieldIds 需要删除的专业领域主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcResourceFieldByFieldIds(Integer[] fieldIds)
78
+    {
79
+        return cmcResourceFieldMapper.deleteCmcResourceFieldByFieldIds(fieldIds);
80
+    }
81
+
82
+    /**
83
+     * 删除专业领域信息
84
+     * 
85
+     * @param fieldId 专业领域主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcResourceFieldByFieldId(Integer fieldId)
90
+    {
91
+        return cmcResourceFieldMapper.deleteCmcResourceFieldByFieldId(fieldId);
92
+    }
93
+}

+ 3
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceMapper.xml 파일 보기

@@ -31,7 +31,7 @@
31 31
     </resultMap>
32 32
 
33 33
     <sql id="selectCmcDeviceVo">
34
-        select d.device_id, d.device_number, d.device_user, d.code, d.name, d.type, d.acquisition_time, d.cost, d.expect_life, d.series, d.brand, d.day_cost, d.place, d.remark, d.manage_dept, d.status, dept.dept_name, de.document from cmc_device as d
34
+        select distinct d.device_id, d.device_number, d.device_user, d.code, d.name, d.type, d.acquisition_time, d.cost, d.expect_life, d.series, d.brand, d.day_cost, d.place, d.remark, d.manage_dept, d.status, dept.dept_name, de.document from cmc_device as d
35 35
         left join sys_dept as dept on dept.dept_id = d.manage_dept
36 36
         left join (select * from cmc_device_expense as cde where cde.expense_type = '3') as de on de.device_id = d.device_id
37 37
     </sql>
@@ -54,11 +54,13 @@
54 54
             <if test="manageDept != null "> and d.manage_dept = #{manageDept}</if>
55 55
             <if test="status != null "> and d.status = #{status}</if>
56 56
         </where>
57
+        group by d.device_id
57 58
     </select>
58 59
 
59 60
     <select id="selectCmcDeviceByDeviceId" parameterType="Integer" resultMap="CmcDeviceResult">
60 61
         <include refid="selectCmcDeviceVo"/>
61 62
         where d.device_id = #{deviceId}
63
+        group by d.device_id
62 64
     </select>
63 65
 
64 66
     <select id="selectCmcDeviceNameList" resultType="java.util.Map">

+ 61
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcResourceFieldMapper.xml 파일 보기

@@ -0,0 +1,61 @@
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.ruoyi.oa.mapper.CmcResourceFieldMapper">
6
+    
7
+    <resultMap type="CmcResourceField" id="CmcResourceFieldResult">
8
+        <result property="fieldId"    column="field_id"    />
9
+        <result property="field"    column="field"    />
10
+        <result property="parentId"    column="parent_id"    />
11
+    </resultMap>
12
+
13
+    <sql id="selectCmcResourceFieldVo">
14
+        select field_id, field, parent_id from cmc_resource_field
15
+    </sql>
16
+
17
+    <select id="selectCmcResourceFieldList" parameterType="CmcResourceField" resultMap="CmcResourceFieldResult">
18
+        <include refid="selectCmcResourceFieldVo"/>
19
+        <where>  
20
+            <if test="field != null  and field != ''"> and field like concat('%', #{field}, '%')</if>
21
+            <if test="parentId != null "> and parent_id = #{parentId}</if>
22
+        </where>
23
+    </select>
24
+    
25
+    <select id="selectCmcResourceFieldByFieldId" parameterType="Integer" resultMap="CmcResourceFieldResult">
26
+        <include refid="selectCmcResourceFieldVo"/>
27
+        where field_id = #{fieldId}
28
+    </select>
29
+        
30
+    <insert id="insertCmcResourceField" parameterType="CmcResourceField" useGeneratedKeys="true" keyProperty="fieldId">
31
+        insert into cmc_resource_field
32
+        <trim prefix="(" suffix=")" suffixOverrides=",">
33
+            <if test="field != null">field,</if>
34
+            <if test="parentId != null">parent_id,</if>
35
+         </trim>
36
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
37
+            <if test="field != null">#{field},</if>
38
+            <if test="parentId != null">#{parentId},</if>
39
+         </trim>
40
+    </insert>
41
+
42
+    <update id="updateCmcResourceField" parameterType="CmcResourceField">
43
+        update cmc_resource_field
44
+        <trim prefix="SET" suffixOverrides=",">
45
+            <if test="field != null">field = #{field},</if>
46
+            <if test="parentId != null">parent_id = #{parentId},</if>
47
+        </trim>
48
+        where field_id = #{fieldId}
49
+    </update>
50
+
51
+    <delete id="deleteCmcResourceFieldByFieldId" parameterType="Integer">
52
+        delete from cmc_resource_field where field_id = #{fieldId}
53
+    </delete>
54
+
55
+    <delete id="deleteCmcResourceFieldByFieldIds" parameterType="String">
56
+        delete from cmc_resource_field where field_id in 
57
+        <foreach item="fieldId" collection="array" open="(" separator="," close=")">
58
+            #{fieldId}
59
+        </foreach>
60
+    </delete>
61
+</mapper>

+ 13
- 6
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcResourceMapper.xml 파일 보기

@@ -11,11 +11,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
11 11
         <result property="title"    column="title"    />
12 12
         <result property="sourcePath"    column="source_path"    />
13 13
         <result property="type"    column="type"    />
14
-        <result property="field"    column="field"    />
14
+        <result property="fieldId"    column="field_id"    />
15 15
         <result property="uploadTime"    column="upload_time"    />
16 16
         <result property="hours"    column="hours"    />
17 17
         <association property="uploadUser"    javaType="SysUser"         resultMap="UploadUserResult" />
18 18
         <association property="dept"    javaType="SysDept"         resultMap="SysDeptResult" />
19
+        <association property="resourceField"    javaType="CmcResourceField"         resultMap="CmcResourceFieldResult" />
19 20
     </resultMap>
20 21
 
21 22
     <resultMap type="SysUser" id="UploadUserResult">
@@ -28,10 +29,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
28 29
         <result property="deptName"    column="dept_name"    />
29 30
     </resultMap>
30 31
 
32
+    <resultMap type="CmcResourceField" id="CmcResourceFieldResult">
33
+        <result property="fieldId"    column="field_id"    />
34
+        <result property="field"    column="field"    />
35
+    </resultMap>
36
+
31 37
     <sql id="selectCmcResourceVo">
32
-        select r.resource_id, r.uploader, r.upload_dept, r.title, r.source_path, r.type, r.field, r.upload_time, r.hours from cmc_resource as r
38
+        select r.resource_id, r.uploader, r.upload_dept, r.title, r.source_path, r.type, r.field_id, rf.field, r.upload_time, r.hours from cmc_resource as r
33 39
         left join sys_user as u on u.user_id = r.uploader
34 40
         left join sys_dept as d on d.dept_id = r.upload_dept
41
+        left join cmc_resource_field as rf on rf.field_id = r.field_id
35 42
     </sql>
36 43
 
37 44
     <select id="selectCmcResourceList" parameterType="CmcResource" resultMap="CmcResourceResult">
@@ -42,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
42 49
             <if test="title != null  and title != ''"> and r.title like concat('%', #{title}, '%')</if>
43 50
             <if test="sourcePath != null  and sourcePath != ''"> and r.source_path = #{sourcePath}</if>
44 51
             <if test="type != null  and type != ''"> and r.type = #{type}</if>
45
-            <if test="field != null  and field != ''"> and r.field = #{field}</if>
52
+            <if test="fieldId != null "> and r.field_id = #{fieldId}</if>
46 53
             <if test="uploadTime != null "> and r.upload_time = #{uploadTime}</if>
47 54
             <if test="hours != null "> and r.hours = #{hours}</if>
48 55
         </where>
@@ -61,7 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
61 68
             <if test="title != null">title,</if>
62 69
             <if test="sourcePath != null">source_path,</if>
63 70
             <if test="type != null">type,</if>
64
-            <if test="field != null">field,</if>
71
+            <if test="fieldId != null">field_id,</if>
65 72
             <if test="uploadTime != null">upload_time,</if>
66 73
             <if test="hours != null">hours,</if>
67 74
          </trim>
@@ -71,7 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
71 78
             <if test="title != null">#{title},</if>
72 79
             <if test="sourcePath != null">#{sourcePath},</if>
73 80
             <if test="type != null">#{type},</if>
74
-            <if test="field != null">#{field},</if>
81
+            <if test="fieldId != null">#{fieldId},</if>
75 82
             <if test="uploadTime != null">#{uploadTime},</if>
76 83
             <if test="hours != null">#{hours},</if>
77 84
          </trim>
@@ -85,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
85 92
             <if test="title != null">title = #{title},</if>
86 93
             <if test="sourcePath != null">source_path = #{sourcePath},</if>
87 94
             <if test="type != null">type = #{type},</if>
88
-            <if test="field != null">field = #{field},</if>
95
+            <if test="fieldId != null">field_id = #{fieldId},</if>
89 96
             <if test="uploadTime != null">upload_time = #{uploadTime},</if>
90 97
             <if test="hours != null">hours = #{hours},</if>
91 98
         </trim>

+ 51
- 29
oa-back/sql/sq.sql
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


Loading…
취소
저장