fix
This commit is contained in:
parent
0aefc0cb95
commit
acbf0a6e95
|
|
@ -189,21 +189,21 @@ public class AdapayService {
|
|||
String email, String gender, String nickname) throws BaseAdaPayException {
|
||||
// 获取商户的appId
|
||||
String appId = AdapayConfig.getAppId(deptId);
|
||||
Map<String, Object> memberParams = new HashMap<>(7);
|
||||
Map<String, Object> memberParams = new HashMap<>();
|
||||
memberParams.put("member_id", memberId);
|
||||
memberParams.put("app_id", appId);
|
||||
memberParams.put("location", location);
|
||||
memberParams.put("email", email);
|
||||
memberParams.put("gender", gender);
|
||||
memberParams.put("nickname", nickname);
|
||||
// memberParams.put("location", location);
|
||||
// memberParams.put("email", email);
|
||||
// memberParams.put("gender", gender);
|
||||
// memberParams.put("nickname", nickname);
|
||||
memberParams.put("tel_no", telNo);
|
||||
memberParams.put("user_name", username);
|
||||
// 证件类型,仅支持:00-身份证
|
||||
memberParams.put("cert_type", "00");
|
||||
// 接口功能号
|
||||
memberParams.put("adapay_func_code", "members.realname");
|
||||
memberParams.put("adapay_func_code", deptId.toString());
|
||||
memberParams.put("cert_id", certId);
|
||||
return AdapayCommon.requestAdapay(memberParams);
|
||||
return AdapayCommon.requestAdapay(memberParams, deptId.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -294,7 +294,7 @@ public class AdapayService {
|
|||
paymentParams.put("expend", expend);
|
||||
PayReplyMapping.putCallback(payParam.getOrderNo(), callback);
|
||||
logger.debug("paymentParams: {}", paymentParams.toJSONString());
|
||||
return Payment.create(paymentParams);
|
||||
return Payment.create(paymentParams, String.valueOf(deptId));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -140,9 +140,9 @@
|
|||
|
||||
<select id="selectByIds" resultMap="GoodsResult">
|
||||
<include refid="selectGoods"/>
|
||||
goods_id IN
|
||||
<foreach collection="array" item="ids" open="(" separator="," close=")">
|
||||
#{goodsId}
|
||||
where goods_id IN
|
||||
<foreach collection="collection" item="ids" open="(" separator="," close=")">
|
||||
#{ids}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
@ -10,8 +10,8 @@ import org.springframework.context.annotation.Configuration;
|
|||
* @author clunt
|
||||
* 极光消息配置文件
|
||||
*/
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "jim")
|
||||
//@Configuration
|
||||
//@ConfigurationProperties(prefix = "jim")
|
||||
@Data
|
||||
public class JimConfig {
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
</update>
|
||||
|
||||
<insert id="insertOrderGoods" parameterType="com.ghy.order.domain.OrderGoods" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
keyProperty="orderGoodsId">
|
||||
INSERT INTO order_goods(
|
||||
<if test="orderId != null and orderId != 0">order_id,</if>
|
||||
<if test="goodsId != null and goodsId != 0">goods_id,</if>
|
||||
|
|
|
|||
|
|
@ -140,7 +140,8 @@
|
|||
WHERE `code` =#{orderMasterCode} LIMIT 1
|
||||
</select>
|
||||
|
||||
<select id="selectByCode" parameterType="String" resultType="com.ghy.order.domain.OrderMaster">
|
||||
<select id="selectByCode" parameterType="String" resultMap="OrderMasterResult
|
||||
">
|
||||
<include refid="selectOrderMaster"/>
|
||||
WHERE `code` = #{orderMasterCode}
|
||||
</select>
|
||||
|
|
|
|||
12
pom.xml
12
pom.xml
|
|
@ -311,11 +311,11 @@
|
|||
</dependency>
|
||||
|
||||
<!-- 聊天工具-->
|
||||
<dependency>
|
||||
<groupId>com.ghy</groupId>
|
||||
<artifactId>ghy-message</artifactId>
|
||||
<version>${ghy.version}</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.ghy</groupId>-->
|
||||
<!-- <artifactId>ghy-message</artifactId>-->
|
||||
<!-- <version>${ghy.version}</version>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- 通用工具-->
|
||||
<dependency>
|
||||
|
|
@ -345,7 +345,7 @@
|
|||
<module>ghy-common</module>
|
||||
<module>ghy-custom</module>
|
||||
<module>ghy-worker</module>
|
||||
<module>ghy-message</module>
|
||||
<!-- <module>ghy-message</module>-->
|
||||
</modules>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue