| | |
| | | package com.consum.base.controller; |
| | | |
| | | import cn.hutool.core.convert.Convert; |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.service.LWhGoodsService; |
| | | import com.consum.model.po.FinSysTenantUser; |
| | | import com.walker.web.ResponseValue; |
| | | import io.swagger.annotations.Api; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.service.LWhGoodsService; |
| | | import com.consum.model.po.FinSysTenantUser; |
| | | import com.walker.infrastructure.utils.CollectionUtils; |
| | | import com.walker.web.ResponseValue; |
| | | |
| | | import cn.hutool.core.convert.Convert; |
| | | import io.swagger.annotations.Api; |
| | | |
| | | /** |
| | | * @ClassName LWhHomeStatisticsController |
| | |
| | | FinSysTenantUser sysInfo = this.getSysInfo(); |
| | | String tenantId = sysInfo.getTenantId(); |
| | | List<Map<String, Object>> goodsNumPrice = lWhGoodsService.getGoodsNumPrice(Convert.toLong(tenantId, 0l)); |
| | | if (CollectionUtils.isEmpty(goodsNumPrice)){ |
| | | return ResponseValue.success(); |
| | | } |
| | | return ResponseValue.success(goodsNumPrice.get(0)); |
| | | } |
| | | |