Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
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
hubin
long-tern-care-service
Commits
9e53be45
Commit
9e53be45
authored
Sep 07, 2021
by
zhangch
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
a00cb0a2
d8c7e100
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
24 deletions
+19
-24
DisableServiceImpl.java
...ava/com/hungraim/ltc/service/impl/DisableServiceImpl.java
+7
-19
DisableInfoChangeMapper.xml
...ice/src/main/resources/mapper/DisableInfoChangeMapper.xml
+7
-4
DisableInfoChangeVo.java
...com/hungraim/ltc/pojo/vo/disable/DisableInfoChangeVo.java
+5
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ltc/service/impl/DisableServiceImpl.java
View file @
9e53be45
...
@@ -323,19 +323,7 @@ public class DisableServiceImpl implements DisableService {
...
@@ -323,19 +323,7 @@ public class DisableServiceImpl implements DisableService {
@Override
@Override
public
void
DisInfoChange
(
ChDisableInfoChange
chDisableInfoChange
)
{
public
void
DisInfoChange
(
ChDisableInfoChange
chDisableInfoChange
)
{
//先把info的数据带出来
chDisableInfoChangeMapper
.
insert
(
chDisableInfoChange
);
List
<
ChDisableInfo
>
disableInfoList
=
disableInfoMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChDisableInfo
>()
.
eq
(
ChDisableInfo:
:
getRealName
,
chDisableInfoChange
.
getRealName
())
.
eq
(
ChDisableInfo:
:
getCertiCode
,
chDisableInfoChange
.
getCertifNum
()));
ChDisableInfo
chDisableInfo
=
null
;
if
(
disableInfoList
.
size
()
!=
0
)
{
chDisableInfo
=
disableInfoList
.
get
(
0
);
}
//更改完
ChDisableInfoChange
newDisableInfoChange
=
new
ChDisableInfoChange
();
BeanUtil
.
copyProperties
(
chDisableInfo
,
newDisableInfoChange
);
//存到这个变更表
chDisableInfoChangeMapper
.
insert
(
newDisableInfoChange
);
}
}
@Override
@Override
...
@@ -354,19 +342,19 @@ public class DisableServiceImpl implements DisableService {
...
@@ -354,19 +342,19 @@ public class DisableServiceImpl implements DisableService {
List
<
ChDisableInfo
>
disableInfoList
=
disableInfoMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChDisableInfo
>()
List
<
ChDisableInfo
>
disableInfoList
=
disableInfoMapper
.
selectList
(
new
LambdaQueryWrapper
<
ChDisableInfo
>()
.
eq
(
ChDisableInfo:
:
getRealName
,
chDisableInfoChange
.
getRealName
())
.
eq
(
ChDisableInfo:
:
getRealName
,
chDisableInfoChange
.
getRealName
())
.
eq
(
ChDisableInfo:
:
getCertiCode
,
chDisableInfoChange
.
getCertifNum
()));
.
eq
(
ChDisableInfo:
:
getCertiCode
,
chDisableInfoChange
.
getCertifNum
()));
ChDisableInfo
newDisableInfo
=
null
;
if
(
disableInfoList
.
size
()
!=
0
)
{
if
(
disableInfoList
.
size
()
!=
0
)
{
ChDisableInfo
chDisableInfo
=
disableInfoList
.
get
(
0
);
ChDisableInfo
chDisableInfo
=
disableInfoList
.
get
(
0
);
newDisableInfo
=
new
ChDisableInfo
();
//新建disable_info_his表的一条数据
ChDisableInfoHis
chDisableInfoHis
=
new
ChDisableInfoHis
();
BeanUtil
.
copyProperties
(
chDisableInfo
,
chDisableInfoHis
);
disableInfoHisMapper
.
insert
(
chDisableInfoHis
);
//更新info
ChDisableInfo
newDisableInfo
=
new
ChDisableInfo
();
newDisableInfo
.
setDisabInfoId
(
chDisableInfo
.
getDisabInfoId
());
newDisableInfo
.
setDisabInfoId
(
chDisableInfo
.
getDisabInfoId
());
BeanUtil
.
copyProperties
(
chDisableInfoChange
,
newDisableInfo
);
BeanUtil
.
copyProperties
(
chDisableInfoChange
,
newDisableInfo
);
newDisableInfo
.
setDataFrom
(
1
);
//数据来源设置为1-信息变更
newDisableInfo
.
setDataFrom
(
1
);
//数据来源设置为1-信息变更
disableInfoMapper
.
updateById
(
newDisableInfo
);
disableInfoMapper
.
updateById
(
newDisableInfo
);
}
}
//新建disable_info_his表的一条数据
ChDisableInfoHis
chDisableInfoHis
=
new
ChDisableInfoHis
();
BeanUtil
.
copyProperties
(
newDisableInfo
,
chDisableInfoHis
);
disableInfoHisMapper
.
insert
(
chDisableInfoHis
);
}
}
}
}
...
...
apply/apply-service/src/main/resources/mapper/DisableInfoChangeMapper.xml
View file @
9e53be45
...
@@ -10,19 +10,22 @@
...
@@ -10,19 +10,22 @@
change.DISTRICT_PROVINCE districtProvince,
change.DISTRICT_PROVINCE districtProvince,
change.DISTRICT_CITY districtCity,
change.DISTRICT_CITY districtCity,
change.DISTRICT_AREA districtArea,
change.DISTRICT_AREA districtArea,
(select ORGAN_NAME from CH_FND_ORGAN organ where change.APL_ORGAN_ID=organ.ORGAN_ID)apl
OrganName,
srvOrgan.SRV_ORGAN_NAME srv
OrganName,
change.REAL_NAME realName,
change.REAL_NAME realName,
change.GENDER gender,
change.GENDER gender,
change.BIRTHDAY birthday,
change.BIRTHDAY birthday,
change.CERTIF_NUM certifNum,
change.CERTIF_NUM certifNum,
change.TEL tel,
change.TEL tel,
(select SRV_MODE_NAME from CH_FND_SRV_MODE cfdt where disinfo.SRV_MODE_ID=cfdt.SRV_MODE_ID)
srvModeName,
srvMode.SRV_MODE_NAME
srvModeName,
(select DISE_TYPE_CODE from CH_FND_DISEASE_TYPE where disinfo.DISE_TYPE_S = DISE_TYPE_ID)
diseTypeS,
disinfo.DISE_TYPE_S
diseTypeS,
change.EFF_TIME effTime,
change.EFF_TIME effTime,
change.APPLY_STATUS applyStatus
change.APPLY_STATUS applyStatus
from CH_DISABLE_INFO_CHANGE change
from CH_DISABLE_INFO_CHANGE change
left join CH_DISABLE_INFO disinfo on change.DISAB_INFO_ID=disinfo.DISAB_INFO_ID
left join CH_FND_ORGAN organ on change.ORGAN_ID=organ.ORGAN_ID
left join CH_FND_ORGAN organ on change.ORGAN_ID=organ.ORGAN_ID
left join CH_SRV_ORGAN srvOrgan on change.APL_ORGAN_ID=srvOrgan.SRV_ORGAN_ID
left join CH_DISABLE_INFO disinfo on change.DISAB_INFO_ID=disinfo.DISAB_INFO_ID
left join CH_FND_SRV_MODE srvMode on disinfo.SRV_MODE_ID=srvMode.SRV_MODE_ID
<where>
<where>
and task.APR_TYPE = 0
and task.APR_TYPE = 0
<if
test=
"organId != null"
>
<if
test=
"organId != null"
>
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/vo/disable/DisableInfoChangeVo.java
View file @
9e53be45
...
@@ -16,7 +16,6 @@ public class DisableInfoChangeVo {
...
@@ -16,7 +16,6 @@ public class DisableInfoChangeVo {
* 机构代码
* 机构代码
*/
*/
private
String
organId
;
private
String
organId
;
/**
/**
* 所在省份
* 所在省份
*/
*/
...
@@ -36,6 +35,11 @@ public class DisableInfoChangeVo {
...
@@ -36,6 +35,11 @@ public class DisableInfoChangeVo {
*/
*/
private
Integer
aplOrganId
;
private
Integer
aplOrganId
;
/**
/**
* 提交机构
*/
private
String
srvOrganName
;
/**
* 申请人姓名
* 申请人姓名
*/
*/
private
String
realName
;
private
String
realName
;
...
...
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