| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package com.ruoyi.web.H5Api.api;
- import com.ruoyi.common.annotation.Log;
- import com.ruoyi.common.annotation.RepeatSubmit;
- import com.ruoyi.common.core.controller.BaseController;
- import com.ruoyi.common.core.domain.AjaxResult;
- import com.ruoyi.common.enums.BusinessType;
- import com.ruoyi.common.enums.OperatorType;
- import com.ruoyi.web.pcApi.domain.*;
- import com.ruoyi.web.pcApi.service.*;
- import org.apache.commons.collections.map.HashedMap;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import java.util.Date;
- import java.util.List;
- import java.util.Map;
- /**
- * h5端-通知信息api
- *
- * @author lzp
- * @date 2022-08-26
- */
- @RestController
- @RequestMapping("/h5/message")
- @CrossOrigin
- public class H5NoticeMessageController extends BaseController
- {
- @Autowired
- private ITNoticeMessageService noticeMessageService;
- @Autowired
- private ITCustomerNoticeService customerNoticeService;
- /**
- * 获取用户通知消息
- * @return
- */
- @GetMapping("/getCustomerNotice")
- public AjaxResult getShopCarList(){
- List<TNoticeMessage> tNoticeMessages = noticeMessageService.selectTNoticeMessageList(TNoticeMessage.builder().deptId(getLoginUser().getLoginCustomer().getDeptId()).build());
- List<TCustomerNotice> tCustomerNotices = customerNoticeService.selectTCustomerNoticeList(TCustomerNotice.builder().customerId(getLoginUser().getLoginCustomer().getId()).build());
- Map<String,Object> map = new HashedMap();
- map.put("notice",tNoticeMessages);
- map.put("customerNotice",tCustomerNotices);
- return AjaxResult.success(map);
- }
- }
|