Kaynağa Gözat

fix

release_toaliyun_real
winter 1 yıl önce
ebeveyn
işleme
b77f8b509b
2 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. +2
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxFinancePrintTemplate.java
  2. +4
    -6
      mallinkService/src/main/java/com/iformall/service/impl/WxFinancePrintServiceImpl.java

+ 2
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxFinancePrintTemplate.java Dosyayı Görüntüle

@@ -54,6 +54,8 @@ public class WxFinancePrintTemplate extends TenantEntity {
return null;
}
@TableField(exist = false)
private JSONObject contentJsonUpdate;
@TableField(exist = false)
private List tempItems;
}

+ 4
- 6
mallinkService/src/main/java/com/iformall/service/impl/WxFinancePrintServiceImpl.java Dosyayı Görüntüle

@@ -86,21 +86,19 @@ public class WxFinancePrintServiceImpl implements WxFinancePrintService {
public void update(WxFinancePrintTemplate record) {
WxFinancePrintTemplate t = getTemplateById(record.getId());
Map map = new HashMap();
if (null == record.getContentJson()) {
if (null == record.getContentJsonUpdate()) {
map.put("width", 770);
map.put("height", 500);
map.put("pageWidth", 215);
map.put("pageHeight", 140);
map.put("id", String.valueOf(t.getId()));
map.put("title", record.getName());
map.put("title", record.getTitle());
map.put("type", t.getType());
map.put("tempItems", record.getTempItems());
record.setContent(JSON.toJSONString(map));
}
Date date = new Date();
JSONObject o = record.getContentJson();
o.put("title", record.getName());
o.put("tempItems", record.getTempItems());
JSONObject o = record.getContentJsonUpdate();
o.put("title", record.getTitle());
record.setContent(JSON.toJSONString(o));
record.setName(record.getTitle());
record.setUpdateTime(date);


Yükleniyor…
İptal
Kaydet