| | |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperation("鍒嗛〉鏌ヨ") |
| | | public AjaxResult accountListPage(Page page) { |
| | | return AjaxResult.success(accountService.page(page)); |
| | | public AjaxResult accountListPage(Page page,Account account) { |
| | | return AjaxResult.success(accountService.accountListPage(page,account)); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiOperation("鍒嗛〉鏌ヨ") |
| | | public AjaxResult accountListPage(Page page) { |
| | | return AjaxResult.success(accountReconciliationService.page(page)); |
| | | public AjaxResult accountReconciliationListPage(Page page,AccountReconciliation accountReconciliation) { |
| | | return AjaxResult.success(accountReconciliationService.accountReconciliationListPage(page, accountReconciliation)); |
| | | } |
| | | |
| | | |
| | |
| | | @Mapper |
| | | public interface AccountMapper extends BaseMapper<Account> { |
| | | |
| | | IPage<Account> accountListPage(Page page, @Param("c") Account account); |
| | | } |
| | |
| | | package com.ruoyi.account.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.account.pojo.Account; |
| | | import com.ruoyi.account.pojo.AccountReconciliation; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | @Mapper |
| | | public interface AccountReconciliationMapper extends BaseMapper<AccountReconciliation> { |
| | | |
| | | IPage<AccountReconciliation> accountReconciliationListPage(Page page, @Param("c") AccountReconciliation accountReconciliation); |
| | | } |
| | |
| | | package com.ruoyi.account.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.account.pojo.Account; |
| | | import com.ruoyi.account.pojo.AccountReconciliation; |
| | |
| | | public interface AccountReconciliationService extends IService<AccountReconciliation> { |
| | | |
| | | |
| | | IPage<AccountReconciliation> accountReconciliationListPage(Page page, AccountReconciliation accountReconciliation); |
| | | } |
| | |
| | | public interface AccountService extends IService<Account> { |
| | | |
| | | |
| | | IPage<Account> accountListPage(Page page, Account account); |
| | | } |
| | |
| | | package com.ruoyi.account.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.account.mapper.AccountMapper; |
| | | import com.ruoyi.account.mapper.AccountReconciliationMapper; |
| | |
| | | @Service |
| | | public class AccountReconciliationServiceImpl extends ServiceImpl<AccountReconciliationMapper, AccountReconciliation> implements AccountReconciliationService { |
| | | |
| | | private AccountReconciliationMapper accountReconciliationMapper; |
| | | |
| | | |
| | | |
| | | @Override |
| | | public IPage<AccountReconciliation> accountReconciliationListPage(Page page, AccountReconciliation accountReconciliation) { |
| | | return accountReconciliationMapper.accountReconciliationListPage(page,accountReconciliation); |
| | | } |
| | | } |
| | |
| | | @Service |
| | | public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements AccountService { |
| | | |
| | | private AccountMapper accountMapper; |
| | | |
| | | |
| | | |
| | | @Override |
| | | public IPage<Account> accountListPage(Page page, Account account) { |
| | | return accountMapper.accountListPage(page,account); |
| | | } |
| | | } |
| 对比新文件 |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.ruoyi.account.mapper.AccountMapper"> |
| | | <select id="accountListPage" resultType="com.ruoyi.account.pojo.Account"> |
| | | select * from account |
| | | where 1=1 |
| | | <if test="c.counterparty !='' and c.counterparty!=null"> |
| | | and counterparty = #{c.counterparty} |
| | | </if> |
| | | <if test="c.typeText !='' and c.typeText!=null"> |
| | | and type_text = #{c.typeText} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| 对比新文件 |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.ruoyi.account.mapper.AccountReconciliationMapper"> |
| | | <select id="accountReconciliationListPage" resultType="com.ruoyi.account.pojo.AccountReconciliation"> |
| | | select * from account_reconciliation |
| | | where 1=1 |
| | | <if test="c.counterparty !='' and c.counterparty!=null"> |
| | | and counterparty = #{c.counterparty} |
| | | </if> |
| | | <if test="c.status !='' and c.status!=null"> |
| | | and status = #{c.status} |
| | | </if> |
| | | </select> |
| | | </mapper> |