Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
聂康
local-rnr-mg
Commits
b2eded42
Commit
b2eded42
authored
Jun 17, 2025
by
kang.nie@inzymeits.com
Browse files
初始化代码
parent
12156d65
Pipeline
#3109
failed with stages
in 0 seconds
Changes
439
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/constants/RnrOptLogBizTypeEnum.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.constants
;
/**
* Description: 实名操作日志业务类型枚举
* <br />
* CreateDate 2021-10-28 12:49:12
*
* @author yuyi
**/
public
enum
RnrOptLogBizTypeEnum
{
CARD
(
1
,
"卡信息日志"
),
INFO
(
2
,
"实名信息日志"
);
private
int
code
;
private
String
name
;
RnrOptLogBizTypeEnum
(
int
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
static
RnrOptLogBizTypeEnum
getEnumByCode
(
int
code
)
{
for
(
RnrOptLogBizTypeEnum
sys
:
RnrOptLogBizTypeEnum
.
values
())
{
if
(
sys
.
getCode
()
==
code
)
{
return
sys
;
}
}
return
null
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/constants/RnrOptLogOptTypeEnum.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.constants
;
/**
* Description: 实名操作日志业务类型枚举
* <br />
* CreateDate 2021-10-28 12:49:12
*
* @author yuyi
**/
public
enum
RnrOptLogOptTypeEnum
{
OPERATE_CREATE
(
1
,
"创建操作"
),
OPERATE_RNR
(
2
,
"实名操作"
),
OPERATE_UNBIND
(
3
,
"解绑操作"
),
OPERATE_UPDATE_VEHICLE
(
4
,
"车辆信息变更"
),
OPERATE_UPDATE_CUSTOMER
(
5
,
"车主信息变更"
);
private
Integer
code
;
private
String
comment
;
private
RnrOptLogOptTypeEnum
(
Integer
code
,
String
comment
)
{
this
.
code
=
code
;
this
.
comment
=
comment
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getComment
()
{
return
comment
;
}
public
static
RnrOptLogOptTypeEnum
getModifyType
(
Integer
code
)
{
for
(
RnrOptLogOptTypeEnum
type
:
RnrOptLogOptTypeEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
return
type
;
}
}
return
null
;
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/constants/RnrOptLogSubTypeEnum.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.constants
;
public
enum
RnrOptLogSubTypeEnum
{
CREATE_OPERATE
(
1
,
101
,
"创建操作"
),
AUTO_ACCESS_OPERATE
(
2
,
201
,
"自动审核通过操作"
),
AUTO_FAIL_OPERATE
(
2
,
202
,
"自动审核失败操作"
),
RNR_SHIFT_TO_ARTIFICIAL
(
2
,
203
,
"已转入人工"
),
MANUAL_ACCESS_OPERATE
(
2
,
204
,
"人工审核通过操作"
),
MANUAL_FAIL_OPERATE
(
2
,
205
,
"人工审核失败操作"
),
REBIND_OPERATE
(
2
,
206
,
"重绑操作"
),
BIND_OPERATE
(
2
,
207
,
"绑定操作"
),
UNBIND_SUCC_OPERATE
(
3
,
301
,
"解绑操作"
),
UNBIND_SHIFT_TO_ARTIFICIAL
(
3
,
302
,
"解绑转人工"
),
UNBIND_FAIL_OPERATE
(
3
,
303
,
"解绑失败操作"
),
UPDATE_ICCID
(
4
,
401
,
"修改ICCID,更换车机"
),
UPDATE_VIN
(
4
,
402
,
"修改车架号"
),
UPDATE_PHONE
(
5
,
501
,
"修改手机号"
),
UPDATE_PHONE_H5
(
5
,
502
,
"H5修改手机号"
);
private
Integer
pCode
;
private
Integer
code
;
private
String
comment
;
private
RnrOptLogSubTypeEnum
(
Integer
pCode
,
Integer
code
,
String
comment
)
{
this
.
pCode
=
pCode
;
this
.
code
=
code
;
this
.
comment
=
comment
;
}
public
Integer
getpCode
()
{
return
pCode
;
}
public
Integer
getCode
()
{
return
code
;
}
public
String
getComment
()
{
return
comment
;
}
public
static
RnrOptLogSubTypeEnum
getModifyType
(
Integer
code
)
{
for
(
RnrOptLogSubTypeEnum
type
:
RnrOptLogSubTypeEnum
.
values
())
{
if
(
type
.
getCode
().
equals
(
code
))
{
return
type
;
}
}
return
null
;
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/ChangeOrUnbindIccidsController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.user.rnr.mg.dto.RnrOrderDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMqSendService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.cusc.nirvana.common.result.Response
;
@Slf4j
@RestController
@RequestMapping
(
"/changeOrUnbin"
)
public
class
ChangeOrUnbindIccidsController
{
@Autowired
private
IMqSendService
mqSendService
;
@PostMapping
(
"/sendMQ"
)
public
Response
sendMQ
(
@RequestBody
RnrOrderDTO
bean
){
mqSendService
.
sendBindUnbindExchangeMq
(
bean
.
getUuid
());
return
Response
.
createSuccess
(
"MQ发送成功"
);
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/CryptController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.util.crypt.CryptKeyUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.HashMap
;
import
java.util.Map
;
@Slf4j
@RestController
@RequestMapping
(
"/crypt"
)
public
class
CryptController
{
@PostMapping
(
"/encrypt"
)
public
Response
encrypt
()
{
Map
<
String
,
String
>
ret
=
new
HashMap
<>();
//if (CuscStringUtils.isNotEmpty(bean.getPhone())) {
// ret.put("phone", CryptKeyUtil.encryptToByte(bean.getPhone()));
//}
//
//if (CuscStringUtils.isNotEmpty(bean.getFullName())) {
// ret.put("fullName", CryptKeyUtil.encryptToByte(bean.getFullName()));
//}
//
//if (CuscStringUtils.isNotEmpty(bean.getCertId())) {
// ret.put("certId", CryptKeyUtil.encryptToByte(bean.getCertId()));
//}
//
//if (CuscStringUtils.isNotEmpty(bean.getEmail())) {
// ret.put("email", CryptKeyUtil.encryptToByte(bean.getEmail()));
//}
//
//if (CuscStringUtils.isNotEmpty(bean.getAddress())) {
// ret.put("address", CryptKeyUtil.encryptToByte(bean.getAddress()));
//}
return
Response
.
createSuccess
(
ret
);
}
@PostMapping
(
"/decrypt"
)
public
Response
decrypt
()
{
Map
<
String
,
String
>
ret
=
new
HashMap
<>();
//if (CuscStringUtils.isNotEmpty(bean.getPhone())) {
// ret.put("phone", CryptKeyUtil.decryptByByte(bean.getPhone()));
//}
//
//if (CuscStringUtils.isNotEmpty(bean.getFullName())) {
// ret.put("fullName", CryptKeyUtil.decryptByByte(bean.getFullName()));
//}
//
//if (CuscStringUtils.isNotEmpty(bean.getCertId())) {
// ret.put("certId", CryptKeyUtil.decryptByByte(bean.getCertId()));
//}
//
//if (CuscStringUtils.isNotEmpty(bean.getEmail())) {
// ret.put("email", CryptKeyUtil.decryptByByte(bean.getEmail()));
//}
//
//if (CuscStringUtils.isNotEmpty(bean.getAddress())) {
// ret.put("address", CryptKeyUtil.decryptByByte(bean.getAddress()));
//}
return
Response
.
createSuccess
(
ret
);
}
@GetMapping
(
"/encryptValue/{key}"
)
public
String
encryptValue
(
@PathVariable
(
"key"
)
String
key
)
{
return
CryptKeyUtil
.
encryptToBase64
(
key
);
}
@GetMapping
(
"/decryptValue/{key}"
)
public
String
decryptValue
(
@PathVariable
(
"key"
)
String
key
)
{
return
CryptKeyUtil
.
decryptByBase64
(
key
);
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/LocalVerifyController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
cn.hutool.crypto.SmUtil
;
import
cn.hutool.crypto.symmetric.SymmetricCrypto
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.*
;
import
com.cusc.nirvana.user.rnr.mg.service.IEnterpriseVerifyService
;
import
com.cusc.nirvana.user.rnr.mg.service.impl.LocalChangeEnterpriseRnrPersonService
;
import
com.cusc.nirvana.user.rnr.mg.service.impl.LocalVerifyService
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"/localverify"
)
@Slf4j
public
class
LocalVerifyController
{
@Autowired
private
LocalVerifyService
localVerifyService
;
@Autowired
private
LocalChangeEnterpriseRnrPersonService
localChangeEnterpriseRnrPersonService
;
@Autowired
private
IEnterpriseVerifyService
enterpriseVerifyService
;
/**
* 本地人工审核列表
*/
@ApiOperation
(
value
=
"本地人工审核列表"
,
notes
=
"本地人工审核列表"
)
@PostMapping
(
"/list"
)
public
Response
<
PageResult
<
LocalVerifyListDTO
>>
list
(
@RequestBody
LocalVerifyListRqDTO
rq
)
{
return
localVerifyService
.
orderList
(
rq
);
}
/**
* 企业负责人变更审核详情
*
* @param uuid rnr_order的业务主键
* @return
*/
@ApiOperation
(
value
=
"企业负责人变更审核详情"
)
@PostMapping
(
"/enterpriseRnrPersonDetail"
)
public
Response
<
CompanyCorporationChangeRespDTO
>
enterpriseRnrPersonDetail
(
String
uuid
)
{
return
localChangeEnterpriseRnrPersonService
.
enterpriseRnrPersonDetail
(
uuid
);
}
/**
* 自然人业务审核详情
*/
@ApiOperation
(
value
=
"自然人业务审核详情"
,
notes
=
"自然人业务审核详情"
)
@PostMapping
(
"/personDetail"
)
public
Response
personDetail
(
@RequestBody
LocalVerifyListRqDTO
rq
)
{
return
localVerifyService
.
personDetail
(
rq
);
}
/**
* 查询工单企业详情
*/
@ApiOperation
(
value
=
"查询工单企业详情"
,
notes
=
"查询工单企业详情"
)
@PostMapping
(
"/getEnterpriseDetail"
)
public
Response
<
EnterpriseVerifyDetailDTO
>
getEnterpriseDetail
(
@RequestBody
RnrOrderDTO
rq
)
{
return
enterpriseVerifyService
.
getEnterpriseDetail
(
rq
);
}
/**
* 审核提交
*/
@ApiOperation
(
value
=
"审核提交"
,
notes
=
"审核提交"
)
@PostMapping
(
"/submit"
)
public
Response
submit
(
@RequestBody
LocalVerifySubmitRq
rq
)
{
log
.
info
(
"审核提交入参{}"
,
JSONObject
.
toJSONString
(
rq
));
// return Response.createSuccess();
return
localVerifyService
.
submit
(
rq
);
}
/**
* 审核提交
*/
@ApiOperation
(
value
=
"重试"
,
notes
=
"重试"
)
@PostMapping
(
"/retry"
)
public
Response
<
RnrRelationDTO
>
retry
(
@RequestBody
LocalVerifySubmitRq
rq
)
{
return
localVerifyService
.
retry
(
rq
);
}
/**
* 验证工单是否未审核
*/
@ApiOperation
(
value
=
"验证工单是否未审核"
,
notes
=
"验证工单是否未审核"
)
@PostMapping
(
"/validationRnrOrder"
)
public
Response
validationRnrOrder
(
@RequestBody
LocalVerifyListRqDTO
rq
)
{
return
localVerifyService
.
validationRnrOrder
(
rq
);
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgCheckProgressController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.alibaba.fastjson.JSON
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgCheckProgressDTO
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgCheckStatisticsDTO
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgCheckStatisticsQueryDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgCheckProgressService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author hxin
* @date 2022/5/18 19:08
*/
@RestController
@RequestMapping
(
"/mgCheckProgress"
)
public
class
MgCheckProgressController
{
@Autowired
private
IMgCheckProgressService
mgCheckProgressService
;
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgCheckProgressDTO
>>
queryByPage
(
@RequestBody
MgCheckProgressDTO
bean
)
{
PageResult
<
MgCheckProgressDTO
>
mgCheckProgressDTOPageResult
=
mgCheckProgressService
.
queryByPage
(
bean
);
return
Response
.
createSuccess
(
mgCheckProgressDTOPageResult
);
}
@PostMapping
(
"/queryCheckStatistics"
)
@ApiOperation
(
value
=
"查询看板统计"
,
notes
=
"查询看板统计"
)
public
Response
<
MgCheckStatisticsDTO
>
queryCheckStatistics
(
@RequestBody
MgCheckStatisticsQueryDTO
queryDTO
)
{
MgCheckStatisticsDTO
mgCheckStatisticsDTO
=
mgCheckProgressService
.
queryCheckStatistics
(
queryDTO
);
return
Response
.
createSuccess
(
mgCheckStatisticsDTO
);
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgRnrAuthenticationResultController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrAuthenticationResultDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrAuthenticationResultService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 实名认证结果(MgRnrAuthenticationResult)表控制层
*
* @author yuy336
* @since 2022-05-19 17:36:05
*/
@RestController
@RequestMapping
(
"/mgRnrAuthenticationResult"
)
public
class
MgRnrAuthenticationResultController
{
/**
* 服务对象
*/
@Autowired
private
IMgRnrAuthenticationResultService
mgRnrAuthenticationResultService
;
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgRnrAuthenticationResultDTO
>
getByUuid
(
@RequestBody
MgRnrAuthenticationResultDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrAuthenticationResultService
.
getByUuid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgRnrAuthenticationResultDTO
>>
queryByList
(
@RequestBody
MgRnrAuthenticationResultDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrAuthenticationResultService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgRnrAuthenticationResultDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrAuthenticationResultService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgRnrAuthenticationResultDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrAuthenticationResultService
.
update
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgRnrCardInfoController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrCardInfoDTO
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrInfoDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrCardInfoService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 实名卡信息(MgRnrCardInfo)表控制层
*
* @author yuy336
* @since 2022-03-04 11:06:45
*/
@RestController
@RequestMapping
(
"/mgRnrCardInfo"
)
public
class
MgRnrCardInfoController
{
/**
* 服务对象
*/
@Autowired
private
IMgRnrCardInfoService
mgRnrCardInfoService
;
/**
* 分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgRnrCardInfoDTO
>>
queryByPage
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
queryByPage
(
bean
));
}
/**
* 通过用户id查询card信息分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryPageByUserId"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgRnrCardInfoDTO
>>
queryPageByUserId
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
queryPageByUserId
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgRnrCardInfoDTO
>
getByUuid
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
getByUuid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgRnrCardInfoDTO
>>
queryByList
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
queryByList
(
bean
));
}
/**
* 通过vin查询iccid list
*/
@PostMapping
(
"/queryBindListByVin"
)
public
Response
<
List
<
MgRnrCardInfoDTO
>>
queryBindListByVin
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
queryBindListByVin
(
bean
.
getIotId
()));
}
/**
* 给定一批vin和iccid;判断一批vin以及vin下的iccids是否存在已经实名过的iccid
*/
@PostMapping
(
"/getBindsByVinsAndIccids"
)
public
Response
<
List
<
MgRnrCardInfoDTO
>>
queryBindListByVinsAndIccids
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
queryBindListByVinsAndIccids
(
bean
.
getVinList
(),
bean
.
getIccidList
()));
}
/**
* 通过vin和实名业务id查询iccid list
*/
@PostMapping
(
"/queryBindListByVinAndBizType"
)
public
Response
<
List
<
MgRnrCardInfoDTO
>>
queryBindListByVinAndBizType
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
queryBindListByVinAndBizType
(
bean
.
getIotId
(),
bean
.
getRnrBizzType
()));
}
/**
* 通过vin查询iccid list
*/
@PostMapping
(
"/queryListByVin"
)
public
Response
<
List
<
MgRnrCardInfoDTO
>>
queryListByVin
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
queryListByVin
(
bean
.
getIotId
()));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
deleteById
(
bean
));
}
/**
* 校验卡实名状态
*
* @return
*/
@PostMapping
(
"/checkStatus"
)
public
Response
<
Boolean
>
checkStatus
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
checkIccid
(
bean
));
}
@PostMapping
(
"/getOneByIccid"
)
public
Response
getOneByIccid
(
@RequestBody
MgRnrCardInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
getOneByIccid
(
bean
));
}
@PostMapping
(
"/updateBeans"
)
public
Response
updateCardStatus
(
@RequestBody
List
<
MgRnrCardInfoDTO
>
beans
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
updateBatchCardStatus
(
beans
));
}
@PostMapping
(
"/updateCardStatusByRnrId"
)
public
Response
updateCardStatusByRnrId
(
@RequestBody
MgRnrCardInfoDTO
dto
)
{
mgRnrCardInfoService
.
updateCardStatusByRnrId
(
dto
);
return
Response
.
createSuccess
();
}
@PostMapping
(
"/insertBeans"
)
public
Response
insertBeans
(
@RequestBody
List
<
MgRnrCardInfoDTO
>
beans
)
{
return
Response
.
createSuccess
(
mgRnrCardInfoService
.
insertBatchCards
(
beans
));
}
@PostMapping
(
"/sendCardNotice"
)
public
Response
sendCardNotice
(
@RequestBody
MgRnrCardInfoDTO
dto
)
{
mgRnrCardInfoService
.
sendCardNotice
(
dto
);
return
Response
.
createSuccess
();
}
@PostMapping
(
"/getNumWithUnload"
)
public
Response
getNumWithUnload
(
@RequestBody
MgRnrInfoDTO
dto
)
{
int
num
=
mgRnrCardInfoService
.
getNumWithUnload
(
dto
);
return
Response
.
createSuccess
(
num
);
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgRnrCommonConfigController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrCommonConfigDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrCommonConfigService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 实名业务公共配置(MgRnrCommonConfig)表控制层
*
* @author yuy336
* @since 2022-03-03 10:56:46
*/
@RestController
@RequestMapping
(
"/mgRnrCommonConfig"
)
public
class
MgRnrCommonConfigController
{
/**
* 服务对象
*/
@Autowired
private
IMgRnrCommonConfigService
mgRnrCommonConfigService
;
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgRnrCommonConfigDTO
>
getByUuid
(
@RequestBody
MgRnrCommonConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCommonConfigService
.
getByUuid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgRnrCommonConfigDTO
>>
queryByList
(
@RequestBody
MgRnrCommonConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCommonConfigService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgRnrCommonConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCommonConfigService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgRnrCommonConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCommonConfigService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
MgRnrCommonConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCommonConfigService
.
deleteById
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgRnrCompanyInfoController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrCompanyInfoDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrCompanyInfoService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 实名公司信息表(MgRnrCompanyInfo)表控制层
*
* @author yuy336
* @since 2022-02-10 18:30:29
*/
@RestController
@RequestMapping
(
"/mgRnrCompanyInfo"
)
public
class
MgRnrCompanyInfoController
{
/**
* 服务对象
*/
@Autowired
private
IMgRnrCompanyInfoService
mgRnrCompanyInfoService
;
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgRnrCompanyInfoDTO
>
getByUuid
(
@RequestBody
MgRnrCompanyInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCompanyInfoService
.
getByUuid
(
bean
));
}
/**
* 通过rnrid查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByRnrid"
)
public
Response
<
MgRnrCompanyInfoDTO
>
getByRnrid
(
@RequestBody
MgRnrCompanyInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCompanyInfoService
.
getByRnrid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgRnrCompanyInfoDTO
>>
queryByList
(
@RequestBody
MgRnrCompanyInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCompanyInfoService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgRnrCompanyInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCompanyInfoService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgRnrCompanyInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCompanyInfoService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
MgRnrCompanyInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCompanyInfoService
.
deleteById
(
bean
));
}
/**
* 根据公司名称查询rnrid
*/
@PostMapping
(
"/findRnrIdsByCompanyName"
)
public
Response
<
Boolean
>
findRnrIdsByCompanyName
(
@RequestBody
MgRnrCompanyInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrCompanyInfoService
.
findRnrIdsByCompanyName
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgRnrFileController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrFileDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrFileService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 实名图片信息表(MgRnrImage0)表控制层
*
* @author yuy336
* @since 2022-01-26 13:49:12
*/
@RestController
@RequestMapping
(
"/rnr/file"
)
public
class
MgRnrFileController
{
/**
* 服务对象
*/
@Autowired
private
IMgRnrFileService
mgRnrImageService
;
/**
* 分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgRnrFileDTO
>>
queryByPage
(
@RequestBody
MgRnrFileDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrImageService
.
queryByPage
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgRnrFileDTO
>
getByUuid
(
@RequestBody
MgRnrFileDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrImageService
.
getByUuid
(
bean
));
}
/**
* 通过实名业务id查询图片信息
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByRnrid"
)
public
Response
<
List
<
MgRnrFileDTO
>>
getByRnrid
(
@RequestBody
MgRnrFileDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrImageService
.
getByRnrid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgRnrFileDTO
>>
queryByList
(
@RequestBody
MgRnrFileDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrImageService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgRnrFileDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrImageService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgRnrFileDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrImageService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
MgRnrFileDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrImageService
.
deleteById
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgRnrInfoController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.alibaba.fastjson.JSON
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrInfoDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrInfoService
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 实名信息表(MgRnrInfo)表控制层
*
* @author yuy336
* @since 2022-02-10 18:30:50
*/
@RestController
@Slf4j
@RequestMapping
(
"/mgRnrInfo"
)
public
class
MgRnrInfoController
{
/**
* 服务对象
*/
@Autowired
private
IMgRnrInfoService
mgRnrInfoService
;
/**
* 分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgRnrInfoDTO
>>
queryByPage
(
@RequestBody
MgRnrInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrInfoService
.
queryByPage
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgRnrInfoDTO
>
getByUuid
(
@RequestBody
MgRnrInfoDTO
bean
)
{
log
.
info
(
"获取实名实体信息入参:{}"
,
JSON
.
toJSONString
(
bean
));
MgRnrInfoDTO
byUuid
=
mgRnrInfoService
.
getByUuid
(
bean
);
log
.
info
(
"获取实名实体信息出参:{}"
,
JSON
.
toJSONString
(
byUuid
));
return
Response
.
createSuccess
(
mgRnrInfoService
.
getByUuid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgRnrInfoDTO
>>
queryByList
(
@RequestBody
MgRnrInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrInfoService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgRnrInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrInfoService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgRnrInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrInfoService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
MgRnrInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrInfoService
.
deleteById
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgRnrLiaisonInfoController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrLiaisonInfoDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrLiaisonInfoService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 实名联系人信息表(MgRnrLiaisonInfo)表控制层
*
* @author yuy336
* @since 2022-03-03 19:59:05
*/
@RestController
@RequestMapping
(
"/mgRnrLiaisonInfo"
)
public
class
MgRnrLiaisonInfoController
{
/**
* 服务对象
*/
@Autowired
private
IMgRnrLiaisonInfoService
mgRnrLiaisonInfoService
;
/**
* 分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgRnrLiaisonInfoDTO
>>
queryByPage
(
@RequestBody
MgRnrLiaisonInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrLiaisonInfoService
.
queryByPage
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgRnrLiaisonInfoDTO
>
getByUuid
(
@RequestBody
MgRnrLiaisonInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrLiaisonInfoService
.
getByUuid
(
bean
));
}
/**
* 通过rnrid查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByRnrid"
)
public
Response
<
MgRnrLiaisonInfoDTO
>
getByRnrid
(
@RequestBody
MgRnrLiaisonInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrLiaisonInfoService
.
getByRnrid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgRnrLiaisonInfoDTO
>>
queryByList
(
@RequestBody
MgRnrLiaisonInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrLiaisonInfoService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgRnrLiaisonInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrLiaisonInfoService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgRnrLiaisonInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrLiaisonInfoService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
MgRnrLiaisonInfoDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrLiaisonInfoService
.
deleteById
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgRnrOperationLogController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrOperationLogDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrOperationLogService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 实名操作日志,包含rnr_info_oplog(MgRnrOperationLog)表控制层
*
* @author yuy336
* @since 2022-03-04 15:07:39
*/
@RestController
@RequestMapping
(
"/mgRnrOperationLog"
)
public
class
MgRnrOperationLogController
{
/**
* 服务对象
*/
@Autowired
private
IMgRnrOperationLogService
mgRnrOperationLogService
;
/**
* 分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgRnrOperationLogDTO
>>
queryByPage
(
@RequestBody
MgRnrOperationLogDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrOperationLogService
.
queryByPage
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgRnrOperationLogDTO
>
getByUuid
(
@RequestBody
MgRnrOperationLogDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrOperationLogService
.
getByUuid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgRnrOperationLogDTO
>>
queryByList
(
@RequestBody
MgRnrOperationLogDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrOperationLogService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgRnrOperationLogDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrOperationLogService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgRnrOperationLogDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrOperationLogService
.
update
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgRnrTagController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgRnrTagDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrTagService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 实名标签,可用于对数据权限查询(MgRnrTag15)表控制层
*
* @author yuy336
* @since 2022-01-26 13:50:09
*/
@RestController
@RequestMapping
(
"/mgRnrTag"
)
public
class
MgRnrTagController
{
/**
* 服务对象
*/
@Autowired
private
IMgRnrTagService
mgRnrTagService
;
/**
* 分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgRnrTagDTO
>>
queryByPage
(
@RequestBody
MgRnrTagDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrTagService
.
queryByPage
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgRnrTagDTO
>
getByUuid
(
@RequestBody
MgRnrTagDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrTagService
.
getByUuid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgRnrTagDTO
>>
queryByList
(
@RequestBody
MgRnrTagDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrTagService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgRnrTagDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrTagService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgRnrTagDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrTagService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
MgRnrTagDTO
bean
)
{
return
Response
.
createSuccess
(
mgRnrTagService
.
deleteById
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgSurplusBindController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.loader.CollectionUtils
;
import
com.cusc.nirvana.common.result.BaseEnum
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgCardNoticeDTO
;
import
com.cusc.nirvana.user.rnr.mg.dto.RnrRelationDTO
;
import
com.cusc.nirvana.user.rnr.mg.dto.SurplusConfirmDto
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgRnrCardNoticeService
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgSurplusBindService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* @author yubo
* @since 2022-05-03 15:38
*/
@Slf4j
@RestController
@RequestMapping
(
"/rnr/surplusBind"
)
public
class
MgSurplusBindController
{
@Autowired
IMgSurplusBindService
surplusBindService
;
@Autowired
//@Lazy
private
IMgRnrCardNoticeService
cardNoticeService
;
/**
* 保存实名关系
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/saveRnrRelation"
)
public
Response
<
String
>
saveSurplusRnrRelation
(
@RequestBody
RnrRelationDTO
bean
)
{
return
Response
.
createSuccess
(
BaseEnum
.
SUCCESS
.
getMsg
(),
surplusBindService
.
saveRelation
(
bean
));
}
/**
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/confirm"
)
public
Response
<
Boolean
>
surplusConfirm
(
@RequestBody
SurplusConfirmDto
bean
)
{
surplusBindService
.
surplusConfirm
(
bean
);
return
Response
.
createSuccess
(
true
);
}
/**
* 特殊业务发送mq
*/
@PostMapping
(
"/sendMQ"
)
public
Response
sendMQ
(
@RequestBody
List
<
MgCardNoticeDTO
>
beans
)
{
//发送审核成功消息
if
(
CollectionUtils
.
isNotEmpty
(
beans
)){
cardNoticeService
.
sendCardNotice
(
beans
);
}
return
Response
.
createSuccess
(
"mq发送成功"
);
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgTenantBizzConfigController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgTenantBizzConfigDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgTenantBizzConfigService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 租户业务配置(MgTenantBizzConfig)表控制层
*
* @author yuy336
* @since 2022-06-14 09:36:10
*/
@RestController
@RequestMapping
(
"/mgTenantBizzConfig"
)
public
class
MgTenantBizzConfigController
{
/**
* 服务对象
*/
@Autowired
private
IMgTenantBizzConfigService
mgTenantBizzConfigService
;
/**
* 分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgTenantBizzConfigDTO
>>
queryByPage
(
@RequestBody
MgTenantBizzConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgTenantBizzConfigService
.
queryByPage
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgTenantBizzConfigDTO
>
getByUuid
(
@RequestBody
MgTenantBizzConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgTenantBizzConfigService
.
getByUuid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgTenantBizzConfigDTO
>>
queryByList
(
@RequestBody
MgTenantBizzConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgTenantBizzConfigService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgTenantBizzConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgTenantBizzConfigService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgTenantBizzConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgTenantBizzConfigService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
MgTenantBizzConfigDTO
bean
)
{
return
Response
.
createSuccess
(
mgTenantBizzConfigService
.
deleteById
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/MgVehicleCompanyController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.MgVehicleCompanyDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IMgVehicleCompanyService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 车企信息表(FpVehicleCompany)表控制层
*
* @author yuy336
* @since 2022-04-19 20:11:33
*/
@RestController
@RequestMapping
(
"/mgVehicleCompany"
)
public
class
MgVehicleCompanyController
{
/**
* 服务对象
*/
@Autowired
private
IMgVehicleCompanyService
mgVehicleCompanyService
;
/**
* 分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
MgVehicleCompanyDTO
>>
queryByPage
(
@RequestBody
MgVehicleCompanyDTO
bean
)
{
return
Response
.
createSuccess
(
mgVehicleCompanyService
.
queryByPage
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
MgVehicleCompanyDTO
>
getByUuid
(
@RequestBody
MgVehicleCompanyDTO
bean
)
{
return
Response
.
createSuccess
(
mgVehicleCompanyService
.
getByUuid
(
bean
));
}
/**
* 通过租户编号查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getVehicleCompany"
)
public
Response
<
MgVehicleCompanyDTO
>
getVehicleCompany
(
@RequestBody
MgVehicleCompanyDTO
bean
)
{
return
Response
.
createSuccess
(
mgVehicleCompanyService
.
getVehicleCompany
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
MgVehicleCompanyDTO
>>
queryByList
(
@RequestBody
MgVehicleCompanyDTO
bean
)
{
return
Response
.
createSuccess
(
mgVehicleCompanyService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
MgVehicleCompanyDTO
bean
)
{
return
Response
.
createSuccess
(
mgVehicleCompanyService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
MgVehicleCompanyDTO
bean
)
{
return
Response
.
createSuccess
(
mgVehicleCompanyService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
MgVehicleCompanyDTO
bean
)
{
return
Response
.
createSuccess
(
mgVehicleCompanyService
.
deleteById
(
bean
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/controller/OpenTenantRelationController.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.controller
;
import
com.cusc.nirvana.common.result.PageResult
;
import
com.cusc.nirvana.common.result.Response
;
import
com.cusc.nirvana.user.rnr.mg.dto.OpenTenantRelationDTO
;
import
com.cusc.nirvana.user.rnr.mg.service.IOpenTenantRelationService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* 开放平台租户和实名制租户映射关系表(OpenTenantRelation)表控制层
*
* @author yuy336
* @since 2022-06-15 20:03:28
*/
@RestController
@RequestMapping
(
"/openTenantRelation"
)
public
class
OpenTenantRelationController
{
/**
* 服务对象
*/
@Autowired
private
IOpenTenantRelationService
openTenantRelationService
;
/**
* 分页查询
*
* @param bean 筛选条件
* @return 查询结果
*/
@PostMapping
(
"/queryByPage"
)
@ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
Response
<
PageResult
<
OpenTenantRelationDTO
>>
queryByPage
(
@RequestBody
OpenTenantRelationDTO
bean
)
{
return
Response
.
createSuccess
(
openTenantRelationService
.
queryByPage
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/getByUuid"
)
public
Response
<
OpenTenantRelationDTO
>
getByUuid
(
@RequestBody
OpenTenantRelationDTO
bean
)
{
return
Response
.
createSuccess
(
openTenantRelationService
.
getByUuid
(
bean
));
}
/**
* 通过主键查询单条数据
*
* @param bean 实体
* @return 单条数据
*/
@PostMapping
(
"/queryByList"
)
public
Response
<
List
<
OpenTenantRelationDTO
>>
queryByList
(
@RequestBody
OpenTenantRelationDTO
bean
)
{
return
Response
.
createSuccess
(
openTenantRelationService
.
queryByList
(
bean
));
}
/**
* 新增数据
*
* @param bean 实体
* @return 新增结果
*/
@PostMapping
(
"/add"
)
public
Response
add
(
@RequestBody
OpenTenantRelationDTO
bean
)
{
return
Response
.
createSuccess
(
openTenantRelationService
.
insert
(
bean
));
}
/**
* 编辑数据
*
* @param bean 实体
* @return 编辑结果
*/
@PostMapping
(
"/update"
)
public
Response
update
(
@RequestBody
OpenTenantRelationDTO
bean
)
{
return
Response
.
createSuccess
(
openTenantRelationService
.
update
(
bean
));
}
/**
* 删除数据
*
* @param bean 实体
* @return 删除是否成功
*/
@PostMapping
(
"/deleteById"
)
public
Response
<
Boolean
>
deleteById
(
@RequestBody
OpenTenantRelationDTO
bean
)
{
return
Response
.
createSuccess
(
openTenantRelationService
.
deleteById
(
bean
));
}
}
Prev
1
…
5
6
7
8
9
10
11
12
13
…
22
Next
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