Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
9f059b5a
Commit
9f059b5a
authored
Sep 08, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务 3374 添加GIS地图配置 查看 前端表示getFormValue方法返回值为名称无法回显 要求返回值重新改为code值
parent
6393d661
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
5 deletions
+42
-5
DataDictionaryController.java
.../boot/biz/common/controller/DataDictionaryController.java
+18
-0
DataDictionaryMapper.java
...amos/boot/biz/common/dao/mapper/DataDictionaryMapper.java
+6
-0
DataDictionaryMapper.xml
...common/src/main/resources/mapper/DataDictionaryMapper.xml
+10
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+8
-5
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/controller/DataDictionaryController.java
View file @
9f059b5a
...
...
@@ -8,6 +8,7 @@ import java.util.List;
import
javax.servlet.http.HttpServletRequest
;
import
com.yeejoin.amos.boot.biz.common.dto.DataDictionaryDto
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -111,6 +112,21 @@ public class DataDictionaryController extends BaseController {
return
iDataDictionaryService
.
getById
(
id
);
}
/**
* 根据id查询
*
* @param code
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/code"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据code查询"
,
notes
=
"根据code查询"
)
public
DataDictionary
selectByCode
(
HttpServletRequest
request
,
@RequestParam
(
"code"
)
String
code
)
{
return
iDataDictionaryService
.
getByCode
(
code
);
}
/**
* 列表分页查询
*
...
...
@@ -283,4 +299,6 @@ public class DataDictionaryController extends BaseController {
return
ResponseHelper
.
buildResponse
(
menuList
);
}
}
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/dao/mapper/DataDictionaryMapper.java
View file @
9f059b5a
...
...
@@ -22,4 +22,10 @@ public interface DataDictionaryMapper extends BaseMapper<DataDictionary> {
* @return
*/
public
List
<
DataDictionary
>
getNoInLinkUnit
();
/**
* 根据code值查询
* @return
*/
public
DataDictionary
getByCode
(
String
code
);
}
amos-boot-biz-common/src/main/resources/mapper/DataDictionaryMapper.xml
View file @
9f059b5a
...
...
@@ -47,4 +47,14 @@ WHERE
cbb.type = 'YJLDDW' and cbb.is_delete = 0
AND elink.count IS NOT NULL
</select>
<select
id =
"getByCode"
resultType=
"com.yeejoin.amos.boot.biz.common.entity.DataDictionary"
>
SELECT
*
FROM
cb_data_dictionary cbb
WHERE
cbb.code = #{code} and cbb.is_delete = 0
</select>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
9f059b5a
...
...
@@ -361,22 +361,25 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
@Override
public
List
<
FormValue
>
getFormValue
(
Long
id
)
throws
Exception
{
// 动态表单数据
/*BUG2580 返回值为code值 修改为类型名称 2021-08-31 陈召 开始 */
List
<
DynamicFormInstanceDto
>
list
=
alertFormValueServiceImpl
.
listByCalledId
(
id
);
List
<
FormValue
>
formValue
=
new
ArrayList
<>();
for
(
DynamicFormInstanceDto
alertFormValue
:
list
)
{
if
(
alertFormValue
.
getFieldValueLabel
()
!=
null
)
{
/*BUG2580 返回值为code值 修改为类型名称 2021-08-31 陈召 开始 */
if
(
alertFormValue
.
getFieldValue
()
!=
null
)
{
/* 2021 09-08 前端表示getFieldValueLabel无法回显 要求返回值重新改为code值 改动代码 369 377*/
/*BUG2580 返回值为code值 修改为类型名称 2021-08-31 陈召 结束 */
FormValue
value
=
new
FormValue
(
alertFormValue
.
getFieldCode
(),
alertFormValue
.
getFieldName
(),
alertFormValue
.
getFieldType
(),
alertFormValue
.
getFieldValue
Label
(),
alertFormValue
.
getBlock
());
alertFormValue
.
getFieldType
(),
alertFormValue
.
getFieldValue
(),
alertFormValue
.
getBlock
());
formValue
.
add
(
value
);
}
else
{
FormValue
value
=
new
FormValue
(
alertFormValue
.
getFieldCode
(),
alertFormValue
.
getFieldName
(),
alertFormValue
.
getFieldType
(),
alertFormValue
.
getFieldValue
(),
alertFormValue
.
getBlock
());
alertFormValue
.
getFieldType
(),
alertFormValue
.
getFieldValue
Label
(),
alertFormValue
.
getBlock
());
formValue
.
add
(
value
);
}
}
return
formValue
;
/*BUG2580 返回值为code值 修改为类型名称 2021-08-31 陈召 结束 */
}
public
List
<
FormValue
>
getFormValueDetail
(
Long
id
)
throws
Exception
{
...
...
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