feat: There is no way the,
This commit is contained in:
+13
@@ -36,6 +36,19 @@ public class SarBussionessStandStateController extends BaseController<SarBussion
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ISarBussionessStandStateService bussionessStandStateService;
|
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 标准信息
|
* @param page 标准信息
|
||||||
|
|||||||
+4
@@ -20,4 +20,8 @@ public interface SarBussionessStandStateDao extends BaseMapper<SarBussionessStan
|
|||||||
|
|
||||||
int getBussionessStandStateCount(SarBussionessStandStatePage page);
|
int getBussionessStandStateCount(SarBussionessStandStatePage page);
|
||||||
|
|
||||||
|
List<SarBussionessStandState> getSarBussionessStandStatePageNo(SarBussionessStandStatePage page);
|
||||||
|
|
||||||
|
int getBussionessStandStateCountNo(SarBussionessStandStatePage page);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -16,6 +16,8 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface ISarBussionessStandStateService extends IService<SarBussionessStandState> {
|
public interface ISarBussionessStandStateService extends IService<SarBussionessStandState> {
|
||||||
|
|
||||||
|
List<SarBussionessStandState> getSarBussionessStandStatePageNo(SarBussionessStandStatePage page) throws Exception;
|
||||||
|
|
||||||
List<SarBussionessStandState> getSarBussionessStandStatePage(SarBussionessStandStatePage page) throws Exception;
|
List<SarBussionessStandState> getSarBussionessStandStatePage(SarBussionessStandStatePage page) throws Exception;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -20,6 +20,14 @@ import java.util.List;
|
|||||||
@Service
|
@Service
|
||||||
public class SarBussionessStandStateServiceImpl extends ServiceImpl<SarBussionessStandStateDao, SarBussionessStandState> implements ISarBussionessStandStateService {
|
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
|
@Override
|
||||||
public List<SarBussionessStandState> getSarBussionessStandStatePage(SarBussionessStandStatePage page) throws Exception{
|
public List<SarBussionessStandState> getSarBussionessStandStatePage(SarBussionessStandStatePage page) throws Exception{
|
||||||
Integer rowCount = this.baseMapper.getBussionessStandStateCount(page);
|
Integer rowCount = this.baseMapper.getBussionessStandStateCount(page);
|
||||||
|
|||||||
+21
@@ -75,6 +75,27 @@
|
|||||||
</trim>
|
</trim>
|
||||||
</sql>
|
</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 id="getBussionessStandStatePage" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.sarBussionessStandState.entity.SarBussionessStandStatePage">
|
||||||
SELECT A.* FROM (
|
SELECT A.* FROM (
|
||||||
|
|||||||
Reference in New Issue
Block a user