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
4278cd0a
Commit
4278cd0a
authored
Jul 09, 2021
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
3839b2b5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
DutyCarController.java
.../boot/module/common/biz/controller/DutyCarController.java
+0
-1
DutyPersonShiftController.java
...dule/common/biz/controller/DutyPersonShiftController.java
+5
-0
DutyShiftServiceImpl.java
.../module/common/biz/service/impl/DutyShiftServiceImpl.java
+4
-3
ExcelController.java
.../amos/boot/module/jcs/biz/controller/ExcelController.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/DutyCarController.java
View file @
4278cd0a
...
@@ -14,7 +14,6 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
...
@@ -14,7 +14,6 @@ import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.List
;
import
java.util.List
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/DutyPersonShiftController.java
View file @
4278cd0a
...
@@ -14,6 +14,7 @@ import java.util.*;
...
@@ -14,6 +14,7 @@ import java.util.*;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.DutyPersonShiftServiceImpl
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.DutyPersonShiftServiceImpl
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -50,6 +51,8 @@ public class DutyPersonShiftController extends BaseController {
...
@@ -50,6 +51,8 @@ public class DutyPersonShiftController extends BaseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增值班人员日期关联关系表"
,
notes
=
"新增值班人员日期关联关系表"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增值班人员日期关联关系表"
,
notes
=
"新增值班人员日期关联关系表"
)
public
ResponseModel
<
DutyPersonShiftDto
>
save
(
@RequestBody
DutyPersonShiftDto
model
)
public
ResponseModel
<
DutyPersonShiftDto
>
save
(
@RequestBody
DutyPersonShiftDto
model
)
{
{
String
appKey
=
RequestContext
.
getAppKey
();
model
.
setAppKey
(
appKey
);
model
=
dutyPersonShiftServiceImpl
.
createWithModel
(
model
);
model
=
dutyPersonShiftServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
}
...
@@ -62,6 +65,8 @@ public class DutyPersonShiftController extends BaseController {
...
@@ -62,6 +65,8 @@ public class DutyPersonShiftController extends BaseController {
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新值班人员日期关联关系表"
,
notes
=
"根据sequenceNbr更新值班人员日期关联关系表"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新值班人员日期关联关系表"
,
notes
=
"根据sequenceNbr更新值班人员日期关联关系表"
)
public
ResponseModel
<
DutyPersonShiftDto
>
updateBySequenceNbrDutyPersonShift
(
@RequestBody
DutyPersonShiftDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
DutyPersonShiftDto
>
updateBySequenceNbrDutyPersonShift
(
@RequestBody
DutyPersonShiftDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
String
appKey
=
RequestContext
.
getAppKey
();
model
.
setAppKey
(
appKey
);
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
dutyPersonShiftServiceImpl
.
updateWithModel
(
model
));
return
ResponseHelper
.
buildResponse
(
dutyPersonShiftServiceImpl
.
updateWithModel
(
model
));
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyShiftServiceImpl.java
View file @
4278cd0a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.dto.DutyShiftDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.DutyShift
;
import
com.yeejoin.amos.boot.module.common.api.entity.DutyShift
;
import
com.yeejoin.amos.boot.module.common.api.mapper.DutyShiftMapper
;
import
com.yeejoin.amos.boot.module.common.api.mapper.DutyShiftMapper
;
import
com.yeejoin.amos.boot.module.common.api.service.IDutyShiftService
;
import
com.yeejoin.amos.boot.module.common.api.service.IDutyShiftService
;
import
com.yeejoin.amos.boot.module.common.api.dto.DutyShiftDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.List
;
import
java.util.List
;
/**
/**
* 值班班次服务实现类
* 值班班次服务实现类
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/ExcelController.java
View file @
4278cd0a
...
@@ -527,7 +527,7 @@ public class ExcelController extends BaseController {
...
@@ -527,7 +527,7 @@ public class ExcelController extends BaseController {
private
String
[]
getDutyNameList
()
{
private
String
[]
getDutyNameList
()
{
List
<
String
>
dutyShiftList
=
new
ArrayList
<>();
List
<
String
>
dutyShiftList
=
new
ArrayList
<>();
List
<
DutyShiftDto
>
dutyShiftDtoList
=
dutyShiftService
.
queryForDutyShiftList
();
List
<
DutyShiftDto
>
dutyShiftDtoList
=
dutyShiftService
.
queryForDutyShiftList
(
null
);
dutyShiftDtoList
.
forEach
(
item
->
dutyShiftList
.
add
(
item
.
getName
()
+
"@"
+
item
.
getSequenceNbr
()));
dutyShiftDtoList
.
forEach
(
item
->
dutyShiftList
.
add
(
item
.
getName
()
+
"@"
+
item
.
getSequenceNbr
()));
String
[]
dutyNameList
=
dutyShiftList
.
toArray
(
new
String
[
dutyShiftList
.
size
()]);
String
[]
dutyNameList
=
dutyShiftList
.
toArray
(
new
String
[
dutyShiftList
.
size
()]);
return
dutyNameList
;
return
dutyNameList
;
...
...
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