|
|
@@ -890,6 +890,7 @@ public class workorder extends Controller {
|
|
|
@API(title = "验证手机", apiversion = R.ID2025072809441203.v1.class, accesstoken = false)
|
|
|
public String sendMessage() throws YosException {
|
|
|
String customerphone = content.getStringValue("customerphone");
|
|
|
+ String siteid = content.getStringValue("siteid");
|
|
|
if (!Pattern.matches("^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$", customerphone)) {
|
|
|
return getErrReturnObject().setErrMsg("手机格式有误").toString();
|
|
|
}
|
|
|
@@ -901,6 +902,18 @@ public class workorder extends Controller {
|
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @API(title = "判断经销商是否服务商", apiversion = R.ID2025073009481403.v1.class)
|
|
|
+ public String jundgeisserviceAgents() throws YosException {
|
|
|
+ Rows rows = dbConnect.runSqlQuery("select * from sa_agents t1 where t1.siteid='" + siteid + "' and t1.isservice=1 and t1.sys_enterpriseid=" + sys_enterpriseid);
|
|
|
+ if (rows.isEmpty()) {
|
|
|
+ return getErrReturnObject().setErrMsg("非服务商无法新增服务人员!").toString();
|
|
|
+ }
|
|
|
+
|
|
|
+ return getSucReturnObject().toString();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
private ArrayList<String> getAddWorkorderNodeSql(long sa_workorder_templateid, long sa_workorderid)
|
|
|
throws YosException {
|
|
|
ArrayList sqList = new ArrayList<String>();
|