|
|
@@ -12,6 +12,7 @@ import p2.pao.PaoRemote;
|
|
|
import p2.pao.PaoSetRemote;
|
|
|
import p2.util.P2Exception;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
|
|
|
public class supplyanddemand extends Controller {
|
|
|
@@ -296,9 +297,29 @@ public class supplyanddemand extends Controller {
|
|
|
break;
|
|
|
}
|
|
|
case "已解决": {
|
|
|
+ long timdialogid = content.getLong("timdialogid");
|
|
|
long tenterprise_userid = content.getLong("tenterprise_userid");
|
|
|
long tcooperationagentsid = getUser(tenterprise_userid).getLong("tagentsid");
|
|
|
- dbConnect.runSqlUpdate("update tsupplyanddemand set fstatus='已解决',changeby='" + username + "',changedate=getDate(),tcooperationagentsid='" + tcooperationagentsid + "' where siteid='" + siteid + "' and tagentsid='" + tagentsid + "' and tsupplyanddemandid='" + tsupplyanddemandid + "'");
|
|
|
+ ArrayList<String> list = new ArrayList<>();
|
|
|
+ list.add("update tsupplyanddemand set fstatus='已解决',changeby='" + username + "',changedate=getDate(),tcooperationagentsid='" + tcooperationagentsid + "',timdialogid_cooperation='" + timdialogid + "' where siteid='" + siteid + "' and tagentsid='" + tagentsid + "' and tsupplyanddemandid='" + tsupplyanddemandid + "'");
|
|
|
+ list.add("update timdialog set fdatastatus='1' where siteid='" + siteid + "' and timdialogid='" + timdialogid + "'");
|
|
|
+ dbConnect.runSqlUpdate(list);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case "对接中":{
|
|
|
+ long timdialogid = content.getLong("timdialogid");
|
|
|
+ ArrayList<String> list = new ArrayList<>();
|
|
|
+ list.add("update tsupplyanddemand set fstatus='对接中',changeby='" + username + "',changedate=getDate(),timdialogid_talking='" + timdialogid + "' where siteid='" + siteid + "' and tagentsid='" + tagentsid + "' and tsupplyanddemandid='" + tsupplyanddemandid + "'");
|
|
|
+ list.add("update timdialog set fdatastatus='2' where siteid='" + siteid + "' and timdialogid='" + timdialogid + "'");
|
|
|
+ dbConnect.runSqlUpdate(list);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ case "待对接":{
|
|
|
+ long timdialogid = content.getLong("timdialogid");
|
|
|
+ ArrayList<String> list = new ArrayList<>();
|
|
|
+ list.add("update tsupplyanddemand set fstatus='待对接',changeby='" + username + "',changedate=getDate(),timdialogid_talking=null where siteid='" + siteid + "' and tagentsid='" + tagentsid + "' and tsupplyanddemandid='" + tsupplyanddemandid + "'");
|
|
|
+ list.add("update timdialog set fdatastatus='0' where siteid='" + siteid + "' and timdialogid='" + timdialogid + "'");
|
|
|
+ dbConnect.runSqlUpdate(list);
|
|
|
break;
|
|
|
}
|
|
|
default: {
|