@@ -38,6 +38,16 @@ public class ThirdPartyApiController extends BaseController{ | |||||
return R.ok(thirdPartyApiService.pageThirdPartyApi(thirdPartyApi, pageNum, pageSize)); | return R.ok(thirdPartyApiService.pageThirdPartyApi(thirdPartyApi, pageNum, pageSize)); | ||||
} | } | ||||
@ApiVersion(group = SwaggerConstant.V_1_0_0) | |||||
@ApiOperation("单个查询秘钥") | |||||
@GetMapping("/getByServiceId") | |||||
public R<WxThirdPartyApi> getThirdPartyApiByServiceId(Long serviceId) { | |||||
if (serviceId == null) { | |||||
throw new BizException(ErrorCode.SYS_PARAMETER_NOT_NULL); | |||||
} | |||||
return R.ok(thirdPartyApiService.getThirdPartyApiByServiceId(serviceId)); | |||||
} | |||||
@ApiVersion(group = SwaggerConstant.V_1_0_0) | @ApiVersion(group = SwaggerConstant.V_1_0_0) | ||||
@ApiOperation("单个查询秘钥") | @ApiOperation("单个查询秘钥") | ||||
@GetMapping("/get") | @GetMapping("/get") | ||||
@@ -21,61 +21,47 @@ import java.util.Date; | |||||
@Data | @Data | ||||
public class ServiceInfo extends BaseEntity{ | public class ServiceInfo extends BaseEntity{ | ||||
/** | |||||
* 接入商id,唯一标识 | |||||
*/ | |||||
@TableField("id") | |||||
private Long id; | private Long id; | ||||
/** | /** | ||||
* 创建时间 | * 创建时间 | ||||
*/ | */ | ||||
@TableField("create_time") | |||||
private Date createTime; | private Date createTime; | ||||
/** | /** | ||||
* 更新时间 | * 更新时间 | ||||
*/ | */ | ||||
@TableField("update_time") | |||||
private Date updateTime; | private Date updateTime; | ||||
/** | /** | ||||
* 客户名称 | * 客户名称 | ||||
*/ | */ | ||||
@TableField("name") | |||||
private String name; | private String name; | ||||
/** | /** | ||||
* 所在地址 | * 所在地址 | ||||
*/ | */ | ||||
@TableField("address") | |||||
private String address; | private String address; | ||||
/** | /** | ||||
* 客户唯一凭证 | * 客户唯一凭证 | ||||
*/ | */ | ||||
@TableField("code") | |||||
private String code; | private String code; | ||||
/** | /** | ||||
* 接入方式(1:api接入,2:私有化接入) | * 接入方式(1:api接入,2:私有化接入) | ||||
*/ | */ | ||||
@TableField("type") | |||||
private Integer type; | private Integer type; | ||||
/** | /** | ||||
* 状态(0:正常,1:锁定) | * 状态(0:正常,1:锁定) | ||||
*/ | */ | ||||
@TableField("status") | |||||
private Integer status; | private Integer status; | ||||
/** | /** | ||||
* 删除状态(0:未删除,1:已删除) | * 删除状态(0:未删除,1:已删除) | ||||
*/ | */ | ||||
@TableField("del_flag") | |||||
private Integer delFlag; | private Integer delFlag; | ||||
/** | /** | ||||
* 登录用户 | * 登录用户 | ||||
*/ | */ | ||||
@TableField("mall_user_info") | |||||
private Long mallUserInfo; | private Long mallUserInfo; | ||||
/** | /** | ||||
* 登录用户 | * 登录用户 | ||||
*/ | */ | ||||
@TableField("remaining_times") | |||||
private Long remainingTimes; | private Long remainingTimes; | ||||
} | } |
@@ -2,6 +2,19 @@ | |||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
<mapper namespace="com.iformall.mapper.ServiceInfoMapper"> | <mapper namespace="com.iformall.mapper.ServiceInfoMapper"> | ||||
<resultMap id="BaseResultMap" type="com.iformall.domain.po.sm.ServiceInfo"> | |||||
<id column="id" jdbcType="BIGINT" property="id"/> | |||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> | |||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/> | |||||
<result column="name" jdbcType="VARCHAR" property="name"/> | |||||
<result column="address" jdbcType="VARCHAR" property="address" /> | |||||
<result column="code" jdbcType="VARCHAR" property="code"/> | |||||
<result column="type" jdbcType="INTEGER" property="type"/> | |||||
<result column="status" jdbcType="INTEGER" property="status"/> | |||||
<result column="del_flag" jdbcType="INTEGER" property="delFlag"/> | |||||
<result column="mall_user_info" jdbcType="BIGINT" property="mallUserInfo"/> | |||||
<result column="remaining_times" jdbcType="INTEGER" property="remaining_times"/> | |||||
</resultMap> | |||||
<sql id="allColumns"> | <sql id="allColumns"> | ||||
@@ -33,7 +46,7 @@ | |||||
</if> | </if> | ||||
</sql> | </sql> | ||||
<select id="listServiceInfo" resultType="com.iformall.domain.po.sm.ServiceInfo"> | |||||
<select id="listServiceInfo" parameterType="com.iformall.domain.po.sm.ServiceInfo" resultMap="BaseResultMap"> | |||||
SELECT | SELECT | ||||
<include refid="allColumns"/> | <include refid="allColumns"/> | ||||
FROM service_info | FROM service_info | ||||