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
5cfc86f6
Commit
5cfc86f6
authored
Sep 02, 2021
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.redis先修改为不同,原因两边序列化方式不一致
2.pom 依赖库整理 3.巡检app升级bug修改
parent
a9fd265c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
165 additions
and
174 deletions
+165
-174
RedisKey.java
...java/com/yeejoin/amos/boot/biz/common/utils/RedisKey.java
+1
-1
CheckController.java
...amos/maintenance/business/controller/CheckController.java
+1
-0
CheckServiceImpl.java
...s/maintenance/business/service/impl/CheckServiceImpl.java
+2
-2
PlanController.java
...ejoin/amos/patrol/business/controller/PlanController.java
+151
-148
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+4
-3
pom.xml
pom.xml
+6
-20
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/RedisKey.java
View file @
5cfc86f6
...
@@ -42,7 +42,7 @@ public class RedisKey {
...
@@ -42,7 +42,7 @@ public class RedisKey {
* @return String
* @return String
*/
*/
public
static
String
buildReginKey
(
String
userId
,
String
token
)
{
public
static
String
buildReginKey
(
String
userId
,
String
token
)
{
return
"
region
_"
+
userId
+
"_"
+
token
;
return
"
biz
_"
+
userId
+
"_"
+
token
;
}
}
/**
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/controller/CheckController.java
View file @
5cfc86f6
...
@@ -532,6 +532,7 @@ public class CheckController extends AbstractBaseController {
...
@@ -532,6 +532,7 @@ public class CheckController extends AbstractBaseController {
return
ResponseHelper
.
buildResponse
(
CheckRecordOrderByEnum
.
getEnumList
());
return
ResponseHelper
.
buildResponse
(
CheckRecordOrderByEnum
.
getEnumList
());
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"/设备设施维保记录分页列表"
,
notes
=
"外部接口装备和者水源使用"
)
@ApiOperation
(
value
=
"/设备设施维保记录分页列表"
,
notes
=
"外部接口装备和者水源使用"
)
@GetMapping
(
value
=
"page/{originalId}/list"
)
@GetMapping
(
value
=
"page/{originalId}/list"
)
public
ResponseModel
getCheckListByOriginalId
(
public
ResponseModel
getCheckListByOriginalId
(
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/CheckServiceImpl.java
View file @
5cfc86f6
...
@@ -437,8 +437,8 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -437,8 +437,8 @@ public class CheckServiceImpl implements ICheckService {
List
<
DaoCriteria
>
criterias
=
new
ArrayList
<>();
List
<
DaoCriteria
>
criterias
=
new
ArrayList
<>();
DaoCriteria
daoCriteria
=
new
DaoCriteria
();
DaoCriteria
daoCriteria
=
new
DaoCriteria
();
daoCriteria
.
setOperator
(
QueryOperatorEnum
.
EQUAL
.
getName
());
daoCriteria
.
setOperator
(
QueryOperatorEnum
.
EQUAL
.
getName
());
daoCriteria
.
setPropertyName
(
"
original
Id"
);
daoCriteria
.
setPropertyName
(
"
point
Id"
);
daoCriteria
.
setValue
(
originalId
);
daoCriteria
.
setValue
(
point
.
getId
()
);
criterias
.
add
(
daoCriteria
);
criterias
.
add
(
daoCriteria
);
BaseQuerySpecification
<
Check
>
spec
=
new
BaseQuerySpecification
<>(
criterias
);
BaseQuerySpecification
<
Check
>
spec
=
new
BaseQuerySpecification
<>(
criterias
);
Sort
.
Order
idOrder
=
new
Sort
.
Order
(
Sort
.
Direction
.
DESC
,
"id"
);
Sort
.
Order
idOrder
=
new
Sort
.
Order
(
Sort
.
Direction
.
DESC
,
"id"
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanController.java
View file @
5cfc86f6
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
controller
;
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
controller
;
import
java.util.HashMap
;
import
java.util.List
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.patrol.business.constants.XJConstant
;
import
com.yeejoin.amos.patrol.business.constants.XJConstant
;
import
com.yeejoin.amos.patrol.business.param.PlanInfoPageParam
;
import
com.yeejoin.amos.patrol.business.param.PlanInfoPageParam
;
...
@@ -22,156 +9,172 @@ import com.yeejoin.amos.patrol.business.util.CommonResponseUtil;
...
@@ -22,156 +9,172 @@ import com.yeejoin.amos.patrol.business.util.CommonResponseUtil;
import
com.yeejoin.amos.patrol.business.util.PlanPageParamUtil
;
import
com.yeejoin.amos.patrol.business.util.PlanPageParamUtil
;
import
com.yeejoin.amos.patrol.core.common.request.CommonPageable
;
import
com.yeejoin.amos.patrol.core.common.request.CommonPageable
;
import
com.yeejoin.amos.patrol.core.common.request.CommonRequest
;
import
com.yeejoin.amos.patrol.core.common.request.CommonRequest
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
com.yeejoin.amos.patrol.dao.entity.Plan
;
import
com.yeejoin.amos.patrol.dao.entity.Plan
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
io.swagger.annotations.ApiParam
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
java.util.HashMap
;
import
java.util.List
;
@RestController
@RestController
@RequestMapping
(
value
=
"/api/plan"
)
@RequestMapping
(
value
=
"/api/plan"
)
@Api
(
tags
=
"巡检计划api"
)
@Api
(
tags
=
"巡检计划api"
)
public
class
PlanController
extends
AbstractBaseController
{
public
class
PlanController
extends
AbstractBaseController
{
private
final
Logger
log
=
LoggerFactory
.
getLogger
(
PlanController
.
class
);
private
final
Logger
log
=
LoggerFactory
.
getLogger
(
PlanController
.
class
);
@Autowired
@Autowired
private
IPlanService
planService
;
private
IPlanService
planService
;
/**
* 巡检计划查询
/**
* @param
* 巡检计划查询
* @param param
*
* @return
* @param
*/
* @param param
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
* @return
@ApiOperation
(
value
=
"巡检计划查询"
,
notes
=
"巡检计划查询"
)
*/
@RequestMapping
(
value
=
"/list"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
qryCheckInfoPage
(
@ApiParam
(
value
=
"查询条件"
,
required
=
false
)
@RequestBody
(
required
=
false
)
List
<
CommonRequest
>
queryRequests
,
@ApiOperation
(
value
=
"巡检计划查询"
,
notes
=
"巡检计划查询"
)
@ApiParam
(
value
=
"分页参数"
,
required
=
true
)
CommonPageable
commonPageable
)
{
@RequestMapping
(
value
=
"/list"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
ReginParams
reginParams
=
getSelectedOrgInfo
();
public
CommonResponse
qryCheckInfoPage
(
@ApiParam
(
value
=
"查询条件"
,
required
=
false
)
@RequestBody
(
required
=
false
)
List
<
CommonRequest
>
queryRequests
,
String
loginOrgCode
=
getOrgCode
(
reginParams
);
@ApiParam
(
value
=
"分页参数"
,
required
=
true
)
CommonPageable
commonPageable
)
{
String
roleTypeName
=
getRoleTypeName
(
reginParams
);
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
deptId
=
""
;
String
loginOrgCode
=
getOrgCode
(
reginParams
);
String
userId
=
""
;
String
roleTypeName
=
getRoleTypeName
(
reginParams
);
String
deptId
=
""
;
String
userId
=
""
;
HashMap
<
String
,
Object
>
paramMap
=
buildMybatisCriterias
(
loginOrgCode
,
roleTypeName
);
if
(
XJConstant
.
ROLE_NAME_DEPTADMIN
.
equals
(
roleTypeName
))
{
deptId
=
getDepartmentId
(
reginParams
);
if
(
deptId
!=
null
&&
!(
""
).
equals
(
deptId
.
trim
()))
paramMap
.
put
(
"departmentId"
,
deptId
);
}
else
if
(
XJConstant
.
ROLE_NAME_PERSON
.
equals
(
roleTypeName
))
{
userId
=
getUserId
();
if
(
userId
!=
null
&&
!(
""
).
equals
(
userId
.
trim
()))
paramMap
.
put
(
"userId"
,
userId
);
}
PlanInfoPageParam
param
=
PlanPageParamUtil
.
fillPlanInfoParam
(
queryRequests
,
commonPageable
,
paramMap
);
Page
<
HashMap
<
String
,
Object
>>
list
=
planService
.
getPlanInfo
(
param
);
return
CommonResponseUtil
.
success
(
list
);
}
HashMap
<
String
,
Object
>
paramMap
=
buildMybatisCriterias
(
loginOrgCode
,
roleTypeName
);
/**
if
(
XJConstant
.
ROLE_NAME_DEPTADMIN
.
equals
(
roleTypeName
)){
* 巡检计划新增
deptId
=
getDepartmentId
(
reginParams
);
*
if
(
deptId
!=
null
&&!(
""
).
equals
(
deptId
.
trim
()))
* @param param
paramMap
.
put
(
"departmentId"
,
deptId
);
* @return
}
else
if
(
XJConstant
.
ROLE_NAME_PERSON
.
equals
(
roleTypeName
)){
*/
userId
=
getUserId
();
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
if
(
userId
!=
null
&&!(
""
).
equals
(
userId
.
trim
()))
@ApiOperation
(
value
=
"巡检计划新增及编辑"
,
notes
=
"巡检计划新增及编辑"
)
paramMap
.
put
(
"userId"
,
userId
);
@RequestMapping
(
value
=
"/addPlan"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
}
public
CommonResponse
checkPlanAdd
(
@ApiParam
(
value
=
"巡检计划"
,
required
=
true
)
@RequestBody
Plan
param
)
{
PlanInfoPageParam
param
=
PlanPageParamUtil
.
fillPlanInfoParam
(
queryRequests
,
commonPageable
,
paramMap
);
try
{
Page
<
HashMap
<
String
,
Object
>>
list
=
planService
.
getPlanInfo
(
param
);
String
userId
=
getUserId
();
return
CommonResponseUtil
.
success
(
list
);
ReginParams
reginParams
=
getSelectedOrgInfo
();
}
String
loginOrgCode
=
getOrgCode
(
reginParams
);
/**
HashMap
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
* 巡检计划新增
map
.
put
(
"org_code"
,
loginOrgCode
);
* @param param
map
.
put
(
"user_id"
,
userId
);
* @return
map
.
put
(
"param"
,
param
);
*/
planService
.
addPlan
(
map
);
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
return
CommonResponseUtil
.
success
();
@ApiOperation
(
value
=
"巡检计划新增及编辑"
,
notes
=
"巡检计划新增及编辑"
)
}
catch
(
Exception
e
)
{
@RequestMapping
(
value
=
"/addPlan"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
log
.
error
(
e
.
getMessage
(),
e
);
public
CommonResponse
checkPlanAdd
(
@ApiParam
(
value
=
"巡检计划"
,
required
=
true
)
@RequestBody
Plan
param
)
{
return
CommonResponseUtil
.
failure
(
"巡检计划新增失败"
);
try
{
}
String
userId
=
getUserId
();
}
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
loginOrgCode
=
getOrgCode
(
reginParams
);
HashMap
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"org_code"
,
loginOrgCode
);
map
.
put
(
"user_id"
,
userId
);
map
.
put
(
"param"
,
param
);
planService
.
addPlan
(
map
);
return
CommonResponseUtil
.
success
();
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
return
CommonResponseUtil
.
failure
(
"巡检计划新增失败"
);
}
}
/**
/**
* 巡检计划删除(支持批量)
* 巡检计划删除(支持批量)
* @param param
*
* @return
* @param param
*/
* @return
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
*/
@ApiOperation
(
value
=
"删除巡检计划"
,
notes
=
"删除巡检计划"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/deletePlanById"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
value
=
"删除巡检计划"
,
notes
=
"删除巡检计划"
)
public
CommonResponse
deletePlanById
(
@RequestMapping
(
value
=
"/deletePlanById"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
@ApiParam
(
value
=
"巡检计划ID"
,
required
=
true
)
@RequestBody
String
[]
param
)
{
public
CommonResponse
deletePlanById
(
try
{
@ApiParam
(
value
=
"巡检计划ID"
,
required
=
true
)
@RequestBody
String
[]
param
)
{
planService
.
delPlanById
(
param
);
try
{
return
CommonResponseUtil
.
success
();
planService
.
delPlanById
(
param
);
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
success
();
log
.
error
(
e
.
getMessage
(),
e
);
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
failure
(
"删除巡检计划失败"
);
log
.
error
(
e
.
getMessage
(),
e
);
}
return
CommonResponseUtil
.
failure
(
"删除巡检计划失败"
);
}
}
}
/**
/**
* 编辑巡检另存(支持批量)
* 编辑巡检另存(支持批量)
* @param param
*
* @return
* @param param
*/
* @return
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
*/
@ApiOperation
(
value
=
"另存巡检计划"
,
notes
=
"另存巡检计划"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/saveAs"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
value
=
"另存巡检计划"
,
notes
=
"另存巡检计划"
)
public
CommonResponse
planSaveAs
(
@ApiParam
(
value
=
"参数"
,
required
=
true
)
@RequestBody
String
[]
param
)
{
@RequestMapping
(
value
=
"/saveAs"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
try
{
public
CommonResponse
planSaveAs
(
@ApiParam
(
value
=
"参数"
,
required
=
true
)
@RequestBody
String
[]
param
)
{
planService
.
planSaveAs
(
param
);
try
{
return
CommonResponseUtil
.
success
();
planService
.
planSaveAs
(
param
);
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
success
();
log
.
error
(
e
.
getMessage
(),
e
);
}
catch
(
Exception
e
)
{
return
CommonResponseUtil
.
failure
(
"另存巡检计划失败"
);
log
.
error
(
e
.
getMessage
(),
e
);
}
return
CommonResponseUtil
.
failure
(
"另存巡检计划失败"
);
}
}
}
/**
/**
* 根据id查询巡检计划
* 根据id查询巡检计划
*
*
* @param id
* @param id
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"查询巡检计划明细"
,
notes
=
"查询巡检计划明细"
)
@ApiOperation
(
value
=
"查询巡检计划明细"
,
notes
=
"查询巡检计划明细"
)
@RequestMapping
(
value
=
"/detail/{id}"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/detail/{id}"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
public
CommonResponse
queryPointById
(
@ApiParam
(
value
=
"计划id"
,
required
=
true
)
@PathVariable
(
name
=
"id"
)
Long
id
)
{
public
CommonResponse
queryPointById
(
@ApiParam
(
value
=
"计划id"
,
required
=
true
)
@PathVariable
(
name
=
"id"
)
Long
id
)
{
Plan
plan
=
planService
.
queryPlanById
(
id
);
Plan
plan
=
planService
.
queryPlanById
(
id
);
return
CommonResponseUtil
.
success
(
plan
);
return
CommonResponseUtil
.
success
(
plan
);
}
}
/**
/**
* 巡检计划查询
* 巡检计划查询
* @param
*
* @param param
* @param
* @return
* @param param
*/
* @return
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
*/
@ApiOperation
(
value
=
"巡检计划查询"
,
notes
=
"巡检计划查询"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/queryPlanByOrgCode"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
value
=
"巡检计划查询"
,
notes
=
"巡检计划查询"
)
public
CommonResponse
qryCheckInfo
(
@ApiParam
(
value
=
"查询条件"
,
required
=
false
)
@RequestBody
(
required
=
false
)
List
<
CommonRequest
>
queryRequests
)
{
@RequestMapping
(
value
=
"/queryPlanByOrgCode"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
ReginParams
reginParams
=
getSelectedOrgInfo
();
public
CommonResponse
qryCheckInfo
(
@ApiParam
(
value
=
"查询条件"
,
required
=
false
)
@RequestBody
(
required
=
false
)
List
<
CommonRequest
>
queryRequests
)
{
String
roleTypeName
=
getRoleTypeName
(
reginParams
);
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
loginOrgCode
=
getOrgCode
(
reginParams
);
String
roleTypeName
=
getRoleTypeName
(
reginParams
);
HashMap
<
String
,
Object
>
paramMap
=
buildMybatisCriterias
(
loginOrgCode
,
roleTypeName
);
String
loginOrgCode
=
getOrgCode
(
reginParams
);
PlanInfoPageParam
param
=
PlanPageParamUtil
.
fillPlanInfoParam
(
queryRequests
,
null
,
paramMap
);
HashMap
<
String
,
Object
>
paramMap
=
buildMybatisCriterias
(
loginOrgCode
,
roleTypeName
);
List
<
HashMap
<
String
,
Object
>>
list
=
planService
.
getPlanInfoNoPage
(
param
);
PlanInfoPageParam
param
=
PlanPageParamUtil
.
fillPlanInfoParam
(
queryRequests
,
null
,
paramMap
);
return
CommonResponseUtil
.
success
(
list
);
List
<
HashMap
<
String
,
Object
>>
list
=
planService
.
getPlanInfoNoPage
(
param
);
}
return
CommonResponseUtil
.
success
(
list
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"查询计划列表(<font color='blue'>手机app</font>)"
,
notes
=
"查询计划列表(<font color='blue'>手机app</font>)"
)
@ApiOperation
(
value
=
"查询计划列表(<font color='blue'>手机app</font>)"
,
notes
=
"查询计划列表(<font color='blue'>手机app</font>)"
)
@RequestMapping
(
value
=
"/queryPlanList"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/queryPlanList"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
GET
)
public
CommonResponse
queryPlanList
()
{
public
CommonResponse
queryPlanList
()
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
loginOrgCode
=
getOrgCode
(
reginParams
);
String
loginOrgCode
=
getOrgCode
(
reginParams
);
List
<
HashMap
<
String
,
Object
>>
list
=
planService
.
queryPlanListByOrgCode
(
loginOrgCode
);
List
<
HashMap
<
String
,
Object
>>
list
=
planService
.
queryPlanListByOrgCode
(
loginOrgCode
);
return
CommonResponseUtil
.
success
(
list
);
return
CommonResponseUtil
.
success
(
list
);
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
5cfc86f6
...
@@ -253,11 +253,12 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -253,11 +253,12 @@ public class CheckServiceImpl implements ICheckService {
check
.
setCheckTime
(
DateUtil
.
getLongDate
(
requestParam
.
getCheckTime
()));
check
.
setCheckTime
(
DateUtil
.
getLongDate
(
requestParam
.
getCheckTime
()));
check
.
setUploadTime
(
new
Date
());
check
.
setUploadTime
(
new
Date
());
check
.
setOrgCode
(
requestParam
.
getOrgCode
());
check
.
setOrgCode
(
requestParam
.
getOrgCode
());
check
.
setUserId
(
user
.
getUserId
()
.
toString
()
);
check
.
setUserId
(
user
.
getUserId
());
check
.
setUserName
(
user
.
getRealName
());
check
.
setUserName
(
user
.
getRealName
());
// Department dep = user.getDepartment();
if
(
departmentModel
!=
null
&&
departmentModel
.
getSequenceNbr
()
!=
null
)
{
if
(
departmentModel
!=
null
)
{
check
.
setDepId
(
departmentModel
.
getSequenceNbr
().
toString
());
check
.
setDepId
(
departmentModel
.
getSequenceNbr
().
toString
());
}
if
(
departmentModel
!=
null
)
{
check
.
setDepName
(
departmentModel
.
getDepartmentName
());
check
.
setDepName
(
departmentModel
.
getDepartmentName
());
}
}
check
.
setCheckMode
(
requestParam
.
getCheckMode
());
check
.
setCheckMode
(
requestParam
.
getCheckMode
());
...
...
pom.xml
View file @
5cfc86f6
...
@@ -256,29 +256,15 @@
...
@@ -256,29 +256,15 @@
</dependencyManagement>
</dependencyManagement>
<repositories>
<repositories>
<repository>
<repository>
<id>
spring-snapshots
</id>
<id>
Releases
</id>
<url>
http://172.16.1.6:8081/nexus/content/repositories/spring.io/
</url>
<name>
Releases
</name>
<url>
http://172.16.1.6:8081/nexus/content/repositories/releases/
</url>
</repository>
</repository>
<repository>
<repository>
<id>
nexu
s
</id>
<id>
Snapshot
s
</id>
<name>
Team Nexus Repository
</name>
<name>
Snapshots
</name>
<url>
http://172.16.1.6:8081/nexus/content/
groups/public
</url>
<url>
http://172.16.1.6:8081/nexus/content/
repositories/snapshots/
</url>
</repository>
</repository>
<repository>
<id>
maven-public
</id>
<name>
maven-public
</name>
<url>
http://172.16.1.6:8081/nexus/content/repositories/maven-public/
</url>
</repository>
<!-- <repository> -->
<!-- <id>maven-public1</id> -->
<!-- <name>maven-public</name> -->
<!-- <url>http://repo.typroject.org:8081/repository/maven-public/</url> -->
<!-- </repository> -->
<!-- <repository> -->
<!-- <id>maven-snapshot</id> -->
<!-- <name>maven-snapshot</name> -->
<!-- <url>http://repo.typroject.org:8081/repository/maven-snapshots/</url> -->
<!-- </repository> -->
</repositories>
</repositories>
<modules>
<modules>
...
...
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