|
|
@@ -108,7 +108,7 @@ public class EsignContractTaskMX extends Controller {
|
|
|
querySQL.setWhere("t1.status=1");
|
|
|
querySQL.setWhere("NOT EXISTS (SELECT 1 from sa_esign_contract_taskmx WHERE sa_agentsid=t1.sa_agentsid and sa_esign_contract_taskid='" + sa_esign_contract_taskid + "' )");
|
|
|
querySQL.setSiteid(siteid);
|
|
|
- querySQL.setCondition("t2.enterprisename","t2.abbreviation","t1.agentnum");
|
|
|
+ querySQL.setCondition("t2.enterprisename", "t2.abbreviation", "t1.agentnum");
|
|
|
querySQL.setOrderBy("t1.createdate desc");
|
|
|
querySQL.setPage(pageSize, pageNumber);
|
|
|
Rows rows = querySQL.query();
|
|
|
@@ -179,6 +179,26 @@ public class EsignContractTaskMX extends Controller {
|
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
|
|
|
|
+ @API(title = "电子签合同任务明细-一键修改期限", apiversion = R.ID2026042813154102.v1.class)
|
|
|
+ public String newApiMethod() throws YosException {
|
|
|
+
|
|
|
+ Long sa_esign_contract_taskid = content.getLongValue("sa_esign_contract_taskid");
|
|
|
+ String begindate = content.getStringValue("begindate");
|
|
|
+ String enddate = content.getStringValue("enddate");
|
|
|
+
|
|
|
+ UpdateSQL updateSQL = SQLFactory.createUpdateSQL(this, "sa_esign_contract_taskmx");
|
|
|
+ updateSQL.setSiteid(siteid);
|
|
|
+ updateSQL.setWhere("sa_esign_contract_taskid", sa_esign_contract_taskid);
|
|
|
+ updateSQL.setValue("begindate", begindate);
|
|
|
+ updateSQL.setValue("enddate", enddate);
|
|
|
+ updateSQL.update();
|
|
|
+
|
|
|
+ DataContrlLog.createLog(this, "sa_esign_contract_task", sa_esign_contract_taskid, "一键修改期限", "一键修改期限为:" + begindate + "~" + enddate).insert();
|
|
|
+
|
|
|
+ return getSucReturnObject().toString();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@API(title = "电子签合同任务明细-修改季度任务金额", apiversion = R.ID2026042113202402.v1.class)
|
|
|
public String changeTaskMoney() throws YosException {
|
|
|
|
|
|
@@ -320,7 +340,7 @@ public class EsignContractTaskMX extends Controller {
|
|
|
Row agentRow = ContractTaskUtil.getAgentRow(this, sa_agentsid);
|
|
|
Row enterpriseRow = ContractTaskUtil.getEnterpriseRow(this, sys_enterpriseid);
|
|
|
//校验参数
|
|
|
- ContractTaskUtil.check(this, enterpriseRow,agentRow, taskmxrow);
|
|
|
+ ContractTaskUtil.check(this, enterpriseRow, agentRow, taskmxrow);
|
|
|
BigDecimal securitydeposit = ContractTaskUtil.getSecurityDeposit(this, sys_enterpriseid);
|
|
|
|
|
|
String license_name = content.getStringValue("license_name");
|