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
cb6447c7
Commit
cb6447c7
authored
Jun 25, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加人员列表查询
parent
2eb3b0fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
27 deletions
+51
-27
OrgUsrMapper.xml
...module-jcs-api/src/main/resources/mapper/OrgUsrMapper.xml
+1
-1
OrgPersonController.java
...s/boot/module/jcs/biz/controller/OrgPersonController.java
+24
-9
AlertFormServiceImpl.java
...oot/module/jcs/biz/service/impl/AlertFormServiceImpl.java
+2
-2
OrgUsrServiceImpl.java
...s/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
+24
-15
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
cb6447c7
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
WHERE
WHERE
1=1
1=1
<if
test=
"biz_org_code != null and biz_org_code != ''"
>
<if
test=
"biz_org_code != null and biz_org_code != ''"
>
and `sequence_nbr` = ( SELECT parent_id FROM `cb_org_usr` WHERE biz_org_code = #{biz_org_code} limit 1)
and `sequence_nbr` = ( SELECT parent_id FROM `cb_org_usr` WHERE biz_org_code = #{biz_org_code}
and is_delete = 0
limit 1)
</if>
</if>
</select>
</select>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/OrgPersonController.java
View file @
cb6447c7
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jcs.biz.controller;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jcs.biz.controller;
import
java.io.UnsupportedEncodingException
;
import
java.io.UnsupportedEncodingException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -88,20 +89,15 @@ public class OrgPersonController {
...
@@ -88,20 +89,15 @@ public class OrgPersonController {
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
/**
/**
* 根据id查询人员
*
*
* @param request
* @param id
* @param id
* @return
* @return
* @throws Exception
*/
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取人员详情"
,
notes
=
"获取人员详情"
)
public
ResponseModel
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
selectPersonById
(
id
));
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}/detail"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/{id}/detail"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取人员详情"
,
notes
=
"获取人员详情"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取人员详情"
,
notes
=
"获取人员详情"
)
public
ResponseModel
selectByIdDetail
(
HttpServletRequest
request
,
@PathVariable
Long
id
)
throws
Exception
{
public
ResponseModel
selectByIdDetail
(
HttpServletRequest
request
,
@PathVariable
Long
id
)
throws
Exception
{
...
@@ -116,7 +112,7 @@ public class OrgPersonController {
...
@@ -116,7 +112,7 @@ public class OrgPersonController {
*/
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/show/{id}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/show/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取人员详情"
,
notes
=
"获取人员详情"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取人员详情
(map类型)
"
,
notes
=
"获取人员详情"
)
public
ResponseModel
selectForShowById
(
HttpServletRequest
request
,
@PathVariable
Long
id
)
throws
Exception
{
public
ResponseModel
selectForShowById
(
HttpServletRequest
request
,
@PathVariable
Long
id
)
throws
Exception
{
OrgUsr
orgUsr
=
iOrgUsrService
.
getById
(
id
);
OrgUsr
orgUsr
=
iOrgUsrService
.
getById
(
id
);
Map
<
String
,
Object
>
result
=
iOrgUsrService
.
selectForShowById
(
orgUsr
,
id
);
Map
<
String
,
Object
>
result
=
iOrgUsrService
.
selectForShowById
(
orgUsr
,
id
);
...
@@ -194,4 +190,23 @@ public class OrgPersonController {
...
@@ -194,4 +190,23 @@ public class OrgPersonController {
iOrgUsrService
.
savePersonList
(
OrgPersonVo
);
iOrgUsrService
.
savePersonList
(
OrgPersonVo
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
/**
* 根据id查询人员
*
* @param ids
* @return
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/showPersonList/{ids}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取人员列表详情(map类型)"
,
notes
=
"获取人员详情"
)
public
ResponseModel
selectForShowByListId
(
HttpServletRequest
request
,
@PathVariable
List
<
Long
>
ids
)
throws
Exception
{
List
<
Map
<
String
,
Object
>>
personResult
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
ids
.
size
();
i
++)
{
OrgUsr
orgUsr
=
iOrgUsrService
.
getById
(
ids
.
get
(
i
));
Map
<
String
,
Object
>
result
=
iOrgUsrService
.
selectForShowById
(
orgUsr
,
ids
.
get
(
i
));
personResult
.
add
(
result
);
}
return
ResponseHelper
.
buildResponse
(
personResult
);
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertFormServiceImpl.java
View file @
cb6447c7
...
@@ -45,7 +45,7 @@ public class AlertFormServiceImpl extends BaseService<AlertFromDto,AlertForm,Ale
...
@@ -45,7 +45,7 @@ public class AlertFormServiceImpl extends BaseService<AlertFromDto,AlertForm,Ale
for
(
AlertForm
alertFrom
:
alertFormValue
)
{
for
(
AlertForm
alertFrom
:
alertFormValue
)
{
if
(
alertFrom
.
getFieldType
().
equals
(
"string"
)||
alertFrom
.
getFieldType
().
equals
(
"date"
)||
alertFrom
.
getFieldType
().
equals
(
"textarea"
))
{
if
(
alertFrom
.
getFieldType
().
equals
(
"string"
)||
alertFrom
.
getFieldType
().
equals
(
"date"
)||
alertFrom
.
getFieldType
().
equals
(
"textarea"
))
{
AlertFormVo
vo
=
new
AlertFormVo
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
null
,
AlertFormVo
vo
=
new
AlertFormVo
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
null
,
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
get
Is
Block
()));
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
()));
listfrom
.
add
(
vo
);
listfrom
.
add
(
vo
);
}
else
{
}
else
{
// 查询数据项
// 查询数据项
...
@@ -54,7 +54,7 @@ public class AlertFormServiceImpl extends BaseService<AlertFromDto,AlertForm,Ale
...
@@ -54,7 +54,7 @@ public class AlertFormServiceImpl extends BaseService<AlertFromDto,AlertForm,Ale
queryWrappercolumnMap
.
orderByAsc
(
"sort_num"
);
queryWrappercolumnMap
.
orderByAsc
(
"sort_num"
);
Collection
<
DataDictionary
>
listDataDictionary
=
iDataDictionaryService
.
list
(
queryWrappercolumnMap
);
Collection
<
DataDictionary
>
listDataDictionary
=
iDataDictionaryService
.
list
(
queryWrappercolumnMap
);
AlertFormVo
vo
=
new
AlertFormVo
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
AlertFormVo
vo
=
new
AlertFormVo
(
alertFrom
.
getFieldCode
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldType
(),
new
Items
(
getdata
(
listDataDictionary
)),
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
get
Is
Block
()));
new
Items
(
getdata
(
listDataDictionary
)),
new
AlertFormValue
(
alertFrom
.
getSequenceNbr
(),
alertFrom
.
getFieldName
(),
alertFrom
.
getFieldCode
(),
alertFrom
.
getBlock
()));
listfrom
.
add
(
vo
);
listfrom
.
add
(
vo
);
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
View file @
cb6447c7
...
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.constants.CommonConstant
;
import
com.yeejoin.amos.boot.biz.common.constants.CommonConstant
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertForm
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.OrgUsrMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.OrgUsrMapper
;
...
@@ -54,6 +55,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -54,6 +55,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
AlertFormServiceImpl
alertFormServiceImpl
;
AlertFormServiceImpl
alertFormServiceImpl
;
@Autowired
@Autowired
AlertFormValueServiceImpl
iAlertFromValueService
;
AlertFormValueServiceImpl
iAlertFromValueService
;
@Autowired
AlertFormServiceImpl
iAlertFormServiceImpl
;
@Override
@Override
public
String
selectUpUnitByParam
(
String
biz_org_code
)
{
public
String
selectUpUnitByParam
(
String
biz_org_code
)
{
...
@@ -388,14 +391,20 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -388,14 +391,20 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
@Override
@Override
public
Map
<
String
,
Object
>
selectForShowById
(
OrgUsr
orgUsr
,
Long
id
)
throws
Exception
{
public
Map
<
String
,
Object
>
selectForShowById
(
OrgUsr
orgUsr
,
Long
id
)
throws
Exception
{
QueryWrapper
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
queryWrapper
=
new
QueryWrapper
();
queryWrapper
.
eq
(
"alert_called_id"
,
id
);
queryWrapper
.
eq
(
"alert_type_code"
,
246
);
List
<
AlertForm
>
alertForms
=
iAlertFormServiceImpl
.
list
(
queryWrapper
);
// 动态表单数据
// 动态表单数据
List
<
AlertFormValueVo
>
list
=
iAlertFromValueService
.
listByCalledId
(
id
);
List
<
AlertFormValueVo
>
list
=
iAlertFromValueService
.
listByCalledId
(
id
);
List
<
FormValue
>
formValue
=
new
ArrayList
();
List
<
FormValue
>
formValue
=
new
ArrayList
();
Map
<
String
,
Object
>
result
=
Bean
.
BeantoMap
(
orgUsr
);
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
=
Bean
.
BeantoMap
(
orgUsr
);
// 放入所有动态表单数据
for
(
AlertForm
alertForm
:
alertForms
)
{
result
.
put
(
alertForm
.
getFieldCode
(),
null
);
}
for
(
AlertFormValueVo
alertFormValue
:
list
)
{
for
(
AlertFormValueVo
alertFormValue
:
list
)
{
result
.
put
(
alertFormValue
.
getFieldCode
(),
alertFormValue
.
getFieldValue
());
result
.
replace
(
alertFormValue
.
getFieldCode
(),
alertFormValue
.
getFieldValue
());
}
}
return
result
;
return
result
;
}
}
...
@@ -418,7 +427,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -418,7 +427,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
orgUsr
=
new
OrgUsr
();
BeanUtils
.
copyProperties
(
OrgPersonVo
,
orgUsr
);
BeanUtils
.
copyProperties
(
OrgPersonVo
,
orgUsr
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
saveOrgUsrAlertFormValue
(
orgUsr
,
OrgPersonVo
.
getAlertFormValue
());
saveOrgUsrAlertFormValue
(
orgUsr
,
OrgPersonVo
.
getAlertFormValue
());
}
}
@Override
@Override
...
@@ -438,9 +447,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -438,9 +447,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
oriOrgUsr
=
getById
(
id
);
OrgUsr
oriOrgUsr
=
getById
(
id
);
BeanUtils
.
copyProperties
(
OrgPersonVo
,
orgUsr
);
BeanUtils
.
copyProperties
(
OrgPersonVo
,
orgUsr
);
saveOrgUsr
(
oriOrgUsr
,
id
);
saveOrgUsr
(
oriOrgUsr
,
id
);
// 保存动态表单数据
// 保存动态表单数据
updateAlertFormValue
(
oriOrgUsr
,
orgUsr
.
getSequenceNbr
(),
OrgPersonVo
.
getAlertFormValue
());
updateAlertFormValue
(
oriOrgUsr
,
orgUsr
.
getSequenceNbr
(),
OrgPersonVo
.
getAlertFormValue
());
}
}
@Override
@Override
...
@@ -491,7 +500,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -491,7 +500,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
orgUsr
=
new
OrgUsr
();
BeanUtils
.
copyProperties
(
OrgUsrVo
.
get
(
i
),
orgUsr
);
BeanUtils
.
copyProperties
(
OrgUsrVo
.
get
(
i
),
orgUsr
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_COMPANY
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_COMPANY
);
saveOrgUsrAlertFormValue
(
orgUsr
,
OrgUsrVo
.
get
(
i
).
getAlertFormValue
());
saveOrgUsrAlertFormValue
(
orgUsr
,
OrgUsrVo
.
get
(
i
).
getAlertFormValue
());
}
}
}
}
...
@@ -503,7 +512,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -503,7 +512,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgPersonFormVo
orgPersonFormVo
=
new
OrgPersonFormVo
(
formValue
);
OrgPersonFormVo
orgPersonFormVo
=
new
OrgPersonFormVo
(
formValue
);
BeanUtils
.
copyProperties
(
orgUsr
,
orgPersonFormVo
);
BeanUtils
.
copyProperties
(
orgUsr
,
orgPersonFormVo
);
orgPersonFormVo
.
setParentName
(
getById
(
orgUsr
.
getParentId
()).
getBizOrgName
());
orgPersonFormVo
.
setParentName
(
getById
(
orgUsr
.
getParentId
()).
getBizOrgName
());
return
orgPersonFormVo
;
return
orgPersonFormVo
;
}
}
@Override
@Override
...
@@ -524,7 +533,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -524,7 +533,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
columnMap
.
put
(
"is_delete"
,
CommonConstant
.
IS_DELETE_00
);
columnMap
.
put
(
"is_delete"
,
CommonConstant
.
IS_DELETE_00
);
columnMap
.
put
(
"biz_org_type"
,
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
columnMap
.
put
(
"biz_org_type"
,
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
Collection
<
OrgUsr
>
list
=
listByMap
(
columnMap
);
Collection
<
OrgUsr
>
list
=
listByMap
(
columnMap
);
return
getTree
(
null
,
list
,
OrgUsr
.
class
.
getName
(),
"getSequenceNbr"
,
2
,
"getBizOrgName"
,
"getParentId"
,
"getBizOrgType"
);
return
getTree
(
null
,
list
,
OrgUsr
.
class
.
getName
(),
"getSequenceNbr"
,
2
,
"getBizOrgName"
,
"getParentId"
,
"getBizOrgType"
);
}
}
...
@@ -534,7 +543,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -534,7 +543,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
orgUsr
=
new
OrgUsr
();
BeanUtils
.
copyProperties
(
OrgPersonVo
.
get
(
i
),
orgUsr
);
BeanUtils
.
copyProperties
(
OrgPersonVo
.
get
(
i
),
orgUsr
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
saveOrgUsrAlertFormValue
(
orgUsr
,
OrgPersonVo
.
get
(
i
).
getAlertFormValue
());
saveOrgUsrAlertFormValue
(
orgUsr
,
OrgPersonVo
.
get
(
i
).
getAlertFormValue
());
}
}
}
}
...
@@ -543,7 +552,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -543,7 +552,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
orgUsr
=
new
OrgUsr
();
BeanUtils
.
copyProperties
(
OrgDepartmentVo
,
orgUsr
);
BeanUtils
.
copyProperties
(
OrgDepartmentVo
,
orgUsr
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_DEPARTMENT
);
orgUsr
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_DEPARTMENT
);
saveOrgUsrAlertFormValue
(
orgUsr
,
OrgDepartmentVo
.
getAlertFormValue
());
saveOrgUsrAlertFormValue
(
orgUsr
,
OrgDepartmentVo
.
getAlertFormValue
());
}
}
@Override
@Override
...
@@ -552,9 +561,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -552,9 +561,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
orgUsr
=
new
OrgUsr
();
OrgUsr
oriOrgUsr
=
getById
(
id
);
OrgUsr
oriOrgUsr
=
getById
(
id
);
BeanUtils
.
copyProperties
(
OrgDepartmentVo
,
orgUsr
);
BeanUtils
.
copyProperties
(
OrgDepartmentVo
,
orgUsr
);
saveOrgUsr
(
oriOrgUsr
,
id
);
saveOrgUsr
(
oriOrgUsr
,
id
);
// 保存动态表单数据
// 保存动态表单数据
updateAlertFormValue
(
oriOrgUsr
,
orgUsr
.
getSequenceNbr
(),
OrgDepartmentVo
.
getAlertFormValue
());
updateAlertFormValue
(
oriOrgUsr
,
orgUsr
.
getSequenceNbr
(),
OrgDepartmentVo
.
getAlertFormValue
());
}
}
@Override
@Override
...
@@ -564,6 +573,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -564,6 +573,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
List
<
FormValue
>
formValue
=
getFormValue
(
id
);
List
<
FormValue
>
formValue
=
getFormValue
(
id
);
OrgDepartmentFormVo
orgDepartmentFormVo
=
new
OrgDepartmentFormVo
(
formValue
);
OrgDepartmentFormVo
orgDepartmentFormVo
=
new
OrgDepartmentFormVo
(
formValue
);
BeanUtils
.
copyProperties
(
orgUsr
,
orgDepartmentFormVo
);
BeanUtils
.
copyProperties
(
orgUsr
,
orgDepartmentFormVo
);
return
orgDepartmentFormVo
;
return
orgDepartmentFormVo
;
}
}
}
}
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