Explorar o código

10064 服务申请单管理,添加 “通知” 功能,及 “通知时间” 字段

wu hai 6 días
pai
achega
f3640a4c2b

+ 5 - 0
src/custom/restcontroller/R.java

@@ -7080,6 +7080,11 @@ public class R {
         public static class v1 {
         }
     }
+
+    public static class ID2026042815542102 {
+        public static class v1 {
+        }
+    }
 }
 
 

+ 14 - 1
src/custom/restcontroller/webmanage/sale/serviceorder/serviceorder.java

@@ -397,11 +397,24 @@ public class serviceorder extends Controller {
         } else {
             row.put("backreason", "");
         }
-
+        row.putIfAbsent("noticedate","");
 
         return getSucReturnObject().setData(row).toString();
     }
 
+    @API(title = "通知时间", apiversion = R.ID2026042815542102.v1.class)
+    public String updateNoticeDate() throws YosException {
+        Long sa_serviceorderid = content.getLongValue("sa_serviceorderid");
+        UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, "sa_serviceorder");
+        updateSQL.setUniqueid(sa_serviceorderid);
+        updateSQL.setSiteid(siteid);
+        updateSQL.setValue("noticedate", getDateTime_Str());
+        updateSQL.update();
+        DataContrlLog.createLog(this, "sa_serviceorder", sa_serviceorderid, "通知时间", "已通知").insert();
+        return getSucReturnObject().toString();
+    }
+
+
     @API(title = "服务申请单详情(不验证token))", apiversion = R.ID20230217133003.v1.class, accesstoken = false)
     public String queryserviceorderMainWithoutToken() throws YosException {
         Long sa_serviceorderid = content.getLong("sa_serviceorderid");