|
|
@@ -319,6 +319,16 @@ public class serviceorder extends Controller {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ }else{
|
|
|
+ UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, "sa_serviceorder");
|
|
|
+ updateSQL.setUniqueid(sa_serviceorderid);
|
|
|
+ updateSQL.setSiteid(siteid);
|
|
|
+ updateSQL.setValue("status", "待受理");
|
|
|
+ updateSQL.setDateValue("allocationdate");
|
|
|
+ updateSQL.setValue("allocationby", username);
|
|
|
+ sqlList.add(updateSQL.getSQL());
|
|
|
+ sqlList.add(
|
|
|
+ DataContrlLog.createLog(this, "sa_serviceorder", sa_serviceorderid, "自动分配", "服务申请单自动分配成功").getSQL());
|
|
|
}
|
|
|
Rows workersRows = dbConnect.runSqlQuery(
|
|
|
"select t3.phonenumber from sys_hr t1 left join sys_users t3 on t1.userid = t3.userid left join sys_hr t4 on t1.siteid = t4.siteid and t1.reporthrid = t4.hrid where t1.siteid = '"
|