Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
cfld-liyeyun-admin
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
cfld-backend
cfld-liyeyun-admin
Commits
5ffcd59e
Commit
5ffcd59e
authored
Nov 15, 2023
by
lixinglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逻辑修改
parent
b15a9881
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
DevelopmentInfoServiceImpl.java
...ruoyi/system/service/impl/DevelopmentInfoServiceImpl.java
+4
-1
ParkInfoServiceImpl.java
...va/com/ruoyi/system/service/impl/ParkInfoServiceImpl.java
+5
-2
DevelopmentInfoMapper.xml
...esources/mapper/developmentInfo/DevelopmentInfoMapper.xml
+0
-1
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DevelopmentInfoServiceImpl.java
View file @
5ffcd59e
...
@@ -4,6 +4,7 @@ import java.util.List;
...
@@ -4,6 +4,7 @@ import java.util.List;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.system.domain.ParkInfo
;
import
com.ruoyi.system.domain.ParkInfo
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.DevelopmentInfoMapper
;
import
com.ruoyi.system.mapper.DevelopmentInfoMapper
;
...
@@ -75,7 +76,7 @@ public class DevelopmentInfoServiceImpl implements IDevelopmentInfoService {
...
@@ -75,7 +76,7 @@ public class DevelopmentInfoServiceImpl implements IDevelopmentInfoService {
List
<
DevelopmentInfo
>
parkInfos
=
developmentInfoMapper
.
selectDevelopmentInfoList
(
parkInfo1
);
List
<
DevelopmentInfo
>
parkInfos
=
developmentInfoMapper
.
selectDevelopmentInfoList
(
parkInfo1
);
DevelopmentInfo
developmentInfo1
=
developmentInfoMapper
.
selectDevelopmentInfoById
(
mirrorId
);
DevelopmentInfo
developmentInfo1
=
developmentInfoMapper
.
selectDevelopmentInfoById
(
mirrorId
);
if
(
developmentInfo1
!=
null
){
if
(
developmentInfo1
!=
null
){
developmentInfo1
.
setStatus
(
9
);
BeanUtils
.
copyProperties
(
developmentInfo
,
developmentInfo1
);
developmentInfoMapper
.
updateDevelopmentInfo
(
developmentInfo1
);
developmentInfoMapper
.
updateDevelopmentInfo
(
developmentInfo1
);
}
}
for
(
DevelopmentInfo
info
:
parkInfos
)
{
for
(
DevelopmentInfo
info
:
parkInfos
)
{
...
@@ -86,6 +87,8 @@ public class DevelopmentInfoServiceImpl implements IDevelopmentInfoService {
...
@@ -86,6 +87,8 @@ public class DevelopmentInfoServiceImpl implements IDevelopmentInfoService {
}
}
}
}
}
}
//把该条子记录删除
developmentInfoMapper
.
deleteDevelopmentInfoById
(
id
);
}
}
return
developmentInfoMapper
.
updateDevelopmentInfo
(
developmentInfo
);
return
developmentInfoMapper
.
updateDevelopmentInfo
(
developmentInfo
);
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ParkInfoServiceImpl.java
View file @
5ffcd59e
...
@@ -5,6 +5,7 @@ import java.util.Map;
...
@@ -5,6 +5,7 @@ import java.util.Map;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.system.domain.DevelopmentInfo
;
import
com.ruoyi.system.domain.DevelopmentInfo
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.ruoyi.system.mapper.ParkInfoMapper
;
import
com.ruoyi.system.mapper.ParkInfoMapper
;
...
@@ -82,8 +83,8 @@ public class ParkInfoServiceImpl implements IParkInfoService {
...
@@ -82,8 +83,8 @@ public class ParkInfoServiceImpl implements IParkInfoService {
parkInfo1
.
setMirrorId
(
mirrorId
);
parkInfo1
.
setMirrorId
(
mirrorId
);
List
<
ParkInfo
>
parkInfos
=
parkInfoMapper
.
selectParkInfoList
(
parkInfo1
);
List
<
ParkInfo
>
parkInfos
=
parkInfoMapper
.
selectParkInfoList
(
parkInfo1
);
ParkInfo
parkInfo2
=
parkInfoMapper
.
selectParkInfoById
(
mirrorId
);
ParkInfo
parkInfo2
=
parkInfoMapper
.
selectParkInfoById
(
mirrorId
);
if
(
parkInfo2
!=
null
)
{
if
(
parkInfo2
!=
null
)
{
parkInfo2
.
setStatus
(
9
);
BeanUtils
.
copyProperties
(
parkInfo
,
parkInfo2
);
parkInfoMapper
.
updateParkInfo
(
parkInfo2
);
parkInfoMapper
.
updateParkInfo
(
parkInfo2
);
}
}
for
(
ParkInfo
info
:
parkInfos
)
{
for
(
ParkInfo
info
:
parkInfos
)
{
...
@@ -94,6 +95,8 @@ public class ParkInfoServiceImpl implements IParkInfoService {
...
@@ -94,6 +95,8 @@ public class ParkInfoServiceImpl implements IParkInfoService {
}
}
}
}
}
}
//把该条子记录删除
parkInfoMapper
.
deleteParkInfoById
(
id
);
}
}
return
parkInfoMapper
.
updateParkInfo
(
parkInfo
);
return
parkInfoMapper
.
updateParkInfo
(
parkInfo
);
}
}
...
...
ruoyi-system/src/main/resources/mapper/developmentInfo/DevelopmentInfoMapper.xml
View file @
5ffcd59e
...
@@ -225,7 +225,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -225,7 +225,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
where id = #{id}
</select>
</select>
<select
id=
"selectByStatus"
parameterType=
"String"
resultMap=
"DevelopmentInfoResult"
>
<select
id=
"selectByStatus"
parameterType=
"String"
resultMap=
"DevelopmentInfoResult"
>
<include
refid=
"selectDevelopmentInfoVo"
/>
<include
refid=
"selectDevelopmentInfoVo"
/>
where status != #{status}
where status != #{status}
</select>
</select>
...
...
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