feat: There is no way the,

This commit is contained in:
super_liu
2022-02-08 20:06:43 +08:00
parent 716c8c1ed6
commit 6a56242ee4
5 changed files with 48 additions and 0 deletions
@@ -36,6 +36,19 @@ public class SarBussionessStandStateController extends BaseController<SarBussion
@Autowired
private ISarBussionessStandStateService bussionessStandStateService;
/**
* 自定义分页复审流程查询列表
* @param page 标准信息
* @return
*/
@ApiOperation(value = "|SarBussionessStandState|自定义分页复审流程查询列表")
@GetMapping("/getSarBussionStandPageNo")
//@RequiresPermissions("lawss:sarBussionessStand:getSarBussionStandPage")
public ResponseMessage<PageInfo<SarBussionessStandState>> getSarBussionStandPageNo(SarBussionessStandStatePage page) throws Exception {
List<SarBussionessStandState> rows = bussionessStandStateService.getSarBussionessStandStatePageNo(page);
return Result.success(getPageInfo(page.getPager(), rows));
}
/**
* 自定义分页查询列表
* @param page 标准信息
@@ -20,4 +20,8 @@ public interface SarBussionessStandStateDao extends BaseMapper<SarBussionessStan
int getBussionessStandStateCount(SarBussionessStandStatePage page);
List<SarBussionessStandState> getSarBussionessStandStatePageNo(SarBussionessStandStatePage page);
int getBussionessStandStateCountNo(SarBussionessStandStatePage page);
}
@@ -16,6 +16,8 @@ import java.util.List;
*/
public interface ISarBussionessStandStateService extends IService<SarBussionessStandState> {
List<SarBussionessStandState> getSarBussionessStandStatePageNo(SarBussionessStandStatePage page) throws Exception;
List<SarBussionessStandState> getSarBussionessStandStatePage(SarBussionessStandStatePage page) throws Exception;
}
@@ -20,6 +20,14 @@ import java.util.List;
@Service
public class SarBussionessStandStateServiceImpl extends ServiceImpl<SarBussionessStandStateDao, SarBussionessStandState> implements ISarBussionessStandStateService {
@Override
public List<SarBussionessStandState> getSarBussionessStandStatePageNo(SarBussionessStandStatePage page) throws Exception{
Integer rowCount = this.baseMapper.getBussionessStandStateCountNo(page);
page.getPager().setRowCount(rowCount);
List<SarBussionessStandState> stateList = this.baseMapper.getSarBussionessStandStatePageNo(page);
return stateList;
}
@Override
public List<SarBussionessStandState> getSarBussionessStandStatePage(SarBussionessStandStatePage page) throws Exception{
Integer rowCount = this.baseMapper.getBussionessStandStateCount(page);
@@ -75,6 +75,27 @@
</trim>
</sql>
<!-- 分页查询条件当页数据 -->
<select id="getSarBussionessStandStatePageNo" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.sarBussionessStandState.entity.SarBussionessStandStatePage">
SELECT A.* FROM (
select <include refid="Base_Column_List" />
from sar_bussioness_stand_state
<include refid="SarBussionInfoRole_Where_Clause_Review_Results_N"/>
ORDER BY
REVIEW_RESULTS ASC,
REVIEW_TIME DESC,
ISSUE_TIME DESC
) A
limit ${pager.startIndex-1},${pageSize}
</select>
<select id="getBussionessStandStateCountNo" resultType="java.lang.Integer" parameterType="com.adc.da.slrs.sarBussionessStandState.entity.SarBussionessStandStatePage">
select count(1) from (
select id from sar_bussioness_stand_state
<include refid="SarBussionInfoRole_Where_Clause_Review_Results_N"/>
) a
</select>
<!-- 分页查询条件当页数据 -->
<select id="getBussionessStandStatePage" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.sarBussionessStandState.entity.SarBussionessStandStatePage">
SELECT A.* FROM (