用户条数
parent
5eec9481ce
commit
98f46cec54
|
|
@ -11,6 +11,7 @@ import com.alipay.api.DefaultAlipayClient;
|
|||
import com.alipay.api.domain.AlipayTradeCreateModel;
|
||||
import com.alipay.api.request.AlipayTradeCreateRequest;
|
||||
import com.alipay.api.response.AlipayTradeCreateResponse;
|
||||
import com.ruoyi.app.domain.AppOrder;
|
||||
import com.ruoyi.app.domain.dto.PayConfig;
|
||||
import com.ruoyi.app.domain.vo.AppUserInfoVo;
|
||||
import com.ruoyi.app.domain.vo.AppUserVo;
|
||||
|
|
@ -59,7 +60,11 @@ public class AppUserController extends BaseController
|
|||
{
|
||||
startPage();
|
||||
List<AppUserVo> list = appUserService.selectAppUserList(appUser);
|
||||
return getDataTable(list);
|
||||
Integer count = appUserService.selectAppuserCount();
|
||||
TableDataInfo dataTable = getDataTable(list);
|
||||
dataTable.setTotal(count);
|
||||
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
@GetMapping("/statistics")
|
||||
|
|
|
|||
|
|
@ -75,4 +75,6 @@ public interface AppUserMapper
|
|||
AppUser selectAppUserByEmail(String email);
|
||||
|
||||
int vipById(@Param("id")Long id);
|
||||
|
||||
Integer selectAppuserCount();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,4 +74,7 @@ public interface IAppUserService
|
|||
AppUser selectAppUserByEmail(String email);
|
||||
|
||||
int vipById(Long id);
|
||||
|
||||
Integer selectAppuserCount();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -359,4 +359,10 @@ public class AppUserServiceImpl implements IAppUserService {
|
|||
public int vipById(Long id) {
|
||||
return appUserMapper.vipById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer selectAppuserCount() {
|
||||
|
||||
return appUserMapper.selectAppuserCount();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -436,4 +436,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<update id="vipById">
|
||||
</update>
|
||||
|
||||
<select id="selectAppuserCount" resultType="java.lang.Integer">
|
||||
select count(*) from app_user
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue