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
57b497a1
Commit
57b497a1
authored
Dec 26, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改96333坐席逻辑
parent
4dd1d055
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
103 additions
and
101 deletions
+103
-101
TzsCitInfoDto.java
...m/yeejoin/amos/boot/module/tzs/api/dto/TzsCitInfoDto.java
+9
-2
TzsCitInfo.java
...m/yeejoin/amos/boot/module/tzs/api/entity/TzsCitInfo.java
+6
-3
IAlertCalledService.java
...amos/boot/module/tzs/api/service/IAlertCalledService.java
+2
-13
AlertCalledController.java
...boot/module/tzs/biz/controller/AlertCalledController.java
+2
-14
TzsAuthController.java
...mos/boot/module/tzs/biz/controller/TzsAuthController.java
+14
-2
TzsCitInfoController.java
.../boot/module/tzs/biz/controller/TzsCitInfoController.java
+2
-2
AlertCalledServiceImpl.java
...t/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
+58
-55
TzsCitInfoServiceImpl.java
...ot/module/tzs/biz/service/impl/TzsCitInfoServiceImpl.java
+9
-9
WeldServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/TzsCitInfoDto.java
View file @
57b497a1
...
...
@@ -19,12 +19,12 @@ public class TzsCitInfoDto extends BaseDto {
/**
* 用户名
*/
private
String
u
serName
;
private
String
ctiU
serName
;
@ApiModelProperty
(
value
=
"平台的userId"
)
/**
* 平台的userId
*/
private
String
u
serId
;
private
String
ctiU
serId
;
@ApiModelProperty
(
value
=
"登录坐席参数gid"
)
/**
* 登录坐席参数gid
...
...
@@ -51,6 +51,13 @@ public class TzsCitInfoDto extends BaseDto {
*/
private
String
userRole
;
/**
* 服务评分
*/
private
String
serviceSocre
;
private
Boolean
isOnline
;
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/entity/TzsCitInfo.java
View file @
57b497a1
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -8,6 +10,8 @@ import lombok.EqualsAndHashCode;
import
lombok.experimental.Accessors
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
java.io.Serializable
;
/**
*
*
...
...
@@ -15,7 +19,6 @@ import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;
* @date 2022-12-19
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tzs_cit_info"
)
@ApiModel
(
value
=
"TzsCitInfo对象"
,
description
=
""
)
...
...
@@ -24,10 +27,10 @@ public class TzsCitInfo extends BaseEntity {
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"用户名"
)
private
String
u
serName
;
private
String
ctiU
serName
;
@ApiModelProperty
(
value
=
"平台的userId"
)
private
String
u
serId
;
private
String
ctiU
serId
;
@ApiModelProperty
(
value
=
"登录坐席参数gid"
)
private
String
gid
;
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IAlertCalledService.java
View file @
57b497a1
...
...
@@ -3,18 +3,7 @@ package com.yeejoin.amos.boot.module.tzs.api.service;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledFormDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledQueryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledRecordDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertHandlerDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertPaperInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DutyPersonDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DutySeatDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.WechatMyBusinessListDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.WechatMyBussinessDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.WechatMyTaskDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.WechatMyTaskListDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.*
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.DispatchPaperEnums
;
import
org.apache.ibatis.annotations.Param
;
import
org.typroject.tyboot.core.rdbms.annotation.Condition
;
...
...
@@ -99,7 +88,7 @@ public interface IAlertCalledService {
* 获取坐席信息
* @return
*/
List
<
DutySeat
Dto
>
getSeatInfos
();
List
<
TzsCitInfo
Dto
>
getSeatInfos
();
List
<
AlertPaperInfoDto
>
getEquipmentHistory
(
List
<
String
>
useRegionCode
,
String
equipmentClassCode
,
Integer
current
,
Integer
pageNum
,
String
equipmentCode
);
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/AlertCalledController.java
View file @
57b497a1
...
...
@@ -15,19 +15,7 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisKey;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.MaintenanceCompanyServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlarmStatisticsDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCallInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledQueryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledRecordDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertPaperInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DutySeatDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ESAlertCalledDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ESAlertCalledRequestDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ExportDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.SpecialEquipmentDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.*
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchPaper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.Elevator
;
...
...
@@ -708,7 +696,7 @@ public class AlertCalledController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getSeatInfos"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取坐席情况"
,
notes
=
"获取坐席情况"
)
public
ResponseModel
<
List
<
DutySeat
Dto
>>
getSeatInfos
()
{
public
ResponseModel
<
List
<
TzsCitInfo
Dto
>>
getSeatInfos
()
{
return
ResponseHelper
.
buildResponse
(
iAlertCalledService
.
getSeatInfos
());
}
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/TzsAuthController.java
View file @
57b497a1
...
...
@@ -5,11 +5,15 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsCitInfo
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.TzsCitInfoServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
@@ -38,6 +42,9 @@ public class TzsAuthController extends BaseController {
@Autowired
TzsAuthService
tzsAuthService
;
@Autowired
TzsCitInfoServiceImpl
citInfoService
;
/**
* 判断用户是否是管理员
* @return
...
...
@@ -48,8 +55,13 @@ public class TzsAuthController extends BaseController {
public
ResponseModel
<
Boolean
>
isUserAdmin
()
{
Boolean
flag
=
false
;
AgencyUserModel
me
=
Privilege
.
agencyUserClient
.
getme
().
getResult
();
if
(
me
.
getUserName
().
equals
(
"tzs_wjl"
))
{
flag
=
true
;
LambdaQueryWrapper
<
TzsCitInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
TzsCitInfo:
:
getCtiUserId
,
me
.
getUserId
());
TzsCitInfo
ctiInfo
=
citInfoService
.
getOne
(
wrapper
);
if
(!
ValidationUtil
.
isEmpty
(
ctiInfo
)){
if
(
"班长"
.
equals
(
ctiInfo
.
getUserRole
())){
flag
=
true
;
}
}
return
ResponseHelper
.
buildResponse
(
flag
);
}
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/TzsCitInfoController.java
View file @
57b497a1
...
...
@@ -108,7 +108,7 @@ public class TzsCitInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
public
IPage
<
TzsCitInfo
>
listPage
(
String
pageNum
,
String
pageSize
,
@RequestBody
TzsCitInfo
tzsCitInfo
){
public
ResponseModel
<
IPage
<
TzsCitInfo
>
>
listPage
(
String
pageNum
,
String
pageSize
,
@RequestBody
TzsCitInfo
tzsCitInfo
){
tzsCitInfo
.
setRegionCode
(
this
.
getSelectedOrgInfo
().
getCompany
().
getRegionCode
());
Page
<
TzsCitInfo
>
pageBean
;
QueryWrapper
<
TzsCitInfo
>
tzsCitInfoQueryWrapper
=
new
QueryWrapper
<>();
...
...
@@ -144,7 +144,7 @@ public class TzsCitInfoController extends BaseController {
pageBean
=
new
Page
<>(
Integer
.
parseInt
(
pageNum
),
Integer
.
parseInt
(
pageSize
));
}
page
=
iTzsCitInfoService
.
page
(
pageBean
,
tzsCitInfoQueryWrapper
);
return
page
;
return
ResponseHelper
.
buildResponse
(
page
)
;
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
View file @
57b497a1
...
...
@@ -7,29 +7,14 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.google.common.collect.Maps
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.common.api.service.ISourceFileService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledFormDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledQueryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledRecordDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertHandlerDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertHandlerInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertPaperInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DutySeatDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.WechatMyBusinessListDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.WechatMyBussinessDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchPaper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchTask
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.Elevator
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.VoiceRecordFile
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.*
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.*
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.AlertStageEnums
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.DispatchPaperEnums
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.TzsCommonParam
;
...
...
@@ -42,6 +27,7 @@ import com.yeejoin.amos.feign.privilege.Privilege;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
...
...
@@ -112,6 +98,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
@Autowired
TzsAuthService
tzsAuthService
;
@Autowired
TzsCitInfoServiceImpl
citInfoService
;
@Value
(
"${duty.seats.role.ids}"
)
private
String
dutySeatsRoleIds
;
...
...
@@ -389,45 +378,59 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
}
@Override
public
List
<
DutySeat
Dto
>
getSeatInfos
()
{
public
List
<
TzsCitInfo
Dto
>
getSeatInfos
()
{
// 获取人员信息
// FeignClientResult<List<AgencyUserModel>> userListResult = Privilege.agencyUserClient.list(null,null);
FeignClientResult
<
List
<
AgencyUserModel
>>
userListResult
=
Privilege
.
agencyUserClient
.
queryByRoleId
(
dutySeatsRoleIds
,
null
);
List
<
AgencyUserModel
>
userList
=
userListResult
.
getResult
();
List
<
DutySeatDto
>
dutyList
=
new
ArrayList
<>();
userList
.
stream
().
forEach
(
u
->
{
// 排除非系统中人员
if
(!
u
.
getRealName
().
equals
(
u
.
getMobile
()))
{
// 公众号创建
DutySeatDto
temp
=
new
DutySeatDto
();
temp
.
setUserId
(
u
.
getUserId
());
temp
.
setUserName
(
u
.
getRealName
());
temp
.
setUserRole
(
"管理员"
);
temp
.
setSeatCode
(
"1001"
);
temp
.
setUserStatus
(
"1"
);
// 获取当日警情处理件数
Calendar
c
=
Calendar
.
getInstance
();
c
.
set
(
Calendar
.
SECOND
,
0
);
c
.
set
(
Calendar
.
HOUR_OF_DAY
,
0
);
c
.
set
(
Calendar
.
MINUTE
,
0
);
String
beginDate
=
DateUtils
.
date2LongStr
(
c
.
getTime
());
c
.
set
(
Calendar
.
SECOND
,
59
);
c
.
set
(
Calendar
.
HOUR_OF_DAY
,
23
);
c
.
set
(
Calendar
.
MINUTE
,
59
);
String
endDate
=
DateUtils
.
date2LongStr
(
c
.
getTime
());
List
<
AlertCalled
>
dealAlert
=
this
.
list
(
new
LambdaQueryWrapper
<
AlertCalled
>().
eq
(
AlertCalled:
:
getIsDelete
,
false
).
eq
(
AlertCalled:
:
getRecUserId
,
u
.
getUserId
())
.
gt
(
AlertCalled:
:
getCallTime
,
beginDate
).
lt
(
AlertCalled:
:
getCallTime
,
endDate
).
eq
(
AlertCalled:
:
getAlertStatus
,
true
));
int
count
=
0
;
if
(
dealAlert
!=
null
&&
dealAlert
.
size
()
>
0
)
{
count
=
dealAlert
.
size
();
}
temp
.
setTodayDeal
(
count
);
temp
.
setServiceSocre
(
"95"
);
dutyList
.
add
(
temp
);
}
});
return
dutyList
;
// FeignClientResult<List<AgencyUserModel>> userListResult = Privilege.agencyUserClient.queryByRoleId(dutySeatsRoleIds,null);
ReginParams
reginParams
=
citInfoService
.
getReginParams
();
String
RegionCode
=
reginParams
.
getCompany
().
getRegionCode
();
LambdaQueryWrapper
<
TzsCitInfo
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
TzsCitInfo:
:
getRegionCode
,
RegionCode
);
List
<
TzsCitInfo
>
citInfoList
=
citInfoService
.
list
(
wrapper
);
List
<
TzsCitInfoDto
>
citInfoDtoList
=
new
ArrayList
<>();
for
(
TzsCitInfo
citInfo
:
citInfoList
){
TzsCitInfoDto
citInfoDto
=
new
TzsCitInfoDto
();
BeanUtils
.
copyProperties
(
citInfo
,
citInfoDto
);
//服务评分写死100分
citInfoDto
.
setServiceSocre
(
"100"
);
//在线
citInfoDto
.
setIsOnline
(
true
);
citInfoDtoList
.
add
(
citInfoDto
);
}
// List<AgencyUserModel> userList = userListResult.getResult();
// List<DutySeatDto> dutyList = new ArrayList<>();
// userList.stream().forEach(u -> {
// // 排除非系统中人员
// if(!u.getRealName().equals(u.getMobile())) { // 公众号创建
// DutySeatDto temp = new DutySeatDto();
// temp.setUserId(u.getUserId());
// temp.setUserName(u.getRealName());
// temp.setUserRole("管理员");
// temp.setSeatCode("1001");
// temp.setUserStatus("1");
// // 获取当日警情处理件数
// Calendar c = Calendar.getInstance();
// c.set(Calendar.SECOND,0);
// c.set(Calendar.HOUR_OF_DAY,0);
// c.set(Calendar.MINUTE,0);
// String beginDate = DateUtils.date2LongStr(c.getTime());
// c.set(Calendar.SECOND,59);
// c.set(Calendar.HOUR_OF_DAY,23);
// c.set(Calendar.MINUTE,59);
// String endDate = DateUtils.date2LongStr(c.getTime());
// List<AlertCalled> dealAlert = this.list(new LambdaQueryWrapper<AlertCalled>().eq(AlertCalled::getIsDelete,false).eq(AlertCalled::getRecUserId,u.getUserId())
// .gt(AlertCalled::getCallTime,beginDate).lt(AlertCalled::getCallTime,endDate).eq(AlertCalled::getAlertStatus, true));
// int count = 0;
// if(dealAlert != null && dealAlert.size() > 0) {
// count = dealAlert.size();
// }
// temp.setTodayDeal(count);
// temp.setServiceSocre("95");
// dutyList.add(temp);
// }
//
// });
return
citInfoDtoList
;
}
private
void
dataInit
(
AlertHandlerInfoDto
alertHandlerInfoDto
,
String
process
,
String
answerThePolice
,
String
report
,
String
notice
,
String
arrive
,
String
complete
,
String
returnVisit
)
{
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/TzsCitInfoServiceImpl.java
View file @
57b497a1
...
...
@@ -2,11 +2,9 @@ package com.yeejoin.amos.boot.module.tzs.biz.service.impl;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DutySeatDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.TzsCitInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.TzsCitInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.TzsCitInfoMapper
;
...
...
@@ -71,10 +69,12 @@ public class TzsCitInfoServiceImpl extends BaseService<TzsCitInfoDto, TzsCitInfo
public
String
saveOrUpdateInfo
(
TzsCitInfo
tzsCitInfo
){
//校验
String
massage
=
""
;
if
(!
ValidationUtil
.
isEmpty
(
tzsCitInfo
.
getUserId
()))
{
if
(!
ValidationUtil
.
isEmpty
(
this
.
list
(
new
LambdaQueryWrapper
<
TzsCitInfo
>().
eq
(
TzsCitInfo:
:
getUserId
,
tzsCitInfo
.
getUserId
()))))
{
massage
=
"该用户已有坐席账号,不可重复添加!"
;
return
massage
;
if
(
ValidationUtil
.
isEmpty
(
tzsCitInfo
.
getSequenceNbr
()))
{
if
(!
ValidationUtil
.
isEmpty
(
tzsCitInfo
.
getCtiUserId
()))
{
if
(!
ValidationUtil
.
isEmpty
(
this
.
list
(
new
LambdaQueryWrapper
<
TzsCitInfo
>().
eq
(
TzsCitInfo:
:
getCtiUserId
,
tzsCitInfo
.
getCtiUserId
()))))
{
massage
=
"该用户已有坐席账号,不可重复添加!"
;
return
massage
;
}
}
}
if
(!
ValidationUtil
.
isEmpty
(
this
.
list
(
new
LambdaQueryWrapper
<
TzsCitInfo
>().
eq
(
TzsCitInfo:
:
getCode
,
tzsCitInfo
.
getCode
())))){
...
...
@@ -87,9 +87,9 @@ public class TzsCitInfoServiceImpl extends BaseService<TzsCitInfoDto, TzsCitInfo
}
//保存数据
if
(!
ValidationUtil
.
isEmpty
(
tzsCitInfo
.
getUserId
()))
{
AgencyUserModel
agencyUser
=
Privilege
.
agencyUserClient
.
queryByUserId
(
String
.
valueOf
(
tzsCitInfo
.
getUserId
())).
getResult
();
tzsCitInfo
.
setUserName
(
agencyUser
.
getRealName
());
if
(!
ValidationUtil
.
isEmpty
(
tzsCitInfo
.
get
Cti
UserId
()))
{
AgencyUserModel
agencyUser
=
Privilege
.
agencyUserClient
.
queryByUserId
(
String
.
valueOf
(
tzsCitInfo
.
get
Cti
UserId
())).
getResult
();
tzsCitInfo
.
set
Cti
UserName
(
agencyUser
.
getRealName
());
tzsCitInfo
.
setRegionCode
(
agencyUser
.
getCompanys
().
iterator
().
next
().
getCompanyCode
());
}
this
.
saveOrUpdate
(
tzsCitInfo
);
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
View file @
57b497a1
...
...
@@ -377,7 +377,7 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
*/
public
List
<
ProjectDto
>
getWeldListByLocation
(
Object
obj
){
JSONObject
jsonObject
=
JSON
.
parseObject
(
String
.
valueOf
(
obj
));
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
obj
));
JSONObject
left
=
jsonObject
.
getJSONObject
(
"northeast"
);
JSONObject
right
=
jsonObject
.
getJSONObject
(
"southwest"
);
Double
leftLongitude
=
left
.
getDouble
(
"longitude"
);
...
...
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