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
8d9c11f9
Commit
8d9c11f9
authored
Jun 13, 2023
by
陶湘宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APP获取异常
parent
8f4153dd
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
128 additions
and
17 deletions
+128
-17
src/main/java/cn/timer/api/bean/qyzx/AppExceptionErro.java
+63
-0
src/main/java/cn/timer/api/controller/LoginController.java
+15
-8
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+5
-0
src/main/java/cn/timer/api/dao/qyzx/APPErroMapper.java
+18
-0
src/main/resources/application-pro.yml
+14
-9
src/main/resources/mapping/qyzx/APPErroMapper.xml
+13
-0
No files found.
src/main/java/cn/timer/api/bean/qyzx/AppExceptionErro.java
0 → 100644
View file @
8d9c11f9
package
cn
.
timer
.
api
.
bean
.
qyzx
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.dto.login.QysDto
;
import
cn.timer.api.dto.qyzx.MenuStructureDto
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
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
org.hibernate.annotations.Columns
;
import
javax.persistence.*
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
/**
* @author tao 2023-6-11
*/
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table
(
name
=
"app_exception_erro"
)
@ApiModel
(
"APP异常错误表"
)
public
class
AppExceptionErro
{
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
,
example
=
"101"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"异常日志"
)
@Column
(
name
=
"errolog"
,
columnDefinition
=
"TEXT"
,
nullable
=
true
)
private
String
errolog
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getErrolog
()
{
return
errolog
;
}
public
void
setErrolog
(
String
errolog
)
{
this
.
errolog
=
errolog
;
}
}
\ No newline at end of file
src/main/java/cn/timer/api/controller/LoginController.java
View file @
8d9c11f9
...
@@ -13,6 +13,8 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -13,6 +13,8 @@ import javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpSession
;
import
javax.servlet.http.HttpSession
;
import
cn.timer.api.bean.qyzx.*
;
import
cn.timer.api.dao.qyzx.APPErroMapper
;
import
cn.timer.api.utils.redis.RedisUtil
;
import
cn.timer.api.utils.redis.RedisUtil
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -48,11 +50,6 @@ import cn.timer.api.bean.kqmk.KqglAssoOvertimeBasics;
...
@@ -48,11 +50,6 @@ import cn.timer.api.bean.kqmk.KqglAssoOvertimeBasics;
import
cn.timer.api.bean.kqmk.KqglAssoOvertimeRules
;
import
cn.timer.api.bean.kqmk.KqglAssoOvertimeRules
;
import
cn.timer.api.bean.kqmk.KqglAssoOvertimeRulesM
;
import
cn.timer.api.bean.kqmk.KqglAssoOvertimeRulesM
;
import
cn.timer.api.bean.qyxx.CmsContent
;
import
cn.timer.api.bean.qyxx.CmsContent
;
import
cn.timer.api.bean.qyzx.QyzxAdminColour
;
import
cn.timer.api.bean.qyzx.QyzxAdminMenu
;
import
cn.timer.api.bean.qyzx.QyzxEmpEntAsso
;
import
cn.timer.api.bean.qyzx.QyzxEmpLogin
;
import
cn.timer.api.bean.qyzx.QyzxEntInfoM
;
import
cn.timer.api.bean.xcgl.XcglAssoBszqsz
;
import
cn.timer.api.bean.xcgl.XcglAssoBszqsz
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.bean.zzgl.ZzglAuth
;
import
cn.timer.api.bean.zzgl.ZzglAuth
;
...
@@ -152,12 +149,14 @@ public class LoginController {
...
@@ -152,12 +149,14 @@ public class LoginController {
@Value
(
"${config-8timer.authentication-code}"
)
@Value
(
"${config-8timer.authentication-code}"
)
public
String
authentication_code
;
public
String
authentication_code
;
//2020/0517 redis缓存taoxy
//2020/0517 redis缓存taoxy
@Autowired
@Autowired
private
HttpSession
session
;
private
HttpSession
session
;
@Autowired
@Autowired
private
QyzxEmpLoginMapper
qyzxEmpLoginMapper
;
private
QyzxEmpLoginMapper
qyzxEmpLoginMapper
;
@Autowired
private
APPErroMapper
appErroMapper
;
@Autowired
@Autowired
private
QyzxEmpEntAssoMapper
qyzxEmpEntAssoMapper
;
private
QyzxEmpEntAssoMapper
qyzxEmpEntAssoMapper
;
...
@@ -272,10 +271,18 @@ public class LoginController {
...
@@ -272,10 +271,18 @@ public class LoginController {
return
ResultUtil
.
error
(
"发送验证码失败"
);
return
ResultUtil
.
error
(
"发送验证码失败"
);
}
}
}
}
@PostMapping
(
value
=
"/apperro"
)
@ApiOperation
(
value
=
"1.收集APP异常"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
1
)
@Log
(
title
=
"收集APP异常"
,
businessType
=
BusinessType
.
SEND_CODE
)
public
Result
<
String
>
sendCode
(
@RequestBody
String
errolog
)
{
AppExceptionErro
e
=
new
AppExceptionErro
();
e
.
setErrolog
(
errolog
);
appErroMapper
.
insert
(
e
);
return
ResultUtil
.
success
();
}
/**
/**
* 发送验证码
* 发送验证码
*
* @param entRegisterDto
* @param entRegisterDto
* @return
* @return
*/
*/
...
...
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
8d9c11f9
...
@@ -158,6 +158,11 @@ public class ClockInController {
...
@@ -158,6 +158,11 @@ public class ClockInController {
//putime: 根据日期 得到打卡所需的详细信息
//putime: 根据日期 得到打卡所需的详细信息
AttendanceCardListDto
attdate
=
MethodCall
(
qyid
,
userid
,
ClockInTool
.
paraseStringToDate
(
sStdIoTime
,
"yyyy-MM-dd HH:mm:SS"
));
AttendanceCardListDto
attdate
=
MethodCall
(
qyid
,
userid
,
ClockInTool
.
paraseStringToDate
(
sStdIoTime
,
"yyyy-MM-dd HH:mm:SS"
));
// = new SimpleDateFormat("yyyy-MM-dd").format(sStdIoTime);//转换打卡时间格式 年月日
// = new SimpleDateFormat("yyyy-MM-dd").format(sStdIoTime);//转换打卡时间格式 年月日
Long
puttimeTmp
=
0L
;
if
(
attdate
!=
null
&&
attdate
.
getAttsch
()!=
null
&&
attdate
.
getAttsch
().
get
(
0
)!=
null
)
puttimeTmp
=
attdate
.
getAttsch
().
get
(
0
).
getTime
();
else
puttimeTmp
=
System
.
currentTimeMillis
();
String
putime
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
attdate
.
getAttsch
().
get
(
0
).
getTime
());
//转换打卡时间格式 年月日
String
putime
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
attdate
.
getAttsch
().
get
(
0
).
getTime
());
//转换打卡时间格式 年月日
String
putimehhmm
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
attdate
.
getAttsch
().
get
(
0
).
getTime
());
//转换打卡时间格式 年月日
String
putimehhmm
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
).
format
(
attdate
.
getAttsch
().
get
(
0
).
getTime
());
//转换打卡时间格式 年月日
...
...
src/main/java/cn/timer/api/dao/qyzx/APPErroMapper.java
0 → 100644
View file @
8d9c11f9
package
cn
.
timer
.
api
.
dao
.
qyzx
;
import
cn.timer.api.bean.qyzx.AppExceptionErro
;
import
cn.timer.api.bean.qyzx.QyzxEmpLogin
;
import
cn.timer.api.dto.login.QysDto
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
/**
* 员工登录表
* @author Tang 2019-11-11
*/
@Repository
public
interface
APPErroMapper
extends
BaseMapper
<
AppExceptionErro
>
{
}
src/main/resources/application-pro.yml
View file @
8d9c11f9
...
@@ -116,7 +116,7 @@ spring:
...
@@ -116,7 +116,7 @@ spring:
port
:
465
port
:
465
class
:
javax.net.ssl.SSLSocketFactory
class
:
javax.net.ssl.SSLSocketFactory
redis
:
redis
:
database
:
5
# Redis数据库索引(默认为0),如果设置为1,那么存入的key-value都存放在select 1中
database
:
35
# Redis数据库索引(默认为0),如果设置为1,那么存入的key-value都存放在select 1中
host
:
r-wz9p8pve7uem63b10upd.redis.rds.aliyuncs.com
host
:
r-wz9p8pve7uem63b10upd.redis.rds.aliyuncs.com
port
:
6379
port
:
6379
password
:
(!0YouLingRcRedis0!)
password
:
(!0YouLingRcRedis0!)
...
@@ -261,31 +261,36 @@ wxgzh:
...
@@ -261,31 +261,36 @@ wxgzh:
encodingAesKey
:
'
chAbt69dLAtk8HH0oGMuZwHzK2SuhnxZI5Jbzc4nNzX'
encodingAesKey
:
'
chAbt69dLAtk8HH0oGMuZwHzK2SuhnxZI5Jbzc4nNzX'
insure
:
insure
:
#投保 appid
appid
:
'
1002209110212305335'
#投保 secret
secret
:
'
1ef7b79471be7f6b5489832c65109f81'
#投保上传文件
#投保上传文件
uploadUrl
:
'
https://portal.unistar-ins.com/service/Home/Index/fileUpload'
uploadUrl
:
'
https://portal.unistar-ins.com/service/Home/Index/fileUpload'
#投保立即出单
#投保立即出单
insuredUrl
:
'
https://portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
insuredUrl
:
'
https://portal.unistar-ins.com/mall/Home/Index/createQuotePolicy'
#投保请求出单
#投保请求出单
getPolicyUrl
:
'
https://portal.unistar-ins.com/issuing/Home/Index/index'
getPolicyUrl
:
'
https://portal.unistar-ins.com/issuing/Home/Index/index'
#查询保单信息
policyDetail
:
'
https://portal.unistar-ins.com/issuing/Home/Index/policy'
#申请保单
#申请保单
createQuote
:
'
https://portal.unistar-ins.com/mall/Home/Index/createQuote
Policy'
createQuote
:
'
https://portal.unistar-ins.com/mall/Home/Index/createQuote
'
#投保支付
#投保支付
toPayUrl
:
'
https://portal.unistar-ins.com/mall/Home/Pay/toPay'
toPayUrl
:
'
https://portal.unistar-ins.com/mall/Home/Pay/toPay'
#保全支付
#保全支付
batchToPayUrl
:
'
https://portal.unistar-ins.com/fuli/Home/ImportPay/set_import_pay'
batchToPayUrl
:
'
https://portal.unistar-ins.com/fuli/Home/ImportPay/set_import_pay'
#预付款出单接口
#查询保单信息
issue
:
'
https://portal.unistar-ins.com/cps/Labor/Policy/issue'
policyDetail
:
'
https://portal.unistar-ins.com/issuing/Home/Index/policy'
#保全appid
appidq
:
'
1000711000604326196'
#保全 secret
secretq
:
'
a2da17a2797c63dff9172df50af9da65'
#保全上传文件
#保全上传文件
uploadUrlq
:
'
https://portal.unistar-ins.com/fuli/Home/Index/file_upload'
uploadUrlq
:
'
https://portal.unistar-ins.com/fuli/Home/Index/file_upload'
#保全申请
#保全申请
batchUrl
:
'
https://portal.unistar-ins.com/fuli/Home/WelfareProduct/batch_declare'
batchUrl
:
'
https://portal.unistar-ins.com/fuli/Home/WelfareProduct/batch_declare'
#保全取消支付
#保全取消支付
cancelPayment
:
'
https://portal.unistar-ins.com/fuli/Home/OrderImport/order_import_set'
cancelPayment
:
'
https://portal.unistar-ins.com/fuli/Home/OrderImport/order_import_set'
#预付款提交接口
order_import_set
:
'
https://portal.unistar-ins.com/cps/Labor/OrderImport/order_import_set'
youling
:
youling
:
serverUrl
:
'
https://www.youlingrc.com'
serverUrl
:
'
https://www.youlingrc.com'
...
...
src/main/resources/mapping/qyzx/APPErroMapper.xml
0 → 100644
View file @
8d9c11f9
<?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.qyzx.APPErroMapper"
>
<resultMap
id=
"EntMap"
type=
"cn.timer.api.bean.qyzx.AppExceptionErro"
>
<result
column=
"id"
property=
"id"
/>
<result
column=
"errolog"
property=
"errolog"
/>
</resultMap>
</mapper>
\ No newline at end of file
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