Commit f714a8dd by huangZW

111

parent 3cb6cdb9
......@@ -10,6 +10,6 @@ import com.gic.haoban.manage.api.dto.AuditDTO;
*/
public interface AuditApiService {
Page<AuditDTO> page(Integer auditType, String search,String enterpriseId,BasePageInfo pageInfo);
Page<AuditDTO> page(Integer auditType, String search,String enterpriseId,Integer auditStatus,BasePageInfo pageInfo);
}
......@@ -19,6 +19,6 @@ public interface AuditMapper {
int updateByPrimaryKey(TabHaobanAudit record);
Page<TabHaobanAudit> page(Integer auditType, List<String> storeIds,List<String>staffIds, String enterpriseId );
Page<TabHaobanAudit> page(Integer auditType, List<String> storeIds,List<String>staffIds, String enterpriseId,Integer auditStatus );
}
\ No newline at end of file
......@@ -22,12 +22,12 @@ public class AuditApiServiceImpl implements AuditApiService{
private AuditMapper auditMapper;
@Override
public Page<AuditDTO> page(Integer auditType, String search,
String enterpriseId, BasePageInfo pageInfo) {
String enterpriseId,Integer auditStatus, BasePageInfo pageInfo) {
//TODO 通过search模糊查找storeIds,和staffIds
List<String> storeIds = new ArrayList<>();
List<String> staffIds = new ArrayList<>();
PageHelper.startPage(pageInfo.getPageNum(), pageInfo.getPageSize());
com.github.pagehelper.Page<TabHaobanAudit> page = auditMapper.page(auditType, storeIds, staffIds, enterpriseId);
com.github.pagehelper.Page<TabHaobanAudit> page = auditMapper.page(auditType, storeIds, staffIds, enterpriseId,auditStatus);
return PageUtil.changePageHelperToCurrentPage( page,AuditDTO.class);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment