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
Show whitespace changes
Inline
Side-by-side
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/MgRnrTagPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
/**
* 实名标签,可用于对数据权限查询(MgRnrTag15)实体类
*
* @author yuy336
* @since 2022-01-26 13:50:09
*/
@TableName
(
"mg_rnr_tag"
)
@Data
public
class
MgRnrTagPO
extends
BaseRnrPO
{
private
static
final
long
serialVersionUID
=
-
35711427086134449L
;
/**
* 业务主键
*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**
* 实名id
*/
@TableField
(
"rnr_id"
)
private
String
rnrId
;
/**
* 实名工单id
*/
@TableField
(
"rnr_order_id"
)
private
String
rnrOrderId
;
/**
* 标签名称
*/
@TableField
(
"tag_name"
)
private
String
tagName
;
/**
* 标签值
*/
@TableField
(
"tag_value"
)
private
String
tagValue
;
/**
* 租户编号
*/
@TableField
(
"tenant_no"
)
private
String
tenantNo
;
/**
* 分表路由键
*/
@TableField
(
"routing_key"
)
private
Long
routingKey
;
/**
* 最后一次操作人
*/
@TableField
(
"operator"
)
private
String
operator
;
/**
* 业务类型:1 实名, 2 解绑, 3 换件, 4 信息变更,5 重绑
*/
@TableField
(
"rnr_bizz_type"
)
private
Integer
rnrBizzType
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/MgRnrTaskPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
/**
* (MgRnrTask)实体类
*
* @author makejava
* @since 2022-09-24 11:26:02
*/
@TableName
(
"mg_rnr_task"
)
@Data
public
class
MgRnrTaskPO
extends
BaseRnrPO
{
private
static
final
long
serialVersionUID
=
743674146074038412L
;
@TableField
(
"uuid"
)
private
String
uuid
;
/**
* 业务code
*/
@TableField
(
"biz_code"
)
private
String
bizCode
;
/**
* 业务key
*/
@TableField
(
"biz_key"
)
private
String
bizKey
;
/**
* 内容
*/
@TableField
(
"biz_content"
)
private
String
bizContent
;
/**
* 状态 0:待处理 1:处理成功 2:处理失败
*/
@TableField
(
"biz_status"
)
private
Integer
bizStatus
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/MgTenantBizzConfigPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
/**
* 租户业务配置(MgTenantBizzConfig)实体类
*
* @author yuy336
* @since 2022-06-14 09:36:10
*/
@TableName
(
"mg_tenant_bizz_config"
)
@Data
public
class
MgTenantBizzConfigPO
extends
BaseRnrPO
{
private
static
final
long
serialVersionUID
=
969228659283618178L
;
/**
* 业务主键
*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**
* 租户编号
*/
@TableField
(
"tenant_no"
)
private
String
tenantNo
;
/**
* 组织id
*/
@TableField
(
"org_id"
)
private
String
orgId
;
/**
* 实名失败重试次数,大于此次数则转人工
*/
@TableField
(
"rnr_fail_retry_count"
)
private
Integer
rnrFailRetryCount
;
/**
* 最后一次操作人
*/
@TableField
(
"operator"
)
private
String
operator
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/MgVehicleCompanyPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 车企信息表(FpVehicleCompany)实体类
*
* @author yuy336
* @since 2022-04-19 20:11:33
*/
@TableName
(
"mg_vehicle_company"
)
@Data
public
class
MgVehicleCompanyPO
extends
BaseRnrPO
{
private
static
final
long
serialVersionUID
=
-
14303302512040175L
;
/**
* 业务主键
*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**
* 组织id
*/
@TableField
(
"org_id"
)
private
String
orgId
;
/**
* 企业名称
*/
@TableField
(
"company_name"
)
private
String
companyName
;
/**
* 证件类型
*/
@TableField
(
"company_cert_type"
)
private
String
companyCertType
;
/**
* 证件号码
*/
@TableField
(
"company_cert_number"
)
private
String
companyCertNumber
;
/**
* 证件地址
*/
@TableField
(
"company_cert_address"
)
private
String
companyCertAddress
;
/**
* 企业通讯地址
*/
@TableField
(
"company_contact_address"
)
private
String
companyContactAddress
;
/**
* 公司类型/公司性质
*/
@TableField
(
"company_type"
)
private
String
companyType
;
/**
* 产业类型/行业类型
*/
@TableField
(
"industry_type"
)
private
String
industryType
;
/**
* 营业执照图片
*/
@TableField
(
"license_images"
)
private
String
licenseImages
;
/**
* 责任人姓名
*/
@TableField
(
"corporation_name"
)
private
String
corporationName
;
/**
* 责任人性别
*/
@TableField
(
"corporation_gender"
)
private
Integer
corporationGender
;
/**
* 责任人证件类型
*/
@TableField
(
"corporation_cert_type"
)
private
String
corporationCertType
;
/**
* 责任人证件号
*/
@TableField
(
"corporation_cert_number"
)
private
String
corporationCertNumber
;
/**
* 责任人证件地址
*/
@TableField
(
"corporation_cert_address"
)
private
String
corporationCertAddress
;
/**
* 责任人通讯地址
*/
@TableField
(
"corporation_contact_address"
)
private
String
corporationContactAddress
;
/**
* 责任人电话
*/
@TableField
(
"corporation_phone"
)
private
String
corporationPhone
;
/**
* 责任人出生年月
*/
@TableField
(
"corporation_birthday"
)
private
Date
corporationBirthday
;
/**
* 责任人证件生效时间
*/
@TableField
(
"corporation_effective_date"
)
private
Date
corporationEffectiveDate
;
/**
* 责任人证件失效时间
*/
@TableField
(
"corporation_expired_date"
)
private
Date
corporationExpiredDate
;
/**
* 责任人民族
*/
@TableField
(
"corporation_nation"
)
private
String
corporationNation
;
/**
* 责任人国家
*/
@TableField
(
"corporation_country"
)
private
String
corporationCountry
;
/**
* 责任人发证机关
*/
@TableField
(
"corporation_issuing_authority"
)
private
String
corporationIssuingAuthority
;
/**
* 责任人证件正面图片
*/
@TableField
(
"corporation_cert_front"
)
private
String
corporationCertFront
;
/**
* 责任人证件反面图片
*/
@TableField
(
"corporation_cert_back"
)
private
String
corporationCertBack
;
/**
* 企业授权书文件
*/
@TableField
(
"company_cert_auth"
)
private
String
companyCertAuth
;
/**
* 首次实名的id
*/
@TableField
(
"first_rnr_id"
)
private
String
firstRnrId
;
/**
* 视频活体文件id
*/
@TableField
(
"liveness_video_id"
)
private
String
livenessVideoId
;
/**
* 活体认证状态
*/
@TableField
(
"liveness_status"
)
private
Integer
livenessStatus
;
/**
* 租户编号
*/
@TableField
(
"tenant_no"
)
private
String
tenantNo
;
/**
* 最后一次操作人
*/
@TableField
(
"operator"
)
private
String
operator
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/OpenTenantRelationPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
/**
* 开放平台租户和实名制租户映射关系表(OpenTenantRelation)实体类
*
* @author yuy336
* @since 2022-06-15 20:03:28
*/
@TableName
(
"open_tenant_relation"
)
@Data
public
class
OpenTenantRelationPO
extends
BaseRnrPO
{
private
static
final
long
serialVersionUID
=
-
96485211888304703L
;
/**
* 业务主键
*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**
* 开放平台租户ID
*/
@TableField
(
"open_tenant_id"
)
private
String
openTenantId
;
/**
* 租户编号
*/
@TableField
(
"tenant_no"
)
private
String
tenantNo
;
/**
* 最后一次操作人
*/
@TableField
(
"operator"
)
private
String
operator
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/OrgBusinessTagPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
@TableName
(
"org_business_tag"
)
@Data
public
class
OrgBusinessTagPO
extends
BaseRnrPO
{
/**业务主键*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**租户编码*/
@TableField
(
"tenant_no"
)
private
String
tenantNo
;
/**组织业务uuid*/
@TableField
(
"org_uuid"
)
private
String
orgUuid
;
/**标签编码*/
@TableField
(
"tag_code"
)
private
String
tagCode
;
/**标签名称*/
@TableField
(
"tag_name"
)
private
String
tagName
;
/**标签描述*/
@TableField
(
"description"
)
private
String
description
;
/**系统编码,1 老实名 2 V平台*/
@TableField
(
"system_code"
)
private
Integer
systemCode
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/OrgSimRelPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
@TableName
(
"org_sim_rel"
)
@Data
public
class
OrgSimRelPO
extends
BaseRnrPO
{
/**业务uuid*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**组织uuid*/
@TableField
(
"org_uuid"
)
private
String
orgUuid
;
/**SIM卡的iccid*/
@TableField
(
"iccid"
)
private
String
iccid
;
/**VIN码*/
@TableField
(
"vin"
)
private
String
vin
;
/**imsi码*/
@TableField
(
"imsi"
)
private
String
imsi
;
/**msisdn码*/
@TableField
(
"msisdn"
)
private
String
msisdn
;
/**ip地址*/
@TableField
(
"ip"
)
private
String
ip
;
/**绑定状态*/
@TableField
(
"bind_status"
)
private
Integer
bindStatus
;
/**sim卡运营服务商*/
@TableField
(
"service_provider"
)
private
String
serviceProvider
;
/**品牌编码*/
@TableField
(
"brand"
)
private
String
brand
;
/**品牌名称*/
@TableField
(
"brand_name"
)
private
String
brandName
;
/**车型编码*/
@TableField
(
"vehicle_model"
)
private
String
vehicleModel
;
/**车型名称*/
@TableField
(
"vehicle_model_name"
)
private
String
vehicleModelName
;
/**车系编码*/
@TableField
(
"vehicle_series"
)
private
String
vehicleSeries
;
/**车系名称*/
@TableField
(
"vehicle_series_name"
)
private
String
vehicleSeriesName
;
/**sim卡安装位置*/
@TableField
(
"install_location"
)
private
String
installLocation
;
/**出厂年份*/
@TableField
(
"years"
)
private
Integer
years
;
/**业务标签*/
@TableField
(
"tag_uuid"
)
private
String
tagUuid
;
/**是否允许车主自己实名*/
@TableField
(
"real_by_self"
)
private
Boolean
realBySelf
;
/**车企名录*/
@TableField
(
"company_code"
)
private
String
companyCode
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/OrgSimVehicleRelPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
/**
* 组织所拥有的车卡关系实体类
*/
@TableName
(
"org_sim_vehicle_rel"
)
@Data
public
class
OrgSimVehicleRelPO
extends
BaseRnrPO
{
/**业务uuid*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**组织uuid*/
@TableField
(
"org_uuid"
)
private
String
orgUuid
;
/**SIM卡的iccid*/
@TableField
(
"iccid"
)
private
String
iccid
;
/**车辆vin号*/
@TableField
(
"vin"
)
private
String
vin
;
/**车辆的一个号 郝岩加 小鹏 */
@TableField
(
"msisdn"
)
private
String
msisdn
;
/**绑定状态 郝岩加 小鹏 */
@TableField
(
"binding_status"
)
private
Integer
bindingStatus
;
/**运营商编码 郝岩加 小鹏 */
@TableField
(
"mb_code"
)
private
String
mbCode
;
}
\ No newline at end of file
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/RnrNoticeTemplateConfigPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
/**
* 消息模板配置(RnrNoticeTemplateConfig)实体类
*
* @author yuy336
* @since 2022-06-01 11:07:09
*/
@TableName
(
"rnr_notice_template_config"
)
@Data
public
class
RnrNoticeTemplateConfigPO
extends
BaseRnrPO
{
private
static
final
long
serialVersionUID
=
333304353391717042L
;
/**
* 业务主键
*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**
* 业务类型:1 实名, 2 解绑, 3 换件, 4 信息变更,5 重绑
*/
@TableField
(
"rnr_bizz_type"
)
private
Integer
rnrBizzType
;
/**
* 通知方式:短信、邮箱、webhook
*/
@TableField
(
"notice_way"
)
private
Integer
noticeWay
;
/**
* 标签code
*/
@TableField
(
"tagCode"
)
private
String
tagcode
;
/**
* 模板编号
*/
@TableField
(
"template_code"
)
private
String
templateCode
;
/**
* 模板内容
*/
@TableField
(
"template_content"
)
private
String
templateContent
;
/**
* 语言版本
*/
@TableField
(
"lang"
)
private
String
lang
;
/**
* 组织id
*/
@TableField
(
"org_id"
)
private
String
orgId
;
/**
* 租户编号
*/
@TableField
(
"tenant_no"
)
private
String
tenantNo
;
/**
* 最后一次操作人
*/
@TableField
(
"operator"
)
private
String
operator
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/RnrOrderOperationLogPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.*
;
import
java.util.Date
;
/**
* 实名工单操作日志(RnrOrderOperationLog)实体类
*
* @author yuy336
* @since 2022-03-04 10:07:53
*/
@TableName
(
"rnr_order_operation_log"
)
@Data
public
class
RnrOrderOperationLogPO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
48389443075527840L
;
/**
* 主键
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Long
id
;
/**
* 创建时间
*/
@TableField
(
value
=
"create_time"
,
insertStrategy
=
FieldStrategy
.
NEVER
,
updateStrategy
=
FieldStrategy
.
NEVER
)
private
Date
createTime
;
/**
* 创建人
*/
@TableField
(
value
=
"creator"
,
updateStrategy
=
FieldStrategy
.
NEVER
)
private
String
creator
;
/**
* 业务主键
*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**
* 工单uuid
*/
@TableField
(
"order_id"
)
private
String
orderId
;
/**
* 实名id
*/
@TableField
(
"rnr_id"
)
private
String
rnrId
;
/**
* 操作类型
*/
@TableField
(
"opt_type"
)
private
Integer
optType
;
/**
* 租户编号
*/
@TableField
(
"tenant_no"
)
private
String
tenantNo
;
/**
* 更新内容
*/
@TableField
(
"updated_content"
)
private
String
updatedContent
;
/**
* 操作时间
*/
@TableField
(
"opt_time"
)
private
Date
optTime
;
/**
* 更新码
*/
@TableField
(
"updated_code"
)
private
Long
updatedCode
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/RnrOrderPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 实名工单信息(RnrOrder)实体类
*
* @author yuy336
* @since 2022-01-26 13:49:52
*/
@TableName
(
"rnr_order"
)
@Data
public
class
RnrOrderPO
extends
BaseRnrPO
{
private
static
final
long
serialVersionUID
=
-
20240993652689774L
;
/**
* 业务主键
*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**
* 工单类型
*/
@TableField
(
"order_type"
)
private
Integer
orderType
;
/**
* 实名id
*/
@TableField
(
"rnr_id"
)
private
String
rnrId
;
/**
* 审核类型,0为自动,1为手动
*/
@TableField
(
"audit_type"
)
private
Integer
auditType
;
/**
* 工单来源
*/
@TableField
(
"order_source"
)
private
String
orderSource
;
/**
* 工单状态 0 待分派/认领,1 待审核,2 审核通过,3 未通过,4 已分配,5 已认领,6 解绑成功,7 解绑失败,8 重绑成功,9 超过24小时关卡; 具体枚举值参考:OrderStatus
*/
@TableField
(
"order_status"
)
private
Integer
orderStatus
;
/**
* 是否批量订单,参考枚举:ORDER_BATCH。0 不是,1是
*/
@TableField
(
"is_batch_order"
)
private
Integer
isBatchOrder
;
/**
* 三方系统流水号
*/
@TableField
(
"serial_number"
)
private
String
serialNumber
;
/**
* 审批编号,工单系统流水号
*/
@TableField
(
"approval_no"
)
private
String
approvalNo
;
/**
* 分派时间
*/
@TableField
(
"allocate_time"
)
private
Date
allocateTime
;
/**
* 审核时间
*/
@TableField
(
"audit_time"
)
private
Date
auditTime
;
/**
* 最终审批时间
*/
@TableField
(
"final_approve_time"
)
private
Date
finalApproveTime
;
/**
* 更新码
*/
@TableField
(
"updated_code"
)
private
Integer
updatedCode
;
/**
* 评审意见
*/
@TableField
(
"verify_comments"
)
private
String
verifyComments
;
/**
* 备注信息
*/
@TableField
(
"comment"
)
private
String
comment
;
/**
* 业务区分
*/
@TableField
(
"channel_id"
)
private
String
channelId
;
/**
* 租户编号
*/
@TableField
(
"tenant_no"
)
private
String
tenantNo
;
/**
* 分表路由键
*/
@TableField
(
"routing_key"
)
private
Long
routingKey
;
/**
* 组织id
*/
@TableField
(
"org_id"
)
private
String
orgId
;
/**
* 最后一次操作人
*/
@TableField
(
"operator"
)
private
String
operator
;
/**
* 业务类型:1 实名, 2 解绑, 3 换件, 4 信息变更,5 重绑
*/
@TableField
(
"rnr_bizz_type"
)
private
Integer
rnrBizzType
;
/**
* 审核人
*/
@TableField
(
"review_user_id"
)
private
String
reviewUserId
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/SimFileHistoryPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
@TableName
(
"excel_import_file_history"
)
@Data
public
class
SimFileHistoryPO
extends
BaseRnrPO
{
/**
* 业务UUID
*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**
* 组织业务ID
*/
@TableField
(
"org_uuid"
)
private
String
orgUuid
;
/**
* 文件名称
*/
@TableField
(
"file_name"
)
private
String
fileName
;
/**
* 是否校验通过
*/
@TableField
(
"verification"
)
private
Integer
verification
;
/**
* 异常信息
*/
@TableField
(
"error_info"
)
private
String
errorInfo
;
/**
* 批次
*/
@TableField
(
"batch_no"
)
private
String
batchNo
;
/**
* 总行数
*/
@TableField
(
"total_count"
)
private
Integer
totalCount
;
/**
* 错误行数
*/
@TableField
(
"error_count"
)
private
Integer
errorCount
;
/**
* 0-导入中 1-导入成功
*/
@TableField
(
"status"
)
private
Integer
status
;
/**
* 文件类型,0:sim卡,1:车卡关系
*/
@TableField
(
"file_type"
)
private
Integer
fileType
;
/**
* 文件存储地址
*/
@TableField
(
"file_addr"
)
private
String
fileAddr
;
/**
* 导入错误文件地址
*/
@TableField
(
"error_file_addr"
)
private
String
errorFileAddr
;
/**导入方式,0-新增 1-修改*/
@TableField
(
"import_type"
)
private
Integer
importType
;
/**
* 业务描述
*/
@TableField
(
"description"
)
private
String
description
;
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/entity/VehicleSimBindingPO.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.cusc.nirvana.user.rnr.common.po.BaseRnrPO
;
import
lombok.Data
;
/**
* 车卡绑定关系表
*/
@TableName
(
"vehicle_sim_binding"
)
@Data
public
class
VehicleSimBindingPO
extends
BaseRnrPO
{
/**业务uuid*/
@TableField
(
"uuid"
)
private
String
uuid
;
/**SIM卡的iccid*/
@TableField
(
"iccid"
)
private
String
iccid
;
/**车辆vin号*/
@TableField
(
"vin"
)
private
String
vin
;
/**绑定关系 0-已绑定;1-已解绑 */
@TableField
(
"bind_status"
)
private
String
bindStatus
;
@TableField
(
"company_id"
)
private
String
companyId
;
@TableField
(
"vehicle_model_id"
)
private
String
vehicleModelId
;
@TableField
(
"vehicle_model_uuid"
)
private
String
vehicleModelUuid
;
@TableField
(
"project_id"
)
private
String
projectId
;
@TableField
(
"organization_id"
)
private
String
organizationId
;
}
\ No newline at end of file
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/handler/EncryptData.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.handler
;
import
org.apache.ibatis.type.Alias
;
/**
* MyBatis JavaType 别名
*/
@Alias
(
"encryptData"
)
public
class
EncryptData
{
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/handler/EncryptDataTypeHandler.java
0 → 100644
View file @
b2eded42
package
com.cusc.nirvana.user.rnr.mg.dao.handler
;
import
com.cusc.nirvana.user.util.crypt.CryptKeyUtil
;
import
org.apache.ibatis.type.BaseTypeHandler
;
import
org.apache.ibatis.type.JdbcType
;
import
org.apache.ibatis.type.MappedTypes
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
java.sql.CallableStatement
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
import
java.sql.SQLException
;
/**
* 拦截 JavaType 为 #{@link EncryptData} 的 SQL
* <p>
* 注意:
* </p>
* <p>
* 1. 加密时字段只过滤 null值,明文不做任何处理直接加密
* </p>
* <p>
* 2. fail fast 模式,当加/解密失败时,立即抛出异常
* </p>
*
* @author xufeng @ 2017年8月31日
*/
@MappedTypes
(
EncryptData
.
class
)
public
class
EncryptDataTypeHandler
extends
BaseTypeHandler
<
String
>
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
EncryptDataTypeHandler
.
class
);
@Override
public
void
setNonNullParameter
(
PreparedStatement
ps
,
int
i
,
String
parameter
,
JdbcType
jdbcType
)
throws
SQLException
{
ps
.
setString
(
i
,
CryptKeyUtil
.
encryptToBase64
(
parameter
));
}
@Override
public
String
getNullableResult
(
ResultSet
rs
,
String
columnName
)
throws
SQLException
{
return
CryptKeyUtil
.
decryptByBase64
(
rs
.
getString
(
columnName
));
}
@Override
public
String
getNullableResult
(
ResultSet
rs
,
int
columnIndex
)
throws
SQLException
{
return
CryptKeyUtil
.
decryptByBase64
(
rs
.
getString
(
columnIndex
));
}
@Override
public
String
getNullableResult
(
CallableStatement
cs
,
int
columnIndex
)
throws
SQLException
{
return
CryptKeyUtil
.
decryptByBase64
(
cs
.
getString
(
columnIndex
));
}
}
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/mapper/MgCheckProgressMapper.xml
0 → 100644
View file @
b2eded42
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.cusc.nirvana.user.rnr.mg.dao.MgCheckProgressDao"
>
<resultMap
type=
"com.cusc.nirvana.user.rnr.mg.dto.MgCheckProgressDTO"
id=
"mgCheckProgressMap"
>
<result
property=
"iccid"
column=
"iccid"
jdbcType=
"VARCHAR"
javaType=
"encryptData"
/>
<result
property=
"iotId"
column=
"iot_id"
jdbcType=
"VARCHAR"
javaType=
"encryptData"
/>
<result
property=
"orderType"
column=
"order_type"
jdbcType=
"VARCHAR"
/>
<result
property=
"orderStatus"
column=
"order_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"startCheckDate"
column=
"create_time"
/>
<result
property=
"endCheckDate"
column=
"audit_time"
/>
<result
property=
"orgId"
column=
"org_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"fullName"
column=
"full_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"phone"
column=
"phone"
jdbcType=
"VARCHAR"
/>
<result
property=
"companyName"
column=
"company_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"isVehicleCompany"
column=
"is_vehicle_company"
jdbcType=
"INTEGER"
/>
<result
property=
"checkUser"
column=
"check_user"
jdbcType=
"VARCHAR"
/>
</resultMap>
<select
id=
"queryCheckProgressByPage"
parameterType=
"com.cusc.nirvana.user.rnr.mg.dto.MgCheckProgressDTO"
resultMap=
"mgCheckProgressMap"
>
select c.iccid,c.iot_id,
o.order_type,o.order_status,
date_format(o.create_time,'%Y-%m-%d %H:%i:%s') create_time,
date_format(o.audit_time,'%Y-%m-%d %H:%i:%s') audit_time,o.org_id,
r.full_name,r.phone,
p.company_name,p.is_vehicle_company,
eu.full_name as check_user
from mg_rnr_card_info c
LEFT JOIN rnr_order o on c.order_id = o.uuid
LEFT JOIN mg_rnr_info r on c.rnr_id = r.uuid
LEFT JOIN mg_rnr_company_info p on r.rnr_company_id = p.uuid
LEFT JOIN eiam_user eu ON eu.uuid = o.review_user_id
WHERE c.is_delete=0 AND o.is_delete=0 AND r.is_delete=0 and c.tenant_no=#{bean.tenantNo}
<if
test=
"bean.iccid != null and bean.iccid != ''"
>
and c.iccid = #{bean.iccid}
</if>
<if
test=
"bean.iotId != null and bean.iotId != ''"
>
and c.iot_id = #{bean.iotId}
</if>
<if
test=
"bean.fullName != null and bean.fullName != ''"
>
and r.full_name = #{bean.fullName}
</if>
<if
test=
"bean.phone != null and bean.phone != ''"
>
and r.phone = #{bean.phone}
</if>
<if
test=
"bean.orderType != null and bean.orderType != ''"
>
and o.order_type = #{bean.orderType}
</if>
<if
test=
"bean.orderStatus != null and bean.orderStatus != ''"
>
and o.order_status = #{bean.orderStatus}
</if>
<if
test=
"bean.orgIdList != null and bean.orgIdList.size > 0 "
>
and o.org_id in
<foreach
collection=
"bean.orgIdList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"bean.companyName != null and bean.companyName != ''"
>
and p.company_name = #{bean.companyName} and p.is_vehicle_company=#{bean.isVehicleCompany}
</if>
<if
test=
"bean.startCheckBegin != null and bean.startCheckBegin != ''"
>
and
<![CDATA[ DATE_FORMAT(o.create_time,'%Y-%m-%d') >= #{bean.startCheckBegin} ]]>
</if>
<if
test=
"bean.startCheckEnd != null and bean.startCheckEnd != ''"
>
and
<![CDATA[ DATE_FORMAT(o.create_time,'%Y-%m-%d') <= #{bean.startCheckEnd} ]]>
</if>
<if
test=
"bean.endCheckBegin != null and bean.endCheckBegin != ''"
>
and
<![CDATA[ DATE_FORMAT(o.audit_time,'%Y-%m-%d') >= #{endCheckBegin} ]]>
</if>
<if
test=
"bean.endCheckEnd != null and bean.endCheckEnd != ''"
>
and
<![CDATA[ DATE_FORMAT(o.audit_time,'%Y-%m-%d') <= #{bean.endCheckEnd} ]]>
</if>
order by c.create_time desc
</select>
<select
id=
"queryStatisticsCountByCondition"
parameterType=
"com.cusc.nirvana.user.rnr.mg.dto.MgCheckStatisticsQueryDTO"
resultType=
"java.lang.Integer"
>
select COUNT(1)
from mg_rnr_card_info c
LEFT JOIN mg_rnr_info r on c.rnr_id = r.uuid
LEFT JOIN mg_rnr_company_info p on r.rnr_company_id = p.uuid
WHERE c.is_delete=0 AND r.is_delete=0 and c.tenant_no=#{bean.tenantNo}
<if
test=
"bean.dateTime != null and bean.dateTime != ''"
>
AND
<![CDATA[ c.create_time <= #{bean.dateTime} ]]>
</if>
and c.rnr_bizz_type in
<foreach
collection=
"bean.rnrBizzTypeList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
and c.rnr_status in
<foreach
collection=
"bean.rnrStatusList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
<if
test=
"bean.isCompany != null and bean.isCompany != ''"
>
AND r.is_company = #{bean.isCompany}
</if>
<!--<if test="bean.isVehicleCompany != null and bean.isVehicleCompany != ''">
AND p.is_vehicle_company = #{bean.isVehicleCompany}
</if>-->
<if
test=
"bean.orgIdList != null and bean.orgIdList.size > 0 "
>
and r.org_id in
<foreach
collection=
"bean.orgIdList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
</if>
</select>
<select
id=
"queryVehicleCompanyHandleTime"
parameterType=
"com.cusc.nirvana.user.rnr.mg.dto.MgCheckStatisticsQueryDTO"
resultType=
"java.lang.Integer"
>
select TIMESTAMPDIFF(SECOND, o.allocate_time, o.final_approve_time)
from mg_rnr_card_info c
LEFT JOIN mg_rnr_info r on c.rnr_id = r.uuid
LEFT JOIN mg_rnr_company_info p on r.rnr_company_id = p.uuid
LEFT JOIN rnr_order o on c.order_id = o.uuid
WHERE c.is_delete=0 AND r.is_delete=0 and c.tenant_no=#{bean.tenantNo} and o.audit_type=1
<if
test=
"bean.dateTime != null and bean.dateTime != ''"
>
AND
<![CDATA[ c.create_time <= #{bean.dateTime} ]]>
</if>
and c.rnr_bizz_type in
<foreach
collection=
"bean.rnrBizzTypeList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
<!--<if test="bean.isCompany != null and bean.isCompany != ''">
AND r.is_company = #{bean.isCompany}
</if>
<if test="bean.isVehicleCompany != null and bean.isVehicleCompany != ''">
AND p.is_vehicle_company = #{bean.isVehicleCompany}
</if>-->
<if
test=
"bean.orgIdList != null and bean.orgIdList.size > 0 "
>
and o.org_id in
<foreach
collection=
"bean.orgIdList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
</if>
</select>
</mapper>
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/mapper/MgOrderApproverDaoMapper.xml
0 → 100644
View file @
b2eded42
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.cusc.nirvana.user.rnr.mg.dao.MgOrderApproverDao"
>
<resultMap
type=
"com.cusc.nirvana.user.rnr.mg.dao.entity.MgOrderApproverPO"
id=
"mgUserApprovalMap"
>
<id
property=
"id"
column=
"id"
jdbcType=
"BIGINT"
/>
<result
property=
"userId"
column=
"user_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"tenantNo"
column=
"tenant_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"fullName"
column=
"full_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"groupName"
column=
"group_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"stopAcceptOrder"
column=
"stop_accept_order"
jdbcType=
"INTEGER"
/>
<result
property=
"isDelete"
column=
"is_delete"
jdbcType=
"INTEGER"
/>
<result
property=
"creator"
column=
"creator"
jdbcType=
"VARCHAR"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"operator"
column=
"operator"
jdbcType=
"VARCHAR"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
</mapper>
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/mapper/MgRnrAuthenticationResultMapper.xml
0 → 100644
View file @
b2eded42
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.cusc.nirvana.user.rnr.mg.dao.MgRnrAuthenticationResultDao"
>
<resultMap
type=
"com.cusc.nirvana.user.rnr.mg.dao.entity.MgRnrAuthenticationResultPO"
id=
"mgRnrAuthenticationResultMap"
>
<result
property=
"uuid"
column=
"uuid"
jdbcType=
"VARCHAR"
/>
<result
property=
"rnrBizzType"
column=
"rnr_bizz_type"
jdbcType=
"INTEGER"
/>
<result
property=
"subjectType"
column=
"subject_type"
jdbcType=
"INTEGER"
/>
<result
property=
"rnrId"
column=
"rnr_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"orderId"
column=
"order_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"authWayType"
column=
"auth_way_type"
jdbcType=
"VARCHAR"
/>
<result
property=
"authResult"
column=
"auth_result"
jdbcType=
"VARCHAR"
/>
<result
property=
"authResultMsg"
column=
"auth_result_msg"
jdbcType=
"VARCHAR"
/>
<result
property=
"tenantNo"
column=
"tenant_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"routingKey"
column=
"routing_key"
jdbcType=
"INTEGER"
/>
<result
property=
"creator"
column=
"creator"
jdbcType=
"VARCHAR"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"operator"
column=
"operator"
jdbcType=
"VARCHAR"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
</mapper>
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/mapper/MgRnrCardInfoMapper.xml
0 → 100644
View file @
b2eded42
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.cusc.nirvana.user.rnr.mg.dao.MgRnrCardInfoDao"
>
<resultMap
type=
"com.cusc.nirvana.user.rnr.mg.dao.entity.MgRnrCardInfoPO"
id=
"mgRnrCardInfoMap"
>
<result
property=
"uuid"
column=
"uuid"
jdbcType=
"VARCHAR"
/>
<result
property=
"rnrId"
column=
"rnr_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"orderId"
column=
"order_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"iccid"
column=
"iccid"
jdbcType=
"VARCHAR"
javaType=
"encryptData"
/>
<result
property=
"iotId"
column=
"iot_id"
jdbcType=
"VARCHAR"
javaType=
"encryptData"
/>
<result
property=
"rnrStatus"
column=
"rnr_status"
jdbcType=
"INTEGER"
/>
<result
property=
"noticeStatus"
column=
"notice_status"
jdbcType=
"INTEGER"
/>
<result
property=
"t1UploadStatus"
column=
"t1_upload_status"
jdbcType=
"INTEGER"
/>
<result
property=
"tenantNo"
column=
"tenant_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"routingKey"
column=
"routing_key"
jdbcType=
"INTEGER"
/>
<result
property=
"isDelete"
column=
"is_delete"
jdbcType=
"INTEGER"
/>
<result
property=
"creator"
column=
"creator"
jdbcType=
"VARCHAR"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"operator"
column=
"operator"
jdbcType=
"VARCHAR"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"rnrBizzType"
column=
"rnr_bizz_type"
jdbcType=
"INTEGER"
/>
</resultMap>
<insert
id=
"addRnrCardBatch"
parameterType=
"java.util.List"
>
insert into mg_rnr_card_info
(uuid,rnr_id,order_id,old_card_id,iccid,iot_id,rnr_status,tenant_no,creator,notice_status,rnr_bizz_type)
values
<foreach
collection=
"list"
item=
"bean"
separator=
","
>
(#{bean.uuid},#{bean.rnrId},#{bean.orderId},#{bean.oldCardId},#{bean.iccid},#{bean.iotId},#{bean.rnrStatus},#{bean.tenantNo},#{bean.creator},#{bean.noticeStatus},#{bean.rnrBizzType})
</foreach>
</insert>
<update
id=
"unboundCardBatch"
parameterType=
"java.util.List"
>
update mg_rnr_card_info set rnr_status = #{status}
<where>
<foreach
collection=
"beans"
item=
"item"
separator=
","
open=
"uuid in ("
close=
")"
>
#{item}
</foreach>
</where>
</update>
<update
id=
"updateCardNoticeStatus"
parameterType=
"com.cusc.nirvana.user.rnr.mg.dto.MgRnrCardInfoDTO"
>
update mg_rnr_card_info set notice_status = #{noticeStatus}
<where>
rnr_id = #{rnrId} and iccid = #{iccid}
</where>
</update>
<update
id=
"updateCardStatusByOrderId"
>
update mg_rnr_card_info set notice_status = #{noticeStatus} , rnr_status = #{rnrStatus}
<where>
order_id = #{orderId}
</where>
</update>
<select
id=
"queryByUserId"
parameterType=
"com.cusc.nirvana.user.rnr.mg.dto.MgRnrCardInfoDTO"
resultMap=
"mgRnrCardInfoMap"
>
select
card.rnr_id,card.rnr_bizz_type,card.order_id,card.old_card_id,card.iot_id,card.iccid,card.rnr_status,card.create_time
from mg_rnr_card_info card, mg_rnr_info info where
card.rnr_id = info.uuid and card.tenant_no = info.tenant_no and card.tenant_no =
#{bean.tenantNo,jdbcType=VARCHAR} and card.is_delete = 0 and info.is_delete = 0
and info.user_id = #{bean.userId,jdbcType=VARCHAR}
<if
test=
"bean.rnrBizzType != null"
>
and info.rnr_bizz_type = #{bean.rnrBizzType}
</if>
order by card.create_time desc
</select>
<select
id=
"getNumWithUnload"
resultType=
"java.lang.String"
parameterType=
"java.lang.String"
>
SELECT DISTINCT(c.iccid) from mg_rnr_card_info c
INNER JOIN mg_rnr_info i on i.uuid = c.rnr_id
WHERE i.cert_number = #{certNumber}
and c.is_delete = 0
and c.rnr_status = 1
and i.is_delete = 0
and c.t1_upload_status = 0 or c.t1_upload_status is null
</select>
</mapper>
local-rnr-mg-server/src/main/java/com/cusc/nirvana/user/rnr/mg/dao/mapper/MgRnrCommonConfigMapper.xml
0 → 100644
View file @
b2eded42
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.cusc.nirvana.user.rnr.mg.dao.MgRnrCommonConfigDao"
>
<resultMap
type=
"com.cusc.nirvana.user.rnr.mg.dao.entity.MgRnrCommonConfigPO"
id=
"mgRnrCommonConfigMap"
>
<result
property=
"configKey"
column=
"config_key"
jdbcType=
"VARCHAR"
/>
<result
property=
"configValue"
column=
"config_value"
jdbcType=
"VARCHAR"
/>
<result
property=
"configPath"
column=
"config_path"
jdbcType=
"VARCHAR"
/>
<result
property=
"parentId"
column=
"parent_id"
jdbcType=
"INTEGER"
/>
<result
property=
"parentPath"
column=
"parent_path"
jdbcType=
"VARCHAR"
/>
<result
property=
"configOrder"
column=
"config_order"
jdbcType=
"INTEGER"
/>
<result
property=
"comments"
column=
"comments"
jdbcType=
"VARCHAR"
/>
<result
property=
"isDelete"
column=
"is_delete"
jdbcType=
"INTEGER"
/>
<result
property=
"creator"
column=
"creator"
jdbcType=
"VARCHAR"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"operator"
column=
"operator"
jdbcType=
"VARCHAR"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
</mapper>
Prev
1
…
9
10
11
12
13
14
15
16
17
…
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