|  |  |  | 
|---|
|  |  |  | package com.matrix.system.shopXcx.api.action; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.matrix.core.pojo.AjaxResult; | 
|---|
|  |  |  | import com.matrix.biz.bean.BizUser; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.SysVipInfo; | 
|---|
|  |  |  | import com.matrix.system.common.bean.CustomerDataDictionary; | 
|---|
|  |  |  | import com.matrix.system.common.dao.CustomerDataDictionaryDao; | 
|---|
|  |  |  | import com.matrix.component.redis.RedisUserLoginUtils; | 
|---|
|  |  |  | 
|---|
|  |  |  | @PostMapping(value = "/saveInvoice") | 
|---|
|  |  |  | public @ResponseBody | 
|---|
|  |  |  | AjaxResult saveInvoice(@RequestBody ShopInvoice shopInvoice) { | 
|---|
|  |  |  | BizUser loginUser = redisUserLoginUtils.getLoginUser(BizUser.class); | 
|---|
|  |  |  | SysVipInfo loginUser = redisUserLoginUtils.getLoginUser(SysVipInfo.class); | 
|---|
|  |  |  | 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 = redisUserLoginUtils.getLoginUser(SysVipInfo.class); | 
|---|
|  |  |  | String userId = loginUser.getOpenId(); | 
|---|
|  |  |  | shopInvoice.setUserId(userId); | 
|---|
|  |  |  | List<ShopInvoice> list = invoiceDao.selectByUserId(shopInvoice); | 
|---|