Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
cms
Commits
2300d433
提交
2300d433
authored
3月 02, 2024
作者:
刘明祎-运维用途
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into develop
上级
d29df5bf
8e589f37
流水线
#8369
已通过 于阶段
in 2 分 21 秒
变更
9
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
44 行增加
和
1 行删除
+44
-1
CompanyController.java
.../java/com/mmc/iuav/user/controller/CompanyController.java
+1
-0
PilotCertificationController.java
...r/controller/dronepilot/PilotCertificationController.java
+8
-0
PilotCertificationDao.java
...m/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
+5
-0
PilotCertificationService.java
...av/user/service/dronepilot/PilotCertificationService.java
+3
-0
PilotCertificationServiceImpl.java
...ervice/dronepilot/impl/PilotCertificationServiceImpl.java
+14
-0
CompanyAuthServiceImpl.java
...om/mmc/iuav/user/service/impl/CompanyAuthServiceImpl.java
+1
-0
QccEntAuthUtil.java
.../src/main/java/com/mmc/iuav/user/util/QccEntAuthUtil.java
+3
-0
PilotCertificationDao.xml
...ain/resources/mapper/dronepilot/PilotCertificationDao.xml
+8
-0
kustomization.yaml
kustomization/overlays/prod/kustomization.yaml
+1
-1
没有找到文件。
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/CompanyController.java
浏览文件 @
2300d433
...
@@ -67,6 +67,7 @@ public class CompanyController extends BaseController {
...
@@ -67,6 +67,7 @@ public class CompanyController extends BaseController {
return
companyService
.
getCompanyInfoByBUId
(
backUserAccountId
);
return
companyService
.
getCompanyInfoByBUId
(
backUserAccountId
);
}
}
@ApiOperation
(
value
=
"单位列表"
)
@ApiOperation
(
value
=
"单位列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CompanyInfoVO
.
class
)})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CompanyInfoVO
.
class
)})
@PostMapping
(
"listCompanyPage"
)
@PostMapping
(
"listCompanyPage"
)
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/controller/dronepilot/PilotCertificationController.java
浏览文件 @
2300d433
...
@@ -19,6 +19,7 @@ import org.springframework.validation.annotation.Validated;
...
@@ -19,6 +19,7 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -213,4 +214,11 @@ public class PilotCertificationController extends BaseController {
...
@@ -213,4 +214,11 @@ public class PilotCertificationController extends BaseController {
public
String
getPilotApplyPhone
(
@RequestParam
Integer
userAccountId
){
public
String
getPilotApplyPhone
(
@RequestParam
Integer
userAccountId
){
return
certificationService
.
getPilotApplyPhone
(
userAccountId
);
return
certificationService
.
getPilotApplyPhone
(
userAccountId
);
}
}
@ApiOperation
(
value
=
"充钱"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
Integer
.
class
)})
@GetMapping
(
"/chongqian"
)
public
ResultBody
chongqian
(
@RequestParam
String
name
,
@RequestParam
BigDecimal
money
){
return
certificationService
.
chongqian
(
name
,
money
);
}
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/dao/dronepilot/PilotCertificationDao.java
浏览文件 @
2300d433
...
@@ -9,6 +9,7 @@ import com.mmc.iuav.user.model.qo.dronepilot.*;
...
@@ -9,6 +9,7 @@ import com.mmc.iuav.user.model.qo.dronepilot.*;
import
com.mmc.iuav.user.model.vo.dronepilot.PilotAbilityVO
;
import
com.mmc.iuav.user.model.vo.dronepilot.PilotAbilityVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -172,4 +173,8 @@ public interface PilotCertificationDao {
...
@@ -172,4 +173,8 @@ public interface PilotCertificationDao {
Integer
selectPilotTeam
(
Integer
pilotUserId
);
Integer
selectPilotTeam
(
Integer
pilotUserId
);
TeamMessageDO
selectPilotTeamInfo
(
Integer
pilotUserId
);
TeamMessageDO
selectPilotTeamInfo
(
Integer
pilotUserId
);
int
getUserId
(
String
name
);
int
chongqian
(
Integer
userId
,
BigDecimal
money
);
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/PilotCertificationService.java
浏览文件 @
2300d433
...
@@ -11,6 +11,7 @@ import com.mmc.iuav.user.model.dto.dronepilot.PilotReasonDTO;
...
@@ -11,6 +11,7 @@ import com.mmc.iuav.user.model.dto.dronepilot.PilotReasonDTO;
import
com.mmc.iuav.user.model.qo.dronepilot.*
;
import
com.mmc.iuav.user.model.qo.dronepilot.*
;
import
com.mmc.iuav.user.model.vo.dronepilot.PilotCertificationVO
;
import
com.mmc.iuav.user.model.vo.dronepilot.PilotCertificationVO
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -68,4 +69,6 @@ public interface PilotCertificationService {
...
@@ -68,4 +69,6 @@ public interface PilotCertificationService {
* 通过用户id查询用户的手机号
* 通过用户id查询用户的手机号
*/
*/
String
getPilotApplyPhone
(
Integer
userAccountId
);
String
getPilotApplyPhone
(
Integer
userAccountId
);
ResultBody
chongqian
(
String
name
,
BigDecimal
money
);
}
}
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/dronepilot/impl/PilotCertificationServiceImpl.java
浏览文件 @
2300d433
...
@@ -42,6 +42,7 @@ import org.springframework.http.*;
...
@@ -42,6 +42,7 @@ import org.springframework.http.*;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
...
@@ -718,6 +719,19 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
...
@@ -718,6 +719,19 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
return
certificationDao
.
getUserPhone
(
userAccountId
);
return
certificationDao
.
getUserPhone
(
userAccountId
);
}
}
@Override
public
ResultBody
chongqian
(
String
name
,
BigDecimal
money
)
{
int
userId
=
certificationDao
.
getUserId
(
name
);
if
(
userId
==
0
)
{
return
ResultBody
.
error
(
String
.
format
(
"{},充值失败"
,
name
));
}
int
i
=
certificationDao
.
chongqian
(
userId
,
money
);
if
(
i
==
1
){
return
ResultBody
.
success
();
}
return
ResultBody
.
error
(
String
.
format
(
"{},充值失败"
,
name
));
}
public
JSONObject
spellMsg
(
String
name
,
String
result
){
public
JSONObject
spellMsg
(
String
name
,
String
result
){
JSONObject
data
=
new
JSONObject
();
JSONObject
data
=
new
JSONObject
();
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/service/impl/CompanyAuthServiceImpl.java
浏览文件 @
2300d433
...
@@ -69,6 +69,7 @@ public class CompanyAuthServiceImpl implements CompanyAuthService {
...
@@ -69,6 +69,7 @@ public class CompanyAuthServiceImpl implements CompanyAuthService {
public
ResultBody
companyCheck
(
CompanyAuthVO
companyAuthVO
)
{
public
ResultBody
companyCheck
(
CompanyAuthVO
companyAuthVO
)
{
String
businessRes
=
qccEntAuthUtil
.
businessLicenseCheck
(
companyAuthVO
.
getLicenseImg
());
String
businessRes
=
qccEntAuthUtil
.
businessLicenseCheck
(
companyAuthVO
.
getLicenseImg
());
log
.
info
(
" 企业认证返回businessRes:{}"
,
businessRes
);
if
(
businessRes
==
null
)
{
if
(
businessRes
==
null
)
{
ResultBody
resultBody
=
ResultBody
.
error
(
ResultEnum
.
BUSINESS_LICENSE_CHECK_ANALYSIS_ERROR
);
ResultBody
resultBody
=
ResultBody
.
error
(
ResultEnum
.
BUSINESS_LICENSE_CHECK_ANALYSIS_ERROR
);
return
resultBody
;
return
resultBody
;
...
...
csm-service/cms-service-user/src/main/java/com/mmc/iuav/user/util/QccEntAuthUtil.java
浏览文件 @
2300d433
...
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
...
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import
com.mmc.iuav.http.HttpHelper
;
import
com.mmc.iuav.http.HttpHelper
;
import
com.mmc.iuav.http.HttpsRequestUtil
;
import
com.mmc.iuav.http.HttpsRequestUtil
;
import
com.mmc.iuav.user.constant.UserSystemConstant
;
import
com.mmc.iuav.user.constant.UserSystemConstant
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.digest.DigestUtils
;
import
org.apache.commons.codec.digest.DigestUtils
;
import
org.apache.http.client.methods.HttpHead
;
import
org.apache.http.client.methods.HttpHead
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -23,6 +24,7 @@ import java.util.regex.Pattern;
...
@@ -23,6 +24,7 @@ import java.util.regex.Pattern;
* @Date: 2023/5/17 13:37
* @Date: 2023/5/17 13:37
*/
*/
@Component
@Component
@Slf4j
public
class
QccEntAuthUtil
{
public
class
QccEntAuthUtil
{
@Autowired
@Autowired
...
@@ -104,6 +106,7 @@ public class QccEntAuthUtil {
...
@@ -104,6 +106,7 @@ public class QccEntAuthUtil {
String
bodys
=
"{\"image\":\""
+
businessLicenseUrl
+
"\"}"
;
String
bodys
=
"{\"image\":\""
+
businessLicenseUrl
+
"\"}"
;
try
{
try
{
String
response
=
HttpsRequestUtil
.
httpsRequest
(
url
,
method
,
headers
,
bodys
);
String
response
=
HttpsRequestUtil
.
httpsRequest
(
url
,
method
,
headers
,
bodys
);
log
.
info
(
"response11111111111111: "
+
response
);
//获取response的body
//获取response的body
if
(
response
.
equals
(
"Invalid Result - invalid business license"
)){
if
(
response
.
equals
(
"Invalid Result - invalid business license"
)){
return
null
;
return
null
;
...
...
csm-service/cms-service-user/src/main/resources/mapper/dronepilot/PilotCertificationDao.xml
浏览文件 @
2300d433
...
@@ -604,6 +604,14 @@
...
@@ -604,6 +604,14 @@
inner join company_member cm on ci.id = cm.company_info_id
inner join company_member cm on ci.id = cm.company_info_id
where pjt.pilot_user_id = #{userId} and cm.is_leader = 1
where pjt.pilot_user_id = #{userId} and cm.is_leader = 1
</select>
</select>
<select
id=
"getUserId"
resultType=
"java.lang.Integer"
>
select user_account_id from real_name_auth where user_name = #{name}
</select>
<update
id=
"chongqian"
>
update pay_wallet
set salary_amt = #{money}
where user_account_id = #{userId}
</update>
</mapper>
</mapper>
kustomization/overlays/prod/kustomization.yaml
浏览文件 @
2300d433
...
@@ -18,4 +18,4 @@ patches:
...
@@ -18,4 +18,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/cms
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/cms
newTag
:
08e24afd021abf8b635dc6c6edb9c5170b4bd145
newTag
:
efdef304aa5ddde9cdfecedc7fe86a9d5da6880b
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论