Просмотр исходного кода

Merge branch 'develop' of https://git.youlane.cn/server/formallProject into develop

release_toaliyun_real
Burce 6 лет назад
Родитель
Сommit
b3e902a90a
6 измененных файлов: 24 добавлений и 6 удалений
  1. +3
    -3
      mallinkBApi/src/main/java/com/iformall/controller/WxTagController.java
  2. +4
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java
  3. +3
    -0
      mallinkService/src/main/java/com/iformall/domain/vo/WxMerchantSimpleVo.java
  4. +8
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java
  5. +1
    -1
      mallinkService/src/main/resources/mapper/WxBillAllMapper.xml
  6. +5
    -0
      mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml

+ 3
- 3
mallinkBApi/src/main/java/com/iformall/controller/WxTagController.java Просмотреть файл

@@ -26,9 +26,9 @@ public class WxTagController extends BaseController {
private WxTagsService wxTagsService;

@ApiOperation("获取标签")
@GetMapping("getData")
public ResultData getTags() {
log.debug("[" + getIpAddr() + "] WxCreditHistoryController::getTagsByBussiness");
@GetMapping("/getData")
public ResultData getData() {
log.debug("[" + getIpAddr() + "] WxTagController::getData");
WxTags wxTags = new WxTags();
wxTags.setTypeId(EnumTagType.ID_27.getCode());
List<WxTags> listA = wxTagsService.findList(wxTags);


+ 4
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java Просмотреть файл

@@ -88,6 +88,10 @@ public class WxCouponChannel extends BaseEntity {
@TableField(exist = false)
private Long merchantId;

@TableField(exist = false)
@io.swagger.annotations.ApiModelProperty(value = "用户积分", name = "userCredit")
private Integer userCredit;

public String getWeappPath() {
if(type == null)
return "pages/index/index";


+ 3
- 0
mallinkService/src/main/java/com/iformall/domain/vo/WxMerchantSimpleVo.java Просмотреть файл

@@ -11,4 +11,7 @@ public class WxMerchantSimpleVo {

@ApiModelProperty(value="商户名",name="merchantName")
private String merchantName;

@ApiModelProperty(value = "业态", name = "businessId")
private Integer businessId;
}

+ 8
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java Просмотреть файл

@@ -19,7 +19,6 @@ import com.iformall.enums.*;
import com.iformall.exception.MallinkException;
import com.iformall.mapper.*;
import com.iformall.service.*;
import com.iformall.utils.BeanMapping;
import com.iformall.utils.DateUtils;
import com.iformall.utils.EventUtil;
import org.apache.commons.lang3.StringUtils;
@@ -140,7 +139,14 @@ public class WxMerchantServiceImpl implements WxMerchantService {
wxMerchant.setTenantId(tenantId);
wxMerchant.setStatus(EnumMerchantStatus.VALID.getCode());
List<WxMerchant> wxMerchantList = wxMerchantMapper.findList(wxMerchant);
return BeanMapping.mapList(wxMerchantList,WxMerchantSimpleVo.class,(s, t)->t.setMerchantName(s.getName()));
List<WxMerchantSimpleVo> collect = wxMerchantList.stream().map(x -> {
WxMerchantSimpleVo wxMerchantSimpleVo = new WxMerchantSimpleVo();
wxMerchantSimpleVo.setId(x.getId());
wxMerchantSimpleVo.setMerchantName(x.getName());
wxMerchantSimpleVo.setBusinessId(x.getBusinessId());
return wxMerchantSimpleVo;
}).collect(Collectors.toList());
return collect;
}

@Override


+ 1
- 1
mallinkService/src/main/resources/mapper/WxBillAllMapper.xml Просмотреть файл

@@ -722,7 +722,7 @@

) bill
left join wx_merchant m on bill.merchant_id=m.id
where m.status=1 and m.tenant_id = #{tenantId}
where m.tenant_id = #{tenantId}
<if test=" null != merchantName and '' != merchantName">and m.name like concat('%', #{merchantName},'%')</if>
<if test=" null != sortColumns"> order by ${sortColumns} </if>
<if test=" null == sortColumns"> order by totalOwe desc </if>


+ 5
- 0
mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml Просмотреть файл

@@ -91,6 +91,11 @@
and c.`support_transfer` = #{supportTransfer}
</if>
<if test=" null != userCredit ">
and c.`credit_price` &lt;= #{userCredit}
</if>
<if test=" null != ids ">
and cc.id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">


Загрузка…
Отмена
Сохранить