|
@@ -8,6 +8,7 @@ import com.unis.framework.mybatis.core.query.LambdaQueryWrapperX;
|
8
|
8
|
import com.unis.module.coding.controller.admin.caxx.vo.CaxxPageReqVO;
|
9
|
9
|
import com.unis.module.coding.controller.admin.delivery.vo.SparePageReqVO;
|
10
|
10
|
import com.unis.module.coding.controller.admin.delivery.vo.SpareRespVO;
|
|
11
|
+import com.unis.module.coding.controller.admin.delivery.vo.StorePageReqVO;
|
11
|
12
|
import com.unis.module.coding.controller.admin.delivery.vo.StoreRespVO;
|
12
|
13
|
import com.unis.module.coding.dal.dataobject.caxx.CaxxDO;
|
13
|
14
|
import org.apache.ibatis.annotations.Mapper;
|
|
@@ -52,11 +53,15 @@ public interface CaxxMapper extends BaseMapperX<CaxxDO> {
|
52
|
53
|
|
53
|
54
|
Page<SpareRespVO> selectWrapperPageForSheng(Page<Object> objectPage, @Param("pageReqVO")SparePageReqVO pageReqVO);
|
54
|
55
|
|
55
|
|
- default List<CaxxDO> selectListByKqId(Long kqId) {
|
|
56
|
+ default List<CaxxDO> selectList(StorePageReqVO pageReqVO) {
|
56
|
57
|
List<CaxxDO> caxxList = selectList(
|
57
|
58
|
new LambdaQueryWrapperX<CaxxDO>()
|
58
|
|
- .eqIfPresent(CaxxDO::getKqid, kqId)
|
59
|
|
-
|
|
59
|
+ .eqIfPresent(CaxxDO::getKqid, pageReqVO.getKqId())
|
|
60
|
+ .eqIfPresent(CaxxDO::getCflx, pageReqVO.getCflx())
|
|
61
|
+ .eqIfPresent(CaxxDO::getCazt, pageReqVO.getCfzt())
|
|
62
|
+ .between(pageReqVO.getCfStart() != null && pageReqVO.getCfEnd() != null,CaxxDO::getSjcr, pageReqVO.getCfStart(), pageReqVO.getCfEnd())
|
|
63
|
+ .le(pageReqVO.getCfStart() == null && pageReqVO.getCfEnd() != null,CaxxDO::getSjcr, pageReqVO.getCfEnd())
|
|
64
|
+ .ge(pageReqVO.getCfStart() != null && (pageReqVO.getCfEnd() == null ),CaxxDO::getSjcr, pageReqVO.getCfStart())
|
60
|
65
|
);
|
61
|
66
|
return caxxList;
|
62
|
67
|
}
|
|
@@ -77,4 +82,12 @@ public interface CaxxMapper extends BaseMapperX<CaxxDO> {
|
77
|
82
|
Page<SpareRespVO> getSelectPageForBank(Page<Object> objectPage, @Param("pageReqVO")SparePageReqVO pageReqVO);
|
78
|
83
|
|
79
|
84
|
Page<SpareRespVO> getSelectPageForSheng(Page<Object> objectPage, @Param("pageReqVO")SparePageReqVO pageReqVO);
|
|
85
|
+
|
|
86
|
+ default List<CaxxDO> selectListByKqId(Long kqId){
|
|
87
|
+ List<CaxxDO> caxxList = selectList(
|
|
88
|
+ new LambdaQueryWrapperX<CaxxDO>()
|
|
89
|
+ .eqIfPresent(CaxxDO::getKqid, kqId)
|
|
90
|
+ );
|
|
91
|
+ return caxxList;
|
|
92
|
+ }
|
80
|
93
|
}
|