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
1cd3c583
Commit
1cd3c583
authored
Apr 30, 2021
by
何龙龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务分配页面第三次提交 修改完善分配提交
parent
f888d1fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
+20
-5
ChSrvSend.java
...com/hungraim/ltc/pojo/entity/serviceManage/ChSrvSend.java
+9
-0
BuildBedController.java
...ungraim/ltc/governance/controller/BuildBedController.java
+5
-2
SrvSendService.java
...a/com/hungraim/ltc/governance/service/SrvSendService.java
+1
-0
SrvSendServiceImpl.java
...graim/ltc/governance/service/impl/SrvSendServiceImpl.java
+5
-3
No files found.
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/serviceManage/ChSrvSend.java
View file @
1cd3c583
...
@@ -5,9 +5,11 @@ import com.baomidou.mybatisplus.annotation.KeySequence;
...
@@ -5,9 +5,11 @@ import com.baomidou.mybatisplus.annotation.KeySequence;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* CH_SRV_SEND
* CH_SRV_SEND
...
@@ -17,6 +19,7 @@ import java.util.Date;
...
@@ -17,6 +19,7 @@ import java.util.Date;
@Data
@Data
//@KeySequence("CH_SRV_SEND_SQE")
//@KeySequence("CH_SRV_SEND_SQE")
public
class
ChSrvSend
implements
Serializable
{
public
class
ChSrvSend
implements
Serializable
{
/**
/**
* 服务分配ID
* 服务分配ID
*/
*/
...
@@ -41,6 +44,7 @@ public class ChSrvSend implements Serializable {
...
@@ -41,6 +44,7 @@ public class ChSrvSend implements Serializable {
/**
/**
* 分配时间
* 分配时间
*/
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
allotTime
;
private
Date
allotTime
;
/**
/**
...
@@ -51,6 +55,7 @@ public class ChSrvSend implements Serializable {
...
@@ -51,6 +55,7 @@ public class ChSrvSend implements Serializable {
/**
/**
* 创建时间
* 创建时间
*/
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
effTime
;
private
Date
effTime
;
/**
/**
...
@@ -61,11 +66,13 @@ public class ChSrvSend implements Serializable {
...
@@ -61,11 +66,13 @@ public class ChSrvSend implements Serializable {
/**
/**
* 终止时间
* 终止时间
*/
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
endTime
;
private
Date
endTime
;
/**
/**
* 首次操作时间
* 首次操作时间
*/
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
fcd
;
private
Date
fcd
;
/**
/**
...
@@ -76,6 +83,7 @@ public class ChSrvSend implements Serializable {
...
@@ -76,6 +83,7 @@ public class ChSrvSend implements Serializable {
/**
/**
* 末次操作时间
* 末次操作时间
*/
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
lcd
;
private
Date
lcd
;
/**
/**
...
@@ -91,6 +99,7 @@ public class ChSrvSend implements Serializable {
...
@@ -91,6 +99,7 @@ public class ChSrvSend implements Serializable {
/**
/**
* 服务分配终止时间
* 服务分配终止时间
*/
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
stopTime
;
private
Date
stopTime
;
/**
/**
...
...
governance/src/main/java/com/hungraim/ltc/governance/controller/BuildBedController.java
View file @
1cd3c583
package
com
.
hungraim
.
ltc
.
governance
.
controller
;
package
com
.
hungraim
.
ltc
.
governance
.
controller
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
@@ -17,6 +18,7 @@ import com.hungraim.ltc.pojo.vo.governance.DisableInfoVo;
...
@@ -17,6 +18,7 @@ import com.hungraim.ltc.pojo.vo.governance.DisableInfoVo;
import
com.hungraim.ltc.pojo.vo.governance.SrvSendVO
;
import
com.hungraim.ltc.pojo.vo.governance.SrvSendVO
;
import
com.hungraim.ltc.util.Result
;
import
com.hungraim.ltc.util.Result
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -134,14 +136,14 @@ public class BuildBedController {
...
@@ -134,14 +136,14 @@ public class BuildBedController {
* 提交分配机构
* 提交分配机构
*/
*/
@PostMapping
(
"/submit"
)
@PostMapping
(
"/submit"
)
public
Result
submit
(
@RequestBody
ChrSrvVo
chrSrvVo
)
{
public
Result
submit
(
ChrSrvVo
chrSrvVo
)
{
List
<
ChSrvSend
>
chSrvSends
=
chrSrvVo
.
getChSrvSends
();
List
<
ChSrvSend
>
chSrvSends
=
chrSrvVo
.
getChSrvSends
();
if
(
chSrvSends
!=
null
&&
chSrvSends
.
size
()
>
0
)
{
if
(
chSrvSends
!=
null
&&
chSrvSends
.
size
()
>
0
)
{
Long
disabInfoId
=
null
;
Long
disabInfoId
=
null
;
for
(
ChSrvSend
chSrvSend
:
chSrvSends
)
{
for
(
ChSrvSend
chSrvSend
:
chSrvSends
)
{
disabInfoId
=
chSrvSend
.
getDisabInfoId
();
disabInfoId
=
chSrvSend
.
getDisabInfoId
();
// 判斷參數是否存在
// 判斷參數是否存在
if
(
StrUtil
.
isBlankIfStr
(
chSrvSend
.
getDisabInfoId
())
||
StrUtil
.
isBlankIfStr
(
chSrvSend
.
getSrvOrganId
())
||
StrUtil
.
isBlankIfStr
(
chSrvSend
.
getSrvModeId
())
)
{
if
(
chSrvSend
.
getDisabInfoId
()==
null
||
chSrvSend
.
getSrvOrganId
()==
null
||
chSrvSend
.
getSrvModeId
()==
null
)
{
return
Result
.
failed
(
"参数不全!"
);
return
Result
.
failed
(
"参数不全!"
);
}
}
chSrvSend
.
setAllotTime
(
new
Date
());
chSrvSend
.
setAllotTime
(
new
Date
());
...
@@ -162,5 +164,6 @@ public class BuildBedController {
...
@@ -162,5 +164,6 @@ public class BuildBedController {
}
}
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/SrvSendService.java
View file @
1cd3c583
...
@@ -21,4 +21,5 @@ public interface SrvSendService extends IService<ChSrvSend> {
...
@@ -21,4 +21,5 @@ public interface SrvSendService extends IService<ChSrvSend> {
List
<
DisableInfoTaskVO
>
selectBydisableInfoId
(
Integer
disableInfoId
);
List
<
DisableInfoTaskVO
>
selectBydisableInfoId
(
Integer
disableInfoId
);
Long
selectMaxId
();
Long
selectMaxId
();
}
}
governance/src/main/java/com/hungraim/ltc/governance/service/impl/SrvSendServiceImpl.java
View file @
1cd3c583
...
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Service;
...
@@ -16,6 +16,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@Service
@Service
...
@@ -30,12 +31,12 @@ public class SrvSendServiceImpl extends ServiceImpl<SrvSendMapper, ChSrvSend> im
...
@@ -30,12 +31,12 @@ public class SrvSendServiceImpl extends ServiceImpl<SrvSendMapper, ChSrvSend> im
Integer
current
=
disableInfo
.
getCurrent
();
Integer
current
=
disableInfo
.
getCurrent
();
Integer
limit
=
disableInfo
.
getLimit
();
Integer
limit
=
disableInfo
.
getLimit
();
if
(
current
==
null
||
current
<
1
)
{
if
(
current
==
null
||
current
<
1
)
{
current
=
1
;
current
=
1
;
}
}
if
(
limit
==
null
||
limit
<
1
)
{
if
(
limit
==
null
||
limit
<
1
)
{
limit
=
1
;
limit
=
1
;
}
}
Page
<
SrvSendVO
>
page
=
new
Page
<>(
current
,
limit
);
Page
<
SrvSendVO
>
page
=
new
Page
<>(
current
,
limit
);
return
sendMapper
.
selectSendList
(
page
,
disableInfo
,
chSrvOrgan
,
chSrvSend
);
return
sendMapper
.
selectSendList
(
page
,
disableInfo
,
chSrvOrgan
,
chSrvSend
);
}
}
...
@@ -60,4 +61,5 @@ public class SrvSendServiceImpl extends ServiceImpl<SrvSendMapper, ChSrvSend> im
...
@@ -60,4 +61,5 @@ public class SrvSendServiceImpl extends ServiceImpl<SrvSendMapper, ChSrvSend> im
return
this
.
baseMapper
.
selectMaxId
();
return
this
.
baseMapper
.
selectMaxId
();
}
}
}
}
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