Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
c85ca6f1
Commit
c85ca6f1
authored
May 13, 2024
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动化派单
parent
c5394628
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
12 deletions
+9
-12
FailReasonConfig.java
...fu/cloud/plus/v1/yifu/social/entity/FailReasonConfig.java
+1
-1
FailReasonConfigController.java
...v1/yifu/social/controller/FailReasonConfigController.java
+3
-6
FailReasonConfigServiceImpl.java
...yifu/social/service/impl/FailReasonConfigServiceImpl.java
+1
-1
FailReasonConfigMapper.xml
...-biz/src/main/resources/mapper/FailReasonConfigMapper.xml
+4
-4
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/FailReasonConfig.java
View file @
c85ca6f1
...
...
@@ -48,7 +48,7 @@ public class FailReasonConfig extends BaseEntity {
@Length
(
max
=
20
,
message
=
"关键字不能超过20个字符"
)
@ExcelProperty
(
"关键字"
)
@Schema
(
description
=
"关键字"
)
private
String
keys
;
private
String
reasonKey
;
/**
* 精简原因
*/
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/FailReasonConfigController.java
View file @
c85ca6f1
...
...
@@ -54,10 +54,9 @@ public class FailReasonConfigController {
* @param failReasonConfig 失败原因配置
* @return R
*/
@Operation
(
summary
=
"新增失败原因配置"
,
description
=
"新增失败原因配置
:hasPermission('social_failreasonconfig_add')
"
)
@Operation
(
summary
=
"新增失败原因配置"
,
description
=
"新增失败原因配置"
)
@SysLog
(
"新增失败原因配置"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('social_failreasonconfig_add')"
)
public
R
<
Boolean
>
save
(
@RequestBody
FailReasonConfig
failReasonConfig
)
{
return
R
.
ok
(
failReasonConfigService
.
save
(
failReasonConfig
));
}
...
...
@@ -67,10 +66,9 @@ public class FailReasonConfigController {
* @param failReasonConfig 失败原因配置
* @return R
*/
@Operation
(
summary
=
"修改失败原因配置"
,
description
=
"修改失败原因配置
:hasPermission('social_failreasonconfig_edit'
)"
)
@Operation
(
summary
=
"修改失败原因配置"
,
description
=
"修改失败原因配置)"
)
@SysLog
(
"修改失败原因配置"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('social_failreasonconfig_edit')"
)
public
R
<
Boolean
>
updateById
(
@RequestBody
FailReasonConfig
failReasonConfig
)
{
return
R
.
ok
(
failReasonConfigService
.
updateById
(
failReasonConfig
));
}
...
...
@@ -80,10 +78,9 @@ public class FailReasonConfigController {
* @param id id
* @return R
*/
@Operation
(
summary
=
"通过id删除失败原因配置"
,
description
=
"通过id删除失败原因配置
:hasPermission('social_failreasonconfig_del')
"
)
@Operation
(
summary
=
"通过id删除失败原因配置"
,
description
=
"通过id删除失败原因配置"
)
@SysLog
(
"通过id删除失败原因配置"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('social_failreasonconfig_del')"
)
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
R
.
ok
(
failReasonConfigService
.
removeById
(
id
));
}
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/FailReasonConfigServiceImpl.java
View file @
c85ca6f1
...
...
@@ -43,7 +43,7 @@ public class FailReasonConfigServiceImpl extends ServiceImpl<FailReasonConfigMap
Map
<
String
,
FailReasonConfig
>
map
=
new
HashMap
<>();
List
<
FailReasonConfig
>
list
=
baseMapper
.
getFailReasonConfigList
();
for
(
FailReasonConfig
config
:
list
)
{
map
.
put
(
config
.
get
Keys
(),
config
);
map
.
put
(
config
.
get
ReasonKey
(),
config
);
}
return
map
;
}
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/FailReasonConfigMapper.xml
View file @
c85ca6f1
...
...
@@ -5,7 +5,7 @@
<resultMap
id=
"failReasonConfigMap"
type=
"com.yifu.cloud.plus.v1.yifu.social.entity.FailReasonConfig"
>
<id
property=
"id"
column=
"ID"
/>
<result
property=
"reason"
column=
"REASON"
/>
<result
property=
"
keys"
column=
"KEYS
"
/>
<result
property=
"
reasonKey"
column=
"REASON_KEY
"
/>
<result
property=
"simpleReason"
column=
"SIMPLE_REASON"
/>
<result
property=
"replay"
column=
"REPLAY"
/>
<result
property=
"status"
column=
"STATUS"
/>
...
...
@@ -17,7 +17,7 @@
<sql
id=
"Base_Column_List"
>
a.ID,
a.REASON,
a.
`KEYS`
,
a.
REASON_KEY
,
a.SIMPLE_REASON,
a.REPLAY,
a.`STATUS`,
...
...
@@ -32,8 +32,8 @@
<if
test=
"failReasonConfig.reason != null and failReasonConfig.reason.trim() != ''"
>
AND a.REASON LIKE concat('%',#{failReasonConfig.reason},'%')
</if>
<if
test=
"failReasonConfig.
keys != null and failReasonConfig.keys
.trim() != ''"
>
AND a.
KEYS = #{failReasonConfig.keys
}
<if
test=
"failReasonConfig.
reasonKey != null and failReasonConfig.reasonKey
.trim() != ''"
>
AND a.
REASON_KEY = #{failReasonConfig.reasonKey
}
</if>
<if
test=
"failReasonConfig.simpleReason != null and failReasonConfig.simpleReason.trim() != ''"
>
AND a.SIMPLE_REASON = #{failReasonConfig.simpleReason}
...
...
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