Merge branches 'master' and 'master' of http://124.223.211.244:8418/zianxin/biz-api-cloud
This commit is contained in:
commit
a6a407e87a
6 files changed
+29
-8
No files matched your search
+16
@@ -26,6 +26,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.bsd.pjcloud.canteen.dto.CanteenSpuUpdateStockReqDTO;
|
||||
import com.bsd.pjcloud.canteen.dto.DailyMenuAll;
|
||||
import com.bsd.pjcloud.canteen.dto.app.DailyMenuDTO;
|
||||
import com.bsd.pjcloud.canteen.vo.ADCanteenDailyMenuListVO;
|
||||
import com.bsd.pjcloud.canteen.vo.APPOnlineSpuVO;
|
||||
import com.bsd.pjcloud.canteen.vo.app.CanteenOnlineSpuAppVO;
|
||||
import com.bsd.pjcloud.common.core.constant.ServiceNameConstants;
|
||||
@@ -67,4 +68,19 @@ public interface RemoteDailyMenuService {
|
||||
@RequestParam("merchantId") Long merchantId,
|
||||
@RequestParam("categoryId") Long categoryId);
|
||||
|
||||
|
||||
/**
|
||||
* 根据菜品日期获取当天的菜品列表
|
||||
* @param day 日期
|
||||
* @param hourType 早中晚
|
||||
* @param categoryId 分类id
|
||||
* @param merchantId 商户id
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/canteenDailyMenu/ad/getCanteenList")
|
||||
public R<List<ADCanteenDailyMenuListVO>> getCanteenList(@RequestParam("day") String day,
|
||||
@RequestParam(value = "hourType", required = false) Integer hourType,
|
||||
@RequestParam(value = "categoryId", required = false) Long categoryId,
|
||||
@RequestParam(value = "merchantId") Long merchantId);
|
||||
|
||||
}
|
||||
+6
-4
@@ -12,6 +12,7 @@ import com.bsd.pjcloud.canteen.dto.DailyMenuAll;
|
||||
import com.bsd.pjcloud.canteen.dto.app.DailyMenuDTO;
|
||||
import com.bsd.pjcloud.canteen.entity.CanteenSpuEntity;
|
||||
import com.bsd.pjcloud.canteen.service.CanteenSpuService;
|
||||
import com.bsd.pjcloud.canteen.vo.ADCanteenDailyMenuListVO;
|
||||
import com.bsd.pjcloud.common.core.util.R;
|
||||
import com.bsd.pjcloud.common.log.annotation.SysLog;
|
||||
import com.bsd.pjcloud.canteen.entity.CanteenDailyMenuEntity;
|
||||
@@ -180,11 +181,12 @@ public class CanteenDailyMenuController {
|
||||
// ---------AD------------
|
||||
@GetMapping("/ad/getCanteenList")
|
||||
@SysLog("查询每日菜品列表")
|
||||
public R getCanteenList(@RequestParam("day") String day,
|
||||
@RequestParam(value = "hourType", required = false) Integer hourType,
|
||||
@RequestParam(value = "categoryId", required = false) Long categoryId) {
|
||||
public R<List<ADCanteenDailyMenuListVO>> getCanteenList(@RequestParam("day") String day,
|
||||
@RequestParam(value = "hourType", required = false) Integer hourType,
|
||||
@RequestParam(value = "categoryId", required = false) Long categoryId,
|
||||
@RequestParam(value = "merchantId") Long merchantId) {
|
||||
|
||||
return R.ok(canteenDailyMenuService.getCanteenMenuListScope(day, hourType, categoryId));
|
||||
return R.ok(canteenDailyMenuService.getCanteenMenuListScope(day, hourType, categoryId,merchantId));
|
||||
}
|
||||
|
||||
// --------------APP---------------
|
||||
|
||||
+1
-1
@@ -26,5 +26,5 @@ public interface CanteenDailyMenuMapper extends PjcloudBaseMapper<CanteenDailyMe
|
||||
* @return
|
||||
*/
|
||||
List<ADCanteenDailyMenuListVO> getCanteenMenuList(@Param("day") String day, @Param("hourType") Integer hourType,
|
||||
@Param("categoryId") Long categoryId, DataScope dataScope);
|
||||
@Param("categoryId") Long categoryId, @Param("merchantId") Long merchantId,DataScope dataScope);
|
||||
}
|
||||
+1
-1
@@ -47,7 +47,7 @@ public interface CanteenDailyMenuService extends IService<CanteenDailyMenuEntity
|
||||
* @param categoryId
|
||||
* @return
|
||||
*/
|
||||
List<ADCanteenDailyMenuListVO> getCanteenMenuListScope(String day, Integer hourType, Long categoryId);
|
||||
List<ADCanteenDailyMenuListVO> getCanteenMenuListScope(String day, Integer hourType, Long categoryId, Long merchantId);
|
||||
|
||||
Page selectTimeFoodPage(Page page, DailyMenuDTO dailyMenuDTO);
|
||||
}
|
||||
+2
-2
@@ -113,8 +113,8 @@ public class CanteenDailyMenuServiceImpl extends ServiceImpl<CanteenDailyMenuMap
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ADCanteenDailyMenuListVO> getCanteenMenuListScope(String day, Integer hourType, Long categoryId) {
|
||||
return baseMapper.getCanteenMenuList(day, hourType, categoryId, DataScope.of());
|
||||
public List<ADCanteenDailyMenuListVO> getCanteenMenuListScope(String day, Integer hourType, Long categoryId, Long merchantId) {
|
||||
return baseMapper.getCanteenMenuList(day, hourType, categoryId,merchantId, DataScope.of());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+3
@@ -76,6 +76,9 @@
|
||||
<if test="day != null">
|
||||
AND t.start_time = #{day}
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
AND t.merchant_id = #{merchantId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in new issue
Block a user