yujian
2019-03-22 3df7c3cec0630eb3a208d9e9d2049b56a48e16a4
专题编辑bug
1个文件已修改
30 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/controller/admin/homemodule/SpecialCardAdminController.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/controller/admin/homemodule/SpecialCardAdminController.java
@@ -443,17 +443,11 @@
            }
            
            String params = record.getParams();
            if (params != null && params.trim().length() == 0) {
                params = null;
            }
            if (!StringUtil.isNullOrEmpty(params)) {
                String jumpValue = systemConfigService.get("jump");
                if (StringUtil.isNullOrEmpty(jumpValue)) {
                    jumpValue = "{\"url\":\"#\"}";
                }
                params = jumpValue.replace("#", params);
            }
            
@@ -464,21 +458,25 @@
                } 
            }
            
            String name = record.getName();
            if (name != null && name.trim().length() == 0) {
                name = null;
            if (name != null && name.trim().length() > 0) {
                resultObj.setName(name);
            }
            if (params != null && params.trim().length() > 0) {
                resultObj.setParams(params);
            }
            String showType = record.getShowType();
            if (showType != null && showType.trim().length() > 0) {
                resultObj.setShowType(record.getShowType());
            }
            
            String remark = record.getRemark();
            if (remark != null && remark.trim().length() == 0) {
                remark = null;
            if (remark != null && remark.trim().length() > 0) {
                resultObj.setRemark(remark);
            }
            resultObj.setName(name);
            resultObj.setParams(params);
            resultObj.setShowType(record.getShowType());
            resultObj.setRemark(remark);
            
            specialService.updateByPrimaryKey(resultObj);