Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
2d623799
Commit
2d623799
authored
Mar 28, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运营后台--
保险列表
parent
93c03476
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
468 additions
and
0 deletions
+468
-0
src/main/java/cn/timer/api/bean/insure/InsureLog.java
+221
-0
src/main/java/cn/timer/api/bean/insure/OrderImportInfo.java
+23
-0
src/main/java/cn/timer/api/controller/insure/InsureLogController.java
+35
-0
src/main/java/cn/timer/api/dao/insure/InsureLogMapper.java
+18
-0
src/main/resources/mapping/insure/InsureLogMapper.xml
+171
-0
No files found.
src/main/java/cn/timer/api/bean/insure/InsureLog.java
0 → 100644
View file @
2d623799
package
cn
.
timer
.
api
.
bean
.
insure
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
*
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-22 09:55:46
*/
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table
(
name
=
"insure_log"
)
@ApiModel
(
"投保日志"
)
public
class
InsureLog
extends
Model
<
InsurePolicy
>
{
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
)
private
Integer
id
;
/**
* 请求路径
*/
private
String
requestPath
;
/**
* 请求参数
*/
private
String
requestData
;
/**
* 请求参数
*/
private
String
requestParam
;
/**
* 请求时间
*/
private
Date
createTime
;
/**
* 返回时间
*/
private
Date
returnTime
;
/**
* 返回编码
*/
private
String
returnCode
;
/**
* 返回参数
*/
private
String
returnBody
;
/**
* 返回编码文本
*/
private
String
returnMsg
;
/**
* 请求流水号
*/
private
String
transId
;
/**
* 类型:1成功 2失败 3等待
*/
private
Integer
type
;
/**
* 请求方式1 post 2get 3put
*/
private
Integer
requestType
;
/**
* 设置:
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* 获取:
*/
public
Integer
getId
()
{
return
id
;
}
/**
* 设置:请求路径
*/
public
void
setRequestPath
(
String
requestPath
)
{
this
.
requestPath
=
requestPath
;
}
/**
* 获取:请求路径
*/
public
String
getRequestPath
()
{
return
requestPath
;
}
/**
* 设置:请求参数
*/
public
void
setRequestData
(
String
requestData
)
{
this
.
requestData
=
requestData
;
}
/**
* 获取:请求参数
*/
public
String
getRequestData
()
{
return
requestData
;
}
/**
* 设置:请求参数
*/
public
void
setRequestParam
(
String
requestParam
)
{
this
.
requestParam
=
requestParam
;
}
/**
* 获取:请求参数
*/
public
String
getRequestParam
()
{
return
requestParam
;
}
/**
* 设置:请求时间
*/
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
* 获取:请求时间
*/
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* 设置:返回时间
*/
public
void
setReturnTime
(
Date
returnTime
)
{
this
.
returnTime
=
returnTime
;
}
/**
* 获取:返回时间
*/
public
Date
getReturnTime
()
{
return
returnTime
;
}
/**
* 设置:返回编码
*/
public
void
setReturnCode
(
String
returnCode
)
{
this
.
returnCode
=
returnCode
;
}
/**
* 获取:返回编码
*/
public
String
getReturnCode
()
{
return
returnCode
;
}
/**
* 设置:返回参数
*/
public
void
setReturnBody
(
String
returnBody
)
{
this
.
returnBody
=
returnBody
;
}
/**
* 获取:返回参数
*/
public
String
getReturnBody
()
{
return
returnBody
;
}
/**
* 设置:返回编码文本
*/
public
void
setReturnMsg
(
String
returnMsg
)
{
this
.
returnMsg
=
returnMsg
;
}
/**
* 获取:返回编码文本
*/
public
String
getReturnMsg
()
{
return
returnMsg
;
}
/**
* 设置:请求流水号
*/
public
void
setTransId
(
String
transId
)
{
this
.
transId
=
transId
;
}
/**
* 获取:请求流水号
*/
public
String
getTransId
()
{
return
transId
;
}
/**
* 设置:类型:1成功 2失败 3等待
*/
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
/**
* 获取:类型:1成功 2失败 3等待
*/
public
Integer
getType
()
{
return
type
;
}
}
src/main/java/cn/timer/api/bean/insure/OrderImportInfo.java
0 → 100644
View file @
2d623799
package
cn
.
timer
.
api
.
bean
.
insure
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @Description TODO
* @Author wgd
* @Date 2022/3/22 17:02
*/
@Data
public
class
OrderImportInfo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
6208327653541160864L
;
private
String
uuid
;
private
String
single_serial_no
;
private
String
total_money
;
private
String
endorsement_file
;
private
String
err_msg
;
private
List
err_list
;
private
String
err_content
;
}
src/main/java/cn/timer/api/controller/insure/InsureLogController.java
0 → 100644
View file @
2d623799
package
cn
.
timer
.
api
.
controller
.
insure
;
import
java.util.List
;
import
java.util.Map
;
import
cn.timer.api.dao.insure.InsureLogMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RestController
;
/**
*
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-22 09:55:46
*/
@RestController
@RequestMapping
(
"insurelog"
)
public
class
InsureLogController
{
@Autowired
private
InsureLogMapper
insureLogService
;
}
src/main/java/cn/timer/api/dao/insure/InsureLogMapper.java
0 → 100644
View file @
2d623799
package
cn
.
timer
.
api
.
dao
.
insure
;
import
cn.timer.api.bean.insure.InsureLog
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.springframework.stereotype.Repository
;
/**
*
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-22 09:55:46
*/
@Repository
public
interface
InsureLogMapper
extends
BaseMapper
<
InsureLog
>
{
}
src/main/resources/mapping/insure/InsureLogMapper.xml
0 → 100644
View file @
2d623799
<?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=
"cn.timer.api.dao.insure.InsureLogMapper"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"cn.timer.api.bean.insure.InsureLog"
id=
"insureLogMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"requestPath"
column=
"request_path"
/>
<result
property=
"requestData"
column=
"request_data"
/>
<result
property=
"requestParam"
column=
"request_param"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"returnTime"
column=
"return_time"
/>
<result
property=
"returnCode"
column=
"return_code"
/>
<result
property=
"returnBody"
column=
"return_body"
/>
<result
property=
"returnMsg"
column=
"return_msg"
/>
<result
property=
"transId"
column=
"trans_id"
/>
<result
property=
"type"
column=
"type"
/>
</resultMap>
<select
id=
"queryObject"
resultType=
"cn.timer.api.bean.insure.InsureLog"
>
select *
from insure_log
where id = #{value}
</select>
<select
id=
"queryList"
resultType=
"cn.timer.api.bean.insure.InsureLog"
>
select * from insure_log
<where>
<if
test=
"id != null and id != ''"
>
AND `id` = #{id}
</if>
<if
test=
"requestPath != null and requestPath != ''"
>
AND `request_path` = #{requestPath}
</if>
<if
test=
"requestData != null and requestData != ''"
>
AND `request_data` = #{requestData}
</if>
<if
test=
"requestParam != null and requestParam != ''"
>
AND `request_param` = #{requestParam}
</if>
<if
test=
"createTime != null and createTime != ''"
>
AND `create_time` = #{createTime}
</if>
<if
test=
"returnTime != null and returnTime != ''"
>
AND `return_time` = #{returnTime}
</if>
<if
test=
"returnCode != null and returnCode != ''"
>
AND `return_code` = #{returnCode}
</if>
<if
test=
"returnBody != null and returnBody != ''"
>
AND `return_body` = #{returnBody}
</if>
<if
test=
"returnMsg != null and returnMsg != ''"
>
AND `return_msg` = #{returnMsg}
</if>
<if
test=
"transId != null and transId != ''"
>
AND `trans_id` = #{transId}
</if>
<if
test=
"type != null and type != ''"
>
AND `type` = #{type}
</if>
</where>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
</when>
<otherwise>
order by id desc
</otherwise>
</choose>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*) from insure_log
<where>
<if
test=
"id != null and id != ''"
>
AND `id` = #{id}
</if>
<if
test=
"requestPath != null and requestPath != ''"
>
AND `request_path` = #{requestPath}
</if>
<if
test=
"requestData != null and requestData != ''"
>
AND `request_data` = #{requestData}
</if>
<if
test=
"requestParam != null and requestParam != ''"
>
AND `request_param` = #{requestParam}
</if>
<if
test=
"createTime != null and createTime != ''"
>
AND `create_time` = #{createTime}
</if>
<if
test=
"returnTime != null and returnTime != ''"
>
AND `return_time` = #{returnTime}
</if>
<if
test=
"returnCode != null and returnCode != ''"
>
AND `return_code` = #{returnCode}
</if>
<if
test=
"returnBody != null and returnBody != ''"
>
AND `return_body` = #{returnBody}
</if>
<if
test=
"returnMsg != null and returnMsg != ''"
>
AND `return_msg` = #{returnMsg}
</if>
<if
test=
"transId != null and transId != ''"
>
AND `trans_id` = #{transId}
</if>
<if
test=
"type != null and type != ''"
>
AND `type` = #{type}
</if>
</where>
</select>
<insert
id=
"save"
parameterType=
"cn.timer.api.bean.insure.InsureLog"
>
insert into insure_log
(`id`,
`request_path`,
`request_data`,
`request_param`,
`create_time`,
`return_time`,
`return_code`,
`return_body`,
`return_msg`,
`trans_id`,
`type`)
values (#{id},
#{requestPath},
#{requestData},
#{requestParam},
#{createTime},
#{returnTime},
#{returnCode},
#{returnBody},
#{returnMsg},
#{transId},
#{type})
</insert>
<insert
id=
"saveSelective"
parameterType=
"cn.timer.api.bean.insure.InsureLog"
>
insert into insure_log
(
<if
test=
"id != null"
>
`id`
</if>
<if
test=
"requestPath != null"
>
,`request_path`
</if>
<if
test=
"requestData != null"
>
,`request_data`
</if>
<if
test=
"requestParam != null"
>
,`request_param`
</if>
<if
test=
"createTime != null"
>
,`create_time`
</if>
<if
test=
"returnTime != null"
>
,`return_time`
</if>
<if
test=
"returnCode != null"
>
,`return_code`
</if>
<if
test=
"returnBody != null"
>
,`return_body`
</if>
<if
test=
"returnMsg != null"
>
,`return_msg`
</if>
<if
test=
"transId != null"
>
,`trans_id`
</if>
<if
test=
"type != null"
>
,`type`
</if>
)
values
(
<if
test=
"id != null"
>
#{id}
</if>
<if
test=
"requestPath != null"
>
,#{requestPath}
</if>
<if
test=
"requestData != null"
>
,#{requestData}
</if>
<if
test=
"requestParam != null"
>
,#{requestParam}
</if>
<if
test=
"createTime != null"
>
,#{createTime}
</if>
<if
test=
"returnTime != null"
>
,#{returnTime}
</if>
<if
test=
"returnCode != null"
>
,#{returnCode}
</if>
<if
test=
"returnBody != null"
>
,#{returnBody}
</if>
<if
test=
"returnMsg != null"
>
,#{returnMsg}
</if>
<if
test=
"transId != null"
>
,#{transId}
</if>
<if
test=
"type != null"
>
,#{type}
</if>
)
</insert>
<insert
id=
"saveList"
parameterType=
"cn.timer.api.bean.insure.InsureLog"
>
insert into insure_log
(
`id`,
`request_path`,
`request_data`,
`request_param`,
`create_time`,
`return_time`,
`return_code`,
`return_body`,
`return_msg`,
`trans_id`,
`type`
)
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
(
#{item.id},
#{item.requestPath},
#{item.requestData},
#{item.requestParam},
#{item.createTime},
#{item.returnTime},
#{item.returnCode},
#{item.returnBody},
#{item.returnMsg},
#{item.transId},
#{item.type}
)
</foreach>
</insert>
<delete
id=
"deleteBatch"
>
delete from insure_log where id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</delete>
</mapper>
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