Przeglądaj źródła

[宣传页][修改][图文内容过多问题]

release_toaliyun_real
gongbiao 7 lat temu
rodzic
commit
d18c193b70
4 zmienionych plików z 11 dodań i 22 usunięć
  1. +2
    -11
      mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java
  2. +9
    -11
      mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java
  3. BIN
      mallinkService/src/main/resources/contract-word-template/contract_rent_property.docx
  4. BIN
      mallinkService/src/main/resources/contract-word-template/contract_rent_property_by_ratio.docx

+ 2
- 11
mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java Wyświetl plik

@@ -106,9 +106,8 @@ public class WxCampaign implements Serializable {
private Date updateTime; private Date updateTime;
@io.swagger.annotations.ApiModelProperty(value="富文本",name="html") @io.swagger.annotations.ApiModelProperty(value="富文本",name="html")
private String html; private String html;
@io.swagger.annotations.ApiModelProperty(value="外部链接",name="link")
private String link;
public String getTenantId() {

public String getTenantId() {
return tenantId; return tenantId;
} }
public void setTenantId(String _tenantId) { public void setTenantId(String _tenantId) {
@@ -219,14 +218,6 @@ public class WxCampaign implements Serializable {
this.html = html; this.html = html;
} }


public String getLink() {
return link;
}

public void setLink(String link) {
this.link = link;
}

public static enum Field public static enum Field
{ {
Id_ASC("`id` ASC"),Id_DESC("`id` DESC") Id_ASC("`id` ASC"),Id_DESC("`id` DESC")


+ 9
- 11
mallinkService/src/main/java/com/iformall/service/impl/WxCampaignServiceImpl.java Wyświetl plik

@@ -59,7 +59,7 @@ public class WxCampaignServiceImpl implements WxCampaignService {
return wxCampaignMapper.selectByPrimaryKey(id); return wxCampaignMapper.selectByPrimaryKey(id);
} }


@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class})
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class})
@Override @Override
public ResultData saveOrUpdate(WxCampaign wxCampaign) { public ResultData saveOrUpdate(WxCampaign wxCampaign) {
if(wxCampaign.getType().equals(EnumCampaignType.STABLE.getCode())) { if(wxCampaign.getType().equals(EnumCampaignType.STABLE.getCode())) {
@@ -90,22 +90,21 @@ public class WxCampaignServiceImpl implements WxCampaignService {
wxCampaignMapper.updateByPrimaryKeySelective(wxCampaign); wxCampaignMapper.updateByPrimaryKeySelective(wxCampaign);
} }
//type 为固定格式才会有券的信息 才会有投放的问题 //type 为固定格式才会有券的信息 才会有投放的问题
wxCampaign = wxCampaignMapper.selectByPrimaryKey(wxCampaign.getId());
if (wxCampaign.getType().equals(EnumCampaignType.STABLE.getCode())) {
if (wxCampaign.getStatus().equals(EnumCampaignStatus.STATUS_THROW_IN.getCode())) {
addOrUpdateBatch(JSONArray.parseArray(wxCampaign.getCouponIds(), String.class), wxCampaign);
} else {
delBatch(wxCampaign);
}
}
couponInject(wxCampaign);
return new ResultData(Result.SUCCESS,"操作成功"); return new ResultData(Result.SUCCESS,"操作成功");
} }


@Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class})
@Override @Override
public ResultData updateStatus(WxCampaign wxCampaign) { public ResultData updateStatus(WxCampaign wxCampaign) {
wxCampaignMapper.updateByPrimaryKeySelective(wxCampaign); wxCampaignMapper.updateByPrimaryKeySelective(wxCampaign);
wxCampaign = wxCampaignMapper.selectByPrimaryKey(wxCampaign);
//type 为固定格式才会有券的信息 才会有投放的问题 //type 为固定格式才会有券的信息 才会有投放的问题
couponInject(wxCampaign);
return new ResultData(Result.SUCCESS, "操作成功");
}

public void couponInject(WxCampaign wxCampaign) {
wxCampaign = wxCampaignMapper.selectByPrimaryKey(wxCampaign.getId());
if (wxCampaign.getType().equals(EnumCampaignType.STABLE.getCode())) { if (wxCampaign.getType().equals(EnumCampaignType.STABLE.getCode())) {
if (wxCampaign.getStatus().equals(EnumCampaignStatus.STATUS_THROW_IN.getCode())) { if (wxCampaign.getStatus().equals(EnumCampaignStatus.STATUS_THROW_IN.getCode())) {
addOrUpdateBatch(JSONArray.parseArray(wxCampaign.getCouponIds(), String.class), wxCampaign); addOrUpdateBatch(JSONArray.parseArray(wxCampaign.getCouponIds(), String.class), wxCampaign);
@@ -113,7 +112,6 @@ public class WxCampaignServiceImpl implements WxCampaignService {
delBatch(wxCampaign); delBatch(wxCampaign);
} }
} }
return new ResultData(Result.SUCCESS, "操作成功");
} }


public void delBatch(WxCampaign record) { public void delBatch(WxCampaign record) {


BIN
mallinkService/src/main/resources/contract-word-template/contract_rent_property.docx Wyświetl plik


BIN
mallinkService/src/main/resources/contract-word-template/contract_rent_property_by_ratio.docx Wyświetl plik


Ładowanie…
Anuluj
Zapisz