代码提交

master
liuqingkun 2 years ago
parent 3e6fe5d282
commit 6f51297272
  1. 5
      src/main/java/org/springblade/modules/desk/controller/CustomMadeInfoController.java
  2. 2
      src/main/java/org/springblade/modules/desk/mapper/OrderMapper.xml

@ -25,6 +25,10 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.*;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.common.cache.DictBizCache;
import org.springblade.common.constant.BusinessConstant;
import org.springblade.common.constant.CommonConstant;
import org.springblade.common.constant.DictConstant;
import org.springblade.common.enums.CervicalVertebraEnum;
import org.springblade.common.enums.PillowHardnessEnum;
import org.springblade.common.enums.PillowMaterialEnum;
@ -183,6 +187,7 @@ public class CustomMadeInfoController extends BladeController {
dataList.forEach(item -> {
CustomMadeInfoExcelVO vo = BeanUtil.copy(item, CustomMadeInfoExcelVO.class);
String address = item.getProvince().concat(StringPool.SPACE).concat(item.getCity()).concat(StringPool.SPACE).concat(item.getDistrict()).concat(StringPool.SPACE).concat(item.getDetail());
vo.setPurchaseChannel(DictBizCache.getValue(DictConstant.PURCHASE_CHANNEL_CODE, item.getPurchaseChannel()));
vo.setAddress(address);
vo.setPillowHardnessName(PillowHardnessEnum.getName(item.getPillowHardness()));
vo.setPillowMaterialName(PillowMaterialEnum.getName(item.getPillowMaterial()));

@ -16,7 +16,7 @@
<result column="goods_name" property="goodsName"/>
<result column="goods_num" property="goodsNum"/>
<result column="goods_price" property="goodsPrice"/>
<result column="goods_price" property="totalPrice"/>
<result column="total_price" property="totalPrice"/>
<result column="buyer_id" property="buyerId"/>
<result column="buyer_name" property="buyerName"/>
<result column="buyer_phone" property="buyerPhone"/>

Loading…
Cancel
Save