| | |
| | | package com.matrix.system.shopXcx.api.action; |
| | | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.biz.bean.BizUser; |
| | | import com.matrix.system.common.bean.CustomerDataDictionary; |
| | | import com.matrix.system.common.dao.CustomerDataDictionaryDao; |
| | | import com.matrix.component.redis.RedisUserLoginUtils; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | |
| | | import com.matrix.system.common.dao.CustomerDataDictionaryDao; |
| | | import com.matrix.system.common.init.UserCacheManager; |
| | | import com.matrix.system.hive.bean.SysVipInfo; |
| | | import com.matrix.system.shopXcx.bean.ShopInvoice; |
| | | import com.matrix.system.shopXcx.dao.ShopInvoiceDao; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | |
| | | @Autowired |
| | | private ShopInvoiceDao invoiceDao; |
| | | @Autowired |
| | | private RedisUserLoginUtils redisUserLoginUtils; |
| | | private UserCacheManager userCacheManager; |
| | | |
| | | /** |
| | | * 查询发票内容接口 |
| | |
| | | @PostMapping(value = "/saveInvoice") |
| | | public @ResponseBody |
| | | AjaxResult saveInvoice(@RequestBody ShopInvoice shopInvoice) { |
| | | BizUser loginUser = redisUserLoginUtils.getLoginUser(BizUser.class); |
| | | SysVipInfo loginUser = userCacheManager.getLoginUser(); |
| | | shopInvoice.setCreateBy(loginUser.getOpenId()); |
| | | shopInvoice.setUpdateBy(loginUser.getOpenId()); |
| | | shopInvoice.setUserId(loginUser.getOpenId()); |
| | |
| | | @PostMapping("/findProductComment") |
| | | @ResponseBody |
| | | public AjaxResult getProductCommentByUserId(@RequestBody ShopInvoice shopInvoice) { |
| | | BizUser loginUser = redisUserLoginUtils.getLoginUser(BizUser.class); |
| | | SysVipInfo loginUser = userCacheManager.getLoginUser(); |
| | | String userId = loginUser.getOpenId(); |
| | | shopInvoice.setUserId(userId); |
| | | List<ShopInvoice> list = invoiceDao.selectByUserId(shopInvoice); |