소스 검색

fix

release_toaliyun_real
winter 1 년 전
부모
커밋
b77f8b509b
2개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

@@ -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);


불러오는 중...
취소
저장