Bläddra i källkod

附件bug修复

eganwu 11 månader sedan
förälder
incheckning
c1a3f11541

+ 2 - 2
src/custom/restcontroller/webmanage/saletool/fad/Fad.java

@@ -183,9 +183,9 @@ public class Fad extends Controller {
             Rows attPicRows = new Rows();
             Rows tempAttRows = attRowsMap.getOrDefault(row.getString("attachmentid"), new Rows());
             for (Row tempAttRow : tempAttRows) {
-                if (tempAttRow.getString("usetype").equals(ownertable)) {
+               // if (tempAttRow.getString("usetype").equals(ownertable)) {
                     attPicRows.add(tempAttRow);
-                }
+               // }
             }
             row.put("attinfos", attPicRows);
         }

+ 2 - 2
src/custom/restcontroller/webmanage/saletool/fad/FadGoods.java

@@ -117,9 +117,9 @@ public class FadGoods extends Controller {
             Rows attPicRows = new Rows();
             Rows tempAttRows = attRowsMap.getOrDefault(row.getString("attachmentid"), new Rows());
             for (Row tempAttRow : tempAttRows) {
-                if (tempAttRow.getString("usetype").equals(ownertable)) {
+              //  if (tempAttRow.getString("usetype").equals(ownertable)) {
                     attPicRows.add(tempAttRow);
-                }
+               // }
             }
             row.put("attinfos", attPicRows);
         }

+ 2 - 2
src/custom/restcontroller/webmanage/saletool/sharematerial/DesignPic.java

@@ -156,9 +156,9 @@ public class DesignPic extends Controller {
             Rows attPicRows = new Rows();
             Rows tempAttRows = attRowsMap.getOrDefault(row.getString("attachmentid"), new Rows());
             for (Row tempAttRow : tempAttRows) {
-                if (tempAttRow.getString("usetype").equals(ownertable)) {
+               // if (tempAttRow.getString("usetype").equals(ownertable)) {
                     attPicRows.add(tempAttRow);
-                }
+               // }
             }
             row.put("attinfos", attPicRows);
         }

+ 5 - 5
src/custom/restcontroller/webmanage/saletool/sharematerial/EquipmentResourceLibrary.java

@@ -156,9 +156,9 @@ public class EquipmentResourceLibrary extends Controller {
             Rows attPicRows = new Rows();
             Rows tempAttRows = attRowsMap.getOrDefault(row.getString("attachmentid"), new Rows());
             for (Row tempAttRow : tempAttRows) {
-                if (tempAttRow.getString("usetype").equals(ownertable)) {
+               // if (tempAttRow.getString("usetype").equals(ownertable)) {
                     attPicRows.add(tempAttRow);
-                }
+              //  }
             }
             row.put("attinfos", attPicRows);
         }
@@ -487,9 +487,9 @@ public class EquipmentResourceLibrary extends Controller {
             Rows attRows = new Rows();
             Rows tempAttRows = attRowsMap.getOrDefault(row.getString("attachmentid"), new Rows());
             for (Row tempAttRow : tempAttRows) {
-                if (tempAttRow.getString("usetype").equals(ownertable)) {
-                    attRows.add(tempAttRow);
-                }
+//                if (tempAttRow.getString("usetype").equals(ownertable)) {
+                attRows.add(tempAttRow);
+//                }
             }
             row.put("attinfos", attRows);
         }

+ 6 - 6
src/custom/restcontroller/webmanage/saletool/sharematerial/LongPicText.java

@@ -269,9 +269,9 @@ public class LongPicText extends Controller {
             Rows attPicRows = new Rows();
             Rows tempAttRows = attRowsMap.getOrDefault(row.getString("attachmentid"), new Rows());
             for (Row tempAttRow : tempAttRows) {
-                if (tempAttRow.getString("usetype").equals(ownertable)) {
-                    attPicRows.add(tempAttRow);
-                }
+                // if (tempAttRow.getString("usetype").equals(ownertable)) {
+                attPicRows.add(tempAttRow);
+                // }
             }
             row.put("attinfos", attPicRows);
         }
@@ -428,9 +428,9 @@ public class LongPicText extends Controller {
             Rows attRows = new Rows();
             Rows tempAttRows = attRowsMap.getOrDefault(row.getString("attachmentid"), new Rows());
             for (Row tempAttRow : tempAttRows) {
-                if (tempAttRow.getString("usetype").equals("sys_enterprise") && tempAttRow.getLong("ownerid") == sys_enterpriseid) {
-                    attRows.add(tempAttRow);
-                }
+//                if (tempAttRow.getString("usetype").equals("sys_enterprise") && tempAttRow.getLong("ownerid") == sys_enterpriseid) {
+                attRows.add(tempAttRow);
+//                }
             }
             row.put("attinfos", attRows);
         }

+ 2 - 2
src/custom/restcontroller/webmanage/saletool/sharematerial/Renderings.java

@@ -137,9 +137,9 @@ public class Renderings extends Controller {
             Rows attPicRows = new Rows();
             Rows tempAttRows = attRowsMap.getOrDefault(row.getString("attachmentid"), new Rows());
             for (Row tempAttRow : tempAttRows) {
-                if (tempAttRow.getString("usetype").equals(ownertable)) {
+               // if (tempAttRow.getString("usetype").equals(ownertable)) {
                     attPicRows.add(tempAttRow);
-                }
+              //  }
             }
             row.put("attinfos", attPicRows);
         }