制度手册导出版本号处理
This commit is contained in:
parent
9021ac50b9
commit
970210629e
@ -679,7 +679,7 @@ public class ReadWordUtil {
|
||||
public static PALRepositoryModel getRepositoryByName(String wsId, String repositoryName) {
|
||||
List<PALRepositoryModel> palRepositoryModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getAllCoeProcessLevelByWsId(wsId);
|
||||
for (PALRepositoryModel palRepositoryModel : palRepositoryModels) {
|
||||
if (palRepositoryModel.getName().equals(repositoryName)) {
|
||||
if (palRepositoryModel.getName().equals(repositoryName)&&palRepositoryModel.isUse()) {
|
||||
return palRepositoryModel;
|
||||
}
|
||||
}
|
||||
|
||||
@ -690,8 +690,18 @@ public class Report1Gener {
|
||||
// 版本P_versions,制度用的是versions
|
||||
String attr = "versions";
|
||||
String val = "";
|
||||
val = specialCharTransfer(map.containsKey(attr) ? (map.get(attr).getString("text")) : "").replace("\n", WRAPSTRING);
|
||||
obj.put(attr, val);
|
||||
String plvers = model.getVersion()+"";
|
||||
String plver = "";
|
||||
if (!"".equals(plvers)) {
|
||||
if (plvers.length() > 1) {
|
||||
plver = plvers.substring(0, 1) + "."
|
||||
+ plvers.substring(plvers.length() - 1, plvers.length());
|
||||
} else {
|
||||
plver = plvers.substring(0, 1) + ".0";
|
||||
}
|
||||
}
|
||||
//val = specialCharTransfer(map.containsKey(attr) ? (map.get(attr).getString("text")) : "").replace("\n", WRAPSTRING);
|
||||
obj.put(attr, "V"+plver);
|
||||
// 拟制/修订单位Issuing_department
|
||||
attr = "Issuing_department";
|
||||
val = specialCharTransfer(map.containsKey(attr) ? (map.get(attr).getString("text")) : "").replace("\n", WRAPSTRING);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user