|
|
@@ -1,6 +1,10 @@
|
|
|
package com.kym.service.miniapp.impl;
|
|
|
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
+import com.kym.common.utils.CommUtil;
|
|
|
+import com.kym.entity.common.PageBean;
|
|
|
import com.kym.entity.miniapp.WashStation;
|
|
|
+import com.kym.entity.miniapp.queryParams.StationQueryParams;
|
|
|
import com.kym.mapper.miniapp.WashStationMapper;
|
|
|
import com.kym.service.miniapp.WashStationService;
|
|
|
import com.kym.service.mybatisplus.MyBaseServiceImpl;
|
|
|
@@ -17,4 +21,25 @@ import org.springframework.stereotype.Service;
|
|
|
@Service
|
|
|
public class WashStationServiceImpl extends MyBaseServiceImpl<WashStationMapper, WashStation> implements WashStationService {
|
|
|
|
|
|
+
|
|
|
+ // ====================================================== 运营平台接口 Start ===========================================================
|
|
|
+
|
|
|
+ // ====================================================== 运营平台接口 Start ===========================================================
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // ====================================================== 小程序接口 Start ===========================================================
|
|
|
+ @Override
|
|
|
+ public PageBean<WashStation> listStationForApp(StationQueryParams params) {
|
|
|
+ PageHelper.startPage(params.getPageNum(), params.getPageSize());
|
|
|
+ var res = lambdaQuery()
|
|
|
+ .like(CommUtil.isNotEmptyAndNull(params.getStationName()), WashStation::getStationName, params.getStationName())
|
|
|
+ .list();
|
|
|
+ return new PageBean<>(res);
|
|
|
+
|
|
|
+ }
|
|
|
+ // ====================================================== 小程序接口 End ===========================================================
|
|
|
+
|
|
|
}
|