Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
位宇华
klck
Commits
ca6e511c
Commit
ca6e511c
authored
Jul 13, 2023
by
lenovo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据库字段名修改
parent
08225744
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
22 deletions
+21
-22
ruoyi-system/src/main/java/com/ruoyi/system/domain/SysSupplies.java
...em/src/main/java/com/ruoyi/system/domain/SysSupplies.java
+7
-8
ruoyi-system/src/main/resources/mapper/system/SysSuppliesMapper.xml
...em/src/main/resources/mapper/system/SysSuppliesMapper.xml
+7
-7
ruoyi-ui/src/views/system/supplies/index_template.vue
ruoyi-ui/src/views/system/supplies/index_template.vue
+7
-7
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/SysSupplies.java
View file @
ca6e511c
...
...
@@ -36,7 +36,7 @@ public class SysSupplies extends BaseEntity
/** 内容 */
@Excel
(
name
=
"内容"
)
private
String
c
ontent
;
private
String
templateC
ontent
;
/** 状态 */
@Excel
(
name
=
"状态"
)
...
...
@@ -80,15 +80,14 @@ public class SysSupplies extends BaseEntity
return
detId
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
public
String
getTemplateContent
()
{
return
templateContent
;
}
public
String
getContent
()
{
return
content
;
public
void
setTemplateContent
(
String
templateContent
)
{
this
.
templateContent
=
templateContent
;
}
public
void
setStatus
(
Long
status
)
{
this
.
status
=
status
;
...
...
@@ -105,7 +104,7 @@ public class SysSupplies extends BaseEntity
.
append
(
"id"
,
getId
())
.
append
(
"detId"
,
getDetId
())
.
append
(
"name"
,
getTemplateName
())
.
append
(
"content"
,
getContent
())
.
append
(
"content"
,
get
Template
Content
())
.
append
(
"status"
,
getStatus
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
...
...
ruoyi-system/src/main/resources/mapper/system/SysSuppliesMapper.xml
View file @
ca6e511c
...
...
@@ -8,7 +8,7 @@
<result
property=
"id"
column=
"id"
/>
<result
property=
"detId"
column=
"det_id"
/>
<result
property=
"templateName"
column=
"template_name"
/>
<result
property=
"
content"
column=
"
content"
/>
<result
property=
"
templateContent"
column=
"template_
content"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
...
...
@@ -31,7 +31,7 @@
</resultMap>
<sql
id=
"selectSuppliesTemplateVo"
>
select id, det_id, template_name, content, status, create_by, create_time, update_by, update_time from act_supplies_template
select id, det_id, template_name,
template_
content, status, create_by, create_time, update_by, update_time from act_supplies_template
</sql>
<select
id=
"selectlistnameid"
parameterType=
"com.ruoyi.system.domain.ActSuppliesDetails"
resultMap=
"SuppliesDetailsResult"
>
...
...
@@ -40,11 +40,11 @@
<select
id=
"selectSuppliesTemplateList"
parameterType=
"SysSupplies"
resultMap=
"SuppliesTemplateResult"
>
select a.id, a.det_id, a.template_name, a.content, a.status,b.details_name sname,b.sysclassify from act_supplies_template a,act_supplies_details b
select a.id, a.det_id, a.template_name, a.
template_
content, a.status,b.details_name sname,b.sysclassify from act_supplies_template a,act_supplies_details b
<where>
<if
test=
"detId != null "
>
and a.det_id = #{detId}
</if>
<if
test=
"templateName != null and templateName != ''"
>
and a.template_name like concat('%', #{templateName}, '%')
</if>
<if
test=
"
content != null and content != ''"
>
and a.content = #{c
ontent}
</if>
<if
test=
"
templateContent != null and templateContent != ''"
>
and a.template_content = #{templateC
ontent}
</if>
<if
test=
"status != null "
>
and a.status = #{status}
</if>
and a.det_id = b.id
</where>
...
...
@@ -65,7 +65,7 @@
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"detId != null"
>
det_id,
</if>
<if
test=
"templateName != null"
>
template_name,
</if>
<if
test=
"
content != null"
>
content,
</if>
<if
test=
"
templateContent != null"
>
template_
content,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
...
...
@@ -75,7 +75,7 @@
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"detId != null"
>
#{detId},
</if>
<if
test=
"templateName != null"
>
#{templateName},
</if>
<if
test=
"
content != null"
>
#{c
ontent},
</if>
<if
test=
"
templateContent != null"
>
#{templateC
ontent},
</if>
<if
test=
"status != null"
>
#{status},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
...
...
@@ -89,7 +89,7 @@
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"detId != null"
>
det_id = #{detId},
</if>
<if
test=
"templateName != null"
>
template_name = #{templateName},
</if>
<if
test=
"
content != null"
>
content = #{c
ontent},
</if>
<if
test=
"
templateContent != null"
>
template_content = #{templateC
ontent},
</if>
<if
test=
"status != null"
>
status = #{status},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
...
...
ruoyi-ui/src/views/system/supplies/index_template.vue
View file @
ca6e511c
...
...
@@ -119,8 +119,8 @@
<el-select
v-model=
"form.detId"
filterable
placeholder=
"请选择关联项"
>
<el-option
v-for=
"option in options3"
:key=
"option.
n
ame"
:label=
"option.
n
ame"
:key=
"option.
detailsN
ame"
:label=
"option.
detailsN
ame"
:value=
"option.id"
></el-option>
</el-select>
...
...
@@ -195,7 +195,7 @@ export default {
pageSize
:
10
,
detId
:
null
,
templateName
:
null
,
c
ontent
:
null
,
templateC
ontent
:
null
,
status
:
null
,
},
form
:
{
...
...
@@ -229,7 +229,7 @@ export default {
fileName
=
fileName
+
""
;
LuckyExcel
.
transformExcelToLucky
(
file
,(
exportJson
,
lucksheetfile
)
=>
{
this
.
form
.
templateName
=
fileName
;
this
.
form
.
c
ontent
=
JSON
.
stringify
(
exportJson
.
sheets
);
this
.
form
.
templateC
ontent
=
JSON
.
stringify
(
exportJson
.
sheets
);
});
},
...
...
@@ -253,8 +253,8 @@ export default {
id
:
null
,
detId
:
null
,
name
:
null
,
c
ontent
:
null
,
status
:
null
,
templateC
ontent
:
null
,
status
:
0
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
...
...
@@ -330,7 +330,7 @@ export default {
luckysheet
.
create
({
container
:
"
luckysheet
"
,
// Luckysheet 的容器元素 ID
title
:
this
.
SuppliesTemplateList
[
ida
].
name
,
// Excel 文件名
data
:
JSON
.
parse
(
this
.
SuppliesTemplateList
[
ida
].
c
ontent
),
// Excel 数据
data
:
JSON
.
parse
(
this
.
SuppliesTemplateList
[
ida
].
templateC
ontent
),
// Excel 数据
myFolderUrl
:
"
http://localhost:5000/supplies/suppliesTemplate
"
,
//作用:左上角
<
返回按钮的链接
showtoolbar
:
false
,
//是否第二列显示工具栏
showinfobar
:
true
,
//是否显示顶部名称栏
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment