@@ -15,7 +15,9 @@ import com.miniframe.mappers.ac.dao.ExtAcMapper;
import com.miniframe.mappers.ac.model.ProAttVo;
import com.miniframe.model.system.SysAppcode;
import com.miniframe.model.system.SysAppcodeSQLBuilder;
+import com.miniframe.model.system.SysFile;
import com.miniframe.model.system.dao.SysAppcodeMapper;
+import com.miniframe.model.system.dao.SysFileMapper;
import com.miniframe.tools.XiJsonUtil;
import net.sf.jasperreports.engine.xml.TemplateSaxParserFactory;
@@ -49,6 +51,13 @@ public class AC00009Service extends AC00009BaseModel implements ExecProcessFlow
SysAppcode codev=adao.selectByExample(sb).get(0);
pv.setVal(codev.getCodeValue());
}
+ if(pv.getCode().equals("from_file")){//文件存储 fid
+ if(pv.getVal()!=null&&!"0".equals(pv.getVal())){
+ SysFileMapper fdao = UtilTools.getBean(SysFileMapper.class);
+ SysFile f = fdao.selectByPrimaryKey(pv.getVal());
+ pv.setFilename(f.getFilename());
+ }
List<AttVo> attvos = new ArrayList<>();
List<ProAttVo> gvs=pvs.stream().filter(v-> v.getFatId().equals("0")).collect(Collectors.toList());//根数据
@@ -13,19 +13,6 @@ public class ProAttVo {
private Integer ser;//属性排序
private String pattId;//项目属性ID
private String val;//项目属性值
+ private String filename;
- @Override
- public String toString() {
- return "ProAttVo{" +
- "attId='" + attId + '\'' +
- ", fatId='" + fatId + '\'' +
- ", name='" + name + '\'' +
- ", code='" + code + '\'' +
- ", valType=" + valType +
- ", valCodeType='" + valCodeType + '\'' +
- ", ser=" + ser +
- ", pattId='" + pattId + '\'' +
- ", val='" + val + '\'' +
- '}';
- }
@@ -2,4 +2,4 @@
1,pid,项目id,string,,,,,,,,,,,
2,name,项目名称,string,,,,,,,,,,,
3,count,每页显示条数,int,,,,,,,,,,,
-4,page,当前页数,int,,,,,,,,,,,
+ 4,page,当前页数,int,,,,,,,,,,,