|
|
@@ -261,6 +261,31 @@ public class trial extends Controller {
|
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
|
|
|
|
+ @API(title = "撤回", apiversion = R.ID2025121610461102.v1.class)
|
|
|
+ public String unsubmit() throws YosException {
|
|
|
+ Long sa_trialid = content.getLong("sa_trialid");
|
|
|
+
|
|
|
+ Rows rows = getTrialRow(sa_trialid);
|
|
|
+ if (rows.isEmpty()) {
|
|
|
+ return getErrReturnObject().setErrMsg("试用申请不存在").toString();
|
|
|
+ }
|
|
|
+ if (!rows.get(0).getString("status").equals("提交")) {
|
|
|
+ return getErrReturnObject().setErrMsg("当前状态不可撤回").toString();
|
|
|
+ }
|
|
|
+
|
|
|
+ UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, "sa_trial");
|
|
|
+ updateSQL.setSiteid(siteid);
|
|
|
+ updateSQL.setUniqueid(sa_trialid);
|
|
|
+ updateSQL.setValue("status", "新建");
|
|
|
+ updateSQL.setValue("checkby", "null");
|
|
|
+ updateSQL.setValue("checkdate", "null");
|
|
|
+ updateSQL.update();
|
|
|
+
|
|
|
+ dbConnect.runSqlUpdate(DataContrlLog.createLog(this, "sa_trial", sa_trialid, "撤回", "撤回成功").getSQL());
|
|
|
+ return getSucReturnObject().toString();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@API(title = "试用申请-审核", apiversion = R.ID2025110713430802.v1.class)
|
|
|
public String check() throws YosException {
|
|
|
Long sa_trialid = content.getLong("sa_trialid");
|