|
@@ -38,7 +38,12 @@ public class serviceorder extends Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@API(title = "服务申请单新增更新", apiversion = R.ID20230206091403.v1.class)
|
|
@API(title = "服务申请单新增更新", apiversion = R.ID20230206091403.v1.class)
|
|
|
- @CACHEING_CLEAN(apiversions = {R.ID20230206091603.v1.class, R.ID20230206091703.v1.class, R.ID20230206101303.v1.class, R.ID20230217100703.v1.class, R.ID20230217133003.v1.class})
|
|
|
|
|
|
|
+ @CACHEING_CLEAN(apiversions = {
|
|
|
|
|
+ R.ID20230206091603.v1.class,
|
|
|
|
|
+ R.ID20230206091703.v1.class,
|
|
|
|
|
+ R.ID20230206101303.v1.class,
|
|
|
|
|
+ R.ID20230217100703.v1.class,
|
|
|
|
|
+ R.ID20230217133003.v1.class})
|
|
|
public String insertormodify_serviceorder() throws YosException {
|
|
public String insertormodify_serviceorder() throws YosException {
|
|
|
SQLList sqlList = new SQLList();
|
|
SQLList sqlList = new SQLList();
|
|
|
// 表名
|
|
// 表名
|
|
@@ -225,8 +230,6 @@ public class serviceorder extends Controller {
|
|
|
sys_enterpriseid = content.getLong("sys_enterpriseid");
|
|
sys_enterpriseid = content.getLong("sys_enterpriseid");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/*
|
|
/*
|
|
|
* 过滤条件设置
|
|
* 过滤条件设置
|
|
|
*/
|
|
*/
|
|
@@ -266,6 +269,7 @@ public class serviceorder extends Controller {
|
|
|
querySQL.setTableAlias("t0");
|
|
querySQL.setTableAlias("t0");
|
|
|
querySQL.addJoinTable(JOINTYPE.right, sqlFactory, "t1", "t0.siteid='111'", "*");
|
|
querySQL.addJoinTable(JOINTYPE.right, sqlFactory, "t1", "t0.siteid='111'", "*");
|
|
|
querySQL.setPage(pageSize, pageNumber);
|
|
querySQL.setPage(pageSize, pageNumber);
|
|
|
|
|
+ querySQL.setOrderBy("t1.sa_warrantycardid desc");
|
|
|
Rows rows = querySQL.query();
|
|
Rows rows = querySQL.query();
|
|
|
// 默认商品图片
|
|
// 默认商品图片
|
|
|
Rows defaultImageRows = beans.Item.Item.getItemdefaultImage(this);
|
|
Rows defaultImageRows = beans.Item.Item.getItemdefaultImage(this);
|
|
@@ -398,7 +402,7 @@ public class serviceorder extends Controller {
|
|
|
} else {
|
|
} else {
|
|
|
row.put("backreason", "");
|
|
row.put("backreason", "");
|
|
|
}
|
|
}
|
|
|
- row.putIfAbsent("noticedate","");
|
|
|
|
|
|
|
+ row.putIfAbsent("noticedate", "");
|
|
|
|
|
|
|
|
return getSucReturnObject().setData(row).toString();
|
|
return getSucReturnObject().setData(row).toString();
|
|
|
}
|
|
}
|
|
@@ -666,7 +670,16 @@ public class serviceorder extends Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@API(title = "服务申请单转工单", apiversion = R.ID20230207091003.v1.class)
|
|
@API(title = "服务申请单转工单", apiversion = R.ID20230207091003.v1.class)
|
|
|
- @CACHEING_CLEAN(apiversions = {R.ID20230206091603.v1.class, R.ID20230206091703.v1.class, R.ID20230206101303.v1.class, R.ID20230208140103.v1.class, R.ID20230208140203.v1.class, R.ID20230209091103.v1.class, R.ID20230207154203.v1.class, R.ID20230217100703.v1.class, R.ID20230217133003.v1.class})
|
|
|
|
|
|
|
+ @CACHEING_CLEAN(apiversions = {
|
|
|
|
|
+ R.ID20230206091603.v1.class,
|
|
|
|
|
+ R.ID20230206091703.v1.class,
|
|
|
|
|
+ R.ID20230206101303.v1.class,
|
|
|
|
|
+ R.ID20230208140103.v1.class,
|
|
|
|
|
+ R.ID20230208140203.v1.class,
|
|
|
|
|
+ R.ID20230209091103.v1.class,
|
|
|
|
|
+ R.ID20230207154203.v1.class,
|
|
|
|
|
+ R.ID20230217100703.v1.class,
|
|
|
|
|
+ R.ID20230217133003.v1.class})
|
|
|
public String serviceorderToWorkorder() throws YosException {
|
|
public String serviceorderToWorkorder() throws YosException {
|
|
|
|
|
|
|
|
Long sa_serviceorderid = content.getLong("sa_serviceorderid");
|
|
Long sa_serviceorderid = content.getLong("sa_serviceorderid");
|
|
@@ -777,7 +790,10 @@ public class serviceorder extends Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@API(title = "重新指派工单", apiversion = R.ID2025101710510903.v1.class)
|
|
@API(title = "重新指派工单", apiversion = R.ID2025101710510903.v1.class)
|
|
|
- @CACHEING_CLEAN(apiversions = {serviceorder.class, workorder.class, restcontroller.sale.serviceorder.serviceorder.class})
|
|
|
|
|
|
|
+ @CACHEING_CLEAN(apiversions = {
|
|
|
|
|
+ serviceorder.class,
|
|
|
|
|
+ workorder.class,
|
|
|
|
|
+ restcontroller.sale.serviceorder.serviceorder.class})
|
|
|
public String reAssigningWorkorder() throws YosException {
|
|
public String reAssigningWorkorder() throws YosException {
|
|
|
Long sa_workorderid = content.getLong("sa_workorderid");
|
|
Long sa_workorderid = content.getLong("sa_workorderid");
|
|
|
JSONArray projectlearders = content.getJSONArray("projectlearders");
|
|
JSONArray projectlearders = content.getJSONArray("projectlearders");
|
|
@@ -822,7 +838,12 @@ public class serviceorder extends Controller {
|
|
|
|
|
|
|
|
|
|
|
|
|
@API(title = "删除", apiversion = R.ID20230206091803.v1.class)
|
|
@API(title = "删除", apiversion = R.ID20230206091803.v1.class)
|
|
|
- @CACHEING_CLEAN(apiversions = {R.ID20230206091603.v1.class, R.ID20230206091703.v1.class, R.ID20230206101303.v1.class, R.ID20230217100703.v1.class, R.ID20230217133003.v1.class})
|
|
|
|
|
|
|
+ @CACHEING_CLEAN(apiversions = {
|
|
|
|
|
+ R.ID20230206091603.v1.class,
|
|
|
|
|
+ R.ID20230206091703.v1.class,
|
|
|
|
|
+ R.ID20230206101303.v1.class,
|
|
|
|
|
+ R.ID20230217100703.v1.class,
|
|
|
|
|
+ R.ID20230217133003.v1.class})
|
|
|
public String delete() throws YosException {
|
|
public String delete() throws YosException {
|
|
|
|
|
|
|
|
JSONArray sa_serviceorderids = content.getJSONArray("sa_serviceorderids");
|
|
JSONArray sa_serviceorderids = content.getJSONArray("sa_serviceorderids");
|
|
@@ -847,7 +868,10 @@ public class serviceorder extends Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@API(title = "作废服务申请单", apiversion = R.ID2025121519311203.v1.class)
|
|
@API(title = "作废服务申请单", apiversion = R.ID2025121519311203.v1.class)
|
|
|
- @CACHEING_CLEAN(apiClass = {workorder.class, serviceorder.class, warrantycard.class})
|
|
|
|
|
|
|
+ @CACHEING_CLEAN(apiClass = {
|
|
|
|
|
+ workorder.class,
|
|
|
|
|
+ serviceorder.class,
|
|
|
|
|
+ warrantycard.class})
|
|
|
public String cancelServiceOrder() throws YosException {
|
|
public String cancelServiceOrder() throws YosException {
|
|
|
long sa_serviceorderid = content.getLong("sa_serviceorderid");
|
|
long sa_serviceorderid = content.getLong("sa_serviceorderid");
|
|
|
String voidreason = content.getStringValue("voidreason");
|
|
String voidreason = content.getStringValue("voidreason");
|
|
@@ -884,7 +908,10 @@ public class serviceorder extends Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@API(title = "撤回分配服务申请单", apiversion = R.ID2025121818251203.v1.class)
|
|
@API(title = "撤回分配服务申请单", apiversion = R.ID2025121818251203.v1.class)
|
|
|
- @CACHEING_CLEAN(apiClass = {workorder.class, serviceorder.class, warrantycard.class})
|
|
|
|
|
|
|
+ @CACHEING_CLEAN(apiClass = {
|
|
|
|
|
+ workorder.class,
|
|
|
|
|
+ serviceorder.class,
|
|
|
|
|
+ warrantycard.class})
|
|
|
public String chehuiServiceOrder() throws YosException {
|
|
public String chehuiServiceOrder() throws YosException {
|
|
|
long sa_serviceorderid = content.getLong("sa_serviceorderid");
|
|
long sa_serviceorderid = content.getLong("sa_serviceorderid");
|
|
|
SQLList sqllist = new SQLList();
|
|
SQLList sqllist = new SQLList();
|