| | |
| | | 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 io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | 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)); |
| | | } |
| | | |