修改接口

This commit is contained in:
huangdeliang 2020-12-07 21:32:34 +08:00
parent 385959ba6f
commit 561dfb6364
3 changed files with 17 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import com.stdiet.custom.domain.SysWxUserLog;
import com.stdiet.custom.page.WxServeInfo;
import com.stdiet.custom.service.ISysOrderService;
import com.stdiet.custom.service.ISysWxUserInfoService;
import org.aspectj.weaver.loadtime.Aj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
@ -141,4 +142,17 @@ public class SysWxUserInfoController extends BaseController {
return AjaxResult.success(wxServeInfo);
}
@GetMapping("/wx/user/list")
public AjaxResult userList(SysWxUserInfo sysWxUserInfo) {
startPage();
List<SysWxUserInfo> list = sysWxUserInfoService.selectSysWxUserInfoList(sysWxUserInfo);
for (SysWxUserInfo userInfo : list) {
if (StringUtils.isNotEmpty(userInfo.getPhone())) {
userInfo.setPhone(userInfo.getPhone().replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2"));
}
}
return AjaxResult.success(list);
}
}

View File

@ -108,6 +108,7 @@ public class SysWxUserLogController extends BaseController {
@GetMapping(value = "/wx/logs/list")
public AjaxResult getLogs(SysWxUserLog sysWxUserLog) {
System.out.println(sysWxUserLog.toString());
List<WxLogInfo> list = sysWxUserLogService.selectWxLogInfoList(sysWxUserLog);
return AjaxResult.success(list);
}

View File

@ -49,7 +49,7 @@
<select id="selectSysWxUserLogList" parameterType="SysWxUserLog" resultMap="SysWxUserLogResult">
<include refid="selectSysWxUserLogVo"/>
<where>
<if test="appid != null and appid != ''"> and appid = #{appid}</if>
<if test="openid != null and openid != ''"> and openid = #{openid}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
</where>
order by create_time desc
@ -58,7 +58,7 @@
<select id="selectWxLogInfoList" parameterType="SysWxUserLog" resultMap="WxLogInfo">
<include refid="selectSysWxUserLogVo"/>
<where>
<if test="appid != null and appid != ''"> and appid = #{appid}</if>
<if test="openid != null and openid != ''"> and openid = #{openid}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
</where>
order by create_time asc