添加汇付支付
This commit is contained in:
@@ -10,8 +10,6 @@
|
|||||||
|
|
||||||
<artifactId>admin</artifactId>
|
<artifactId>admin</artifactId>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>8</maven.compiler.source>
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
<maven.compiler.target>8</maven.compiler.target>
|
<maven.compiler.target>8</maven.compiler.target>
|
||||||
|
|||||||
@@ -139,10 +139,13 @@ public class MerchantChannelStatusController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping(value = "/manualMerchantIncom")
|
@GetMapping(value = "/manualMerchantIncom")
|
||||||
public RespBody manualMerchantIncome(@RequestParam("userId") String userId, @RequestParam("channelId") String channelId,
|
public RespBody manualMerchantIncome(@RequestParam("userId") String userId, @RequestParam("channelId") String channelId,
|
||||||
@RequestParam("type")String type, @RequestParam("errMsg")String errMsg){
|
@RequestParam("type")String type, @RequestParam("errMsg")String errMsg,
|
||||||
|
@RequestParam("wxLiteAppId") String wxLiteAppId,@RequestParam("wxPubAppId") String wxPubAppId,
|
||||||
|
@RequestParam("wxPubPath") String wxPubPath
|
||||||
|
){
|
||||||
if ("1".equals(type)) {
|
if ("1".equals(type)) {
|
||||||
//进件
|
//进件
|
||||||
merchantService.merchantAudit(userId, channelId);
|
merchantService.merchantAudit(userId, channelId,wxLiteAppId,wxPubAppId,wxPubPath);
|
||||||
}else if ("2".equals(type)){
|
}else if ("2".equals(type)){
|
||||||
//驳回
|
//驳回
|
||||||
merchantService.rejectAudit(userId,errMsg);
|
merchantService.rejectAudit(userId,errMsg);
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import com.chaozhanggui.merchant.service.HfMerService;
|
import com.chaozhanggui.merchant.service.HfMerService;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@@ -61,4 +61,19 @@ public class NotifyController {
|
|||||||
hfMerService.merchantResident(userId,null);
|
hfMerService.merchantResident(userId,null);
|
||||||
return "SUCCESS";
|
return "SUCCESS";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("createStore")
|
||||||
|
public String createStore(@RequestParam("userId") String userId){
|
||||||
|
hfMerService.createStore(userId);
|
||||||
|
return "SUCCESS";
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("modifySettle")
|
||||||
|
public String modifySettle(@RequestParam("userId") String userId){
|
||||||
|
hfMerService.modifySettle(userId);
|
||||||
|
return "SUCCESS";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ public class LoginInterceptor implements HandlerInterceptor {
|
|||||||
if("/admin/notifyCallback/feedCallBack".equals(requestURI)||"/admin/notifyCallback/merchantResident".equals(requestURI)
|
if("/admin/notifyCallback/feedCallBack".equals(requestURI)||"/admin/notifyCallback/merchantResident".equals(requestURI)
|
||||||
||"/admin/notifyCallback/testFeedCallBack".equals(requestURI)
|
||"/admin/notifyCallback/testFeedCallBack".equals(requestURI)
|
||||||
||"/admin/notifyCallback/authUser".equals(requestURI)
|
||"/admin/notifyCallback/authUser".equals(requestURI)
|
||||||
|
||"/admin/notifyCallback/createStore".equals(requestURI)
|
||||||
|
||"/admin/notifyCallback/modifySettle".equals(requestURI)
|
||||||
){
|
){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ public interface TbPlussMerchantHfInfoMapper {
|
|||||||
|
|
||||||
int updateByPrimaryKey(TbPlussMerchantHfInfo record);
|
int updateByPrimaryKey(TbPlussMerchantHfInfo record);
|
||||||
|
|
||||||
|
|
||||||
TbPlussMerchantHfInfo selectByMerchantCodeAndSubApiKey(@Param("merchantCode") String merchantCode, @Param("liveApiKey") String liveApiKey);
|
TbPlussMerchantHfInfo selectByMerchantCodeAndSubApiKey(@Param("merchantCode") String merchantCode, @Param("liveApiKey") String liveApiKey);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ public class TbPlussMerchantHfInfo implements Serializable {
|
|||||||
|
|
||||||
private String privKey;
|
private String privKey;
|
||||||
|
|
||||||
|
private String wxInfo;
|
||||||
|
|
||||||
private String loginPwd;
|
private String loginPwd;
|
||||||
|
|
||||||
private Date createTime;
|
private Date createTime;
|
||||||
@@ -112,6 +114,14 @@ public class TbPlussMerchantHfInfo implements Serializable {
|
|||||||
this.privKey = privKey == null ? null : privKey.trim();
|
this.privKey = privKey == null ? null : privKey.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getWxInfo() {
|
||||||
|
return wxInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWxInfo(String wxInfo) {
|
||||||
|
this.wxInfo = wxInfo == null ? null : wxInfo.trim();
|
||||||
|
}
|
||||||
|
|
||||||
public String getLoginPwd() {
|
public String getLoginPwd() {
|
||||||
return loginPwd;
|
return loginPwd;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,13 +12,14 @@
|
|||||||
<result column="app_name" jdbcType="VARCHAR" property="appName" />
|
<result column="app_name" jdbcType="VARCHAR" property="appName" />
|
||||||
<result column="puc_key" jdbcType="VARCHAR" property="pucKey" />
|
<result column="puc_key" jdbcType="VARCHAR" property="pucKey" />
|
||||||
<result column="priv_key" jdbcType="VARCHAR" property="privKey" />
|
<result column="priv_key" jdbcType="VARCHAR" property="privKey" />
|
||||||
|
<result column="wx_info" jdbcType="VARCHAR" property="wxInfo" />
|
||||||
<result column="login_pwd" jdbcType="VARCHAR" property="loginPwd" />
|
<result column="login_pwd" jdbcType="VARCHAR" property="loginPwd" />
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, merchant_code, status, test_api_key, live_api_key, app_id_list, app_id, app_name,
|
id, merchant_code, status, test_api_key, live_api_key, app_id_list, app_id, app_name,
|
||||||
puc_key, priv_key, login_pwd, create_time, update_time
|
puc_key, priv_key, wx_info, login_pwd, create_time, update_time
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
@@ -28,8 +29,6 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<select id="selectByMerchantCodeAndSubApiKey" resultMap="BaseResultMap">
|
<select id="selectByMerchantCodeAndSubApiKey" resultMap="BaseResultMap">
|
||||||
select * from tb_pluss_merchant_hf_info where merchant_code=#{merchantCode} and live_api_key=#{liveApiKey}
|
select * from tb_pluss_merchant_hf_info where merchant_code=#{merchantCode} and live_api_key=#{liveApiKey}
|
||||||
</select>
|
</select>
|
||||||
@@ -38,7 +37,6 @@
|
|||||||
select * from tb_pluss_merchant_hf_info where merchant_code=#{merchantCode} order by id desc limit 1
|
select * from tb_pluss_merchant_hf_info where merchant_code=#{merchantCode} order by id desc limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||||
delete from tb_pluss_merchant_hf_info
|
delete from tb_pluss_merchant_hf_info
|
||||||
where id = #{id,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
||||||
@@ -47,13 +45,13 @@
|
|||||||
insert into tb_pluss_merchant_hf_info (id, merchant_code, status,
|
insert into tb_pluss_merchant_hf_info (id, merchant_code, status,
|
||||||
test_api_key, live_api_key, app_id_list,
|
test_api_key, live_api_key, app_id_list,
|
||||||
app_id, app_name, puc_key,
|
app_id, app_name, puc_key,
|
||||||
priv_key, login_pwd, create_time,
|
priv_key, wx_info, login_pwd,
|
||||||
update_time)
|
create_time, update_time)
|
||||||
values (#{id,jdbcType=INTEGER}, #{merchantCode,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
|
values (#{id,jdbcType=INTEGER}, #{merchantCode,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
|
||||||
#{testApiKey,jdbcType=VARCHAR}, #{liveApiKey,jdbcType=VARCHAR}, #{appIdList,jdbcType=VARCHAR},
|
#{testApiKey,jdbcType=VARCHAR}, #{liveApiKey,jdbcType=VARCHAR}, #{appIdList,jdbcType=VARCHAR},
|
||||||
#{appId,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR}, #{pucKey,jdbcType=VARCHAR},
|
#{appId,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR}, #{pucKey,jdbcType=VARCHAR},
|
||||||
#{privKey,jdbcType=VARCHAR}, #{loginPwd,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
#{privKey,jdbcType=VARCHAR}, #{wxInfo,jdbcType=VARCHAR}, #{loginPwd,jdbcType=VARCHAR},
|
||||||
#{updateTime,jdbcType=TIMESTAMP})
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantHfInfo">
|
<insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantHfInfo">
|
||||||
insert into tb_pluss_merchant_hf_info
|
insert into tb_pluss_merchant_hf_info
|
||||||
@@ -88,6 +86,9 @@
|
|||||||
<if test="privKey != null">
|
<if test="privKey != null">
|
||||||
priv_key,
|
priv_key,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="wxInfo != null">
|
||||||
|
wx_info,
|
||||||
|
</if>
|
||||||
<if test="loginPwd != null">
|
<if test="loginPwd != null">
|
||||||
login_pwd,
|
login_pwd,
|
||||||
</if>
|
</if>
|
||||||
@@ -129,6 +130,9 @@
|
|||||||
<if test="privKey != null">
|
<if test="privKey != null">
|
||||||
#{privKey,jdbcType=VARCHAR},
|
#{privKey,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="wxInfo != null">
|
||||||
|
#{wxInfo,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="loginPwd != null">
|
<if test="loginPwd != null">
|
||||||
#{loginPwd,jdbcType=VARCHAR},
|
#{loginPwd,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -170,6 +174,9 @@
|
|||||||
<if test="privKey != null">
|
<if test="privKey != null">
|
||||||
priv_key = #{privKey,jdbcType=VARCHAR},
|
priv_key = #{privKey,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="wxInfo != null">
|
||||||
|
wx_info = #{wxInfo,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="loginPwd != null">
|
<if test="loginPwd != null">
|
||||||
login_pwd = #{loginPwd,jdbcType=VARCHAR},
|
login_pwd = #{loginPwd,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
@@ -193,6 +200,7 @@
|
|||||||
app_name = #{appName,jdbcType=VARCHAR},
|
app_name = #{appName,jdbcType=VARCHAR},
|
||||||
puc_key = #{pucKey,jdbcType=VARCHAR},
|
puc_key = #{pucKey,jdbcType=VARCHAR},
|
||||||
priv_key = #{privKey,jdbcType=VARCHAR},
|
priv_key = #{privKey,jdbcType=VARCHAR},
|
||||||
|
wx_info = #{wxInfo,jdbcType=VARCHAR},
|
||||||
login_pwd = #{loginPwd,jdbcType=VARCHAR},
|
login_pwd = #{loginPwd,jdbcType=VARCHAR},
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||||
|
|||||||
@@ -103,6 +103,22 @@
|
|||||||
<scope>system</scope>
|
<scope>system</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.aliyun</groupId>
|
||||||
|
<artifactId>dysmsapi20170525</artifactId>
|
||||||
|
<version>2.0.21</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.aliyun</groupId>
|
||||||
|
<artifactId>aliyun-java-sdk-geoip</artifactId>
|
||||||
|
<version>1.0.3</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -48,7 +48,7 @@ public class MerchantService {
|
|||||||
* @param userId
|
* @param userId
|
||||||
* @param channelId
|
* @param channelId
|
||||||
*/
|
*/
|
||||||
public void merchantAudit(String userId, String channelId){
|
public void merchantAudit(String userId, String channelId,String wxLiteAppId,String wxPubAppId,String wxPubPath){
|
||||||
MsgException.checkBlank(channelId, "请选择进件通道");
|
MsgException.checkBlank(channelId, "请选择进件通道");
|
||||||
MsgException.checkNull(userId,"请选择用户");
|
MsgException.checkNull(userId,"请选择用户");
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ public class MerchantService {
|
|||||||
ysAuditServiceV3.merchantAuditV3(userId,false, Integer.valueOf(channelId));
|
ysAuditServiceV3.merchantAuditV3(userId,false, Integer.valueOf(channelId));
|
||||||
break;
|
break;
|
||||||
case "7":
|
case "7":
|
||||||
hfMerService.feed(baseInfo,channelStatus);
|
hfMerService.feed(baseInfo,channelStatus,wxLiteAppId,wxPubAppId,wxPubPath);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
MsgException.throwException("未知的进件通道");
|
MsgException.throwException("未知的进件通道");
|
||||||
|
|||||||
@@ -104,6 +104,7 @@
|
|||||||
<artifactId>springfox-swagger-ui</artifactId>
|
<artifactId>springfox-swagger-ui</artifactId>
|
||||||
<version>2.7.0</version>
|
<version>2.7.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
|||||||
Reference in New Issue
Block a user