Browse Source

修复字典值为0/1时无法输出问题

pull/77/head
RuoYi 6 years ago
parent
commit
4f84560710
  1. 2
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
  2. 2
      ruoyi-generator/src/main/resources/vm/java/ServiceImpl.java.vm

2
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@ -259,7 +259,7 @@
selectDictLabel: function(datas, value) {
var actions = [];
$.each(datas, function(index, dict) {
if (dict.dictValue == value) {
if (dict.dictValue == ('' + value)) {
actions.push("<span class='badge badge-" + dict.listClass + "'>" + dict.dictLabel + "</span>");
return false;
}

2
ruoyi-generator/src/main/resources/vm/java/ServiceImpl.java.vm

@ -6,7 +6,7 @@ import org.springframework.stereotype.Service;
import ${package}.mapper.${className}Mapper;
import ${package}.domain.${className};
import ${package}.service.I${className}Service;
import com.ruoyi.common.support.Convert;
import com.ruoyi.common.core.text.Convert;
/**
* ${tableComment} 服务层实现

Loading…
Cancel
Save