增加各单据提交泛微审核状态赋值
This commit is contained in:
parent
abef199c48
commit
eeb2939003
|
|
@ -40,6 +40,7 @@ public class ApBusBillSubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ public class PayApplySubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
if(data != null){
|
if(data != null){
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ public class PurconmSubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
if(data != null){
|
if(data != null){
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ public class ImInvCountBillSubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ public class OtherInSubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
if(data != null){
|
if(data != null){
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ public class OtherOutSubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
if(data != null){
|
if(data != null){
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ public class ShortageBillSubmitToFwOp extends AbstractOperationServicePlugIn imp
|
||||||
if(data != null){
|
if(data != null){
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@ public class PurOrderSubmitOp extends AbstractOperationServicePlugIn {
|
||||||
if(data != null){
|
if(data != null){
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ public class PurrefundApplySubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
if(data != null){
|
if(data != null){
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ public class MaterialSubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
List<Object> successPkIds = operationResult.getSuccessPkIds();
|
List<Object> successPkIds = operationResult.getSuccessPkIds();
|
||||||
for (Object successPkId : successPkIds) {
|
for (Object successPkId : successPkIds) {
|
||||||
DynamicObject bill = BusinessDataServiceHelper.loadSingle(successPkId, "bd_material");
|
DynamicObject bill = BusinessDataServiceHelper.loadSingle(successPkId, "bd_material");
|
||||||
|
boolean tqq9_issuccess = bill.getBoolean("tqq9_issuccess");
|
||||||
String resultStr = FWImpl.pushFwMaterial(bill);
|
String resultStr = FWImpl.pushFwMaterial(bill);
|
||||||
if(StringUtils.isNotBlank(resultStr)){
|
if(StringUtils.isNotBlank(resultStr)){
|
||||||
JSONObject resultObj = JSONObject.parseObject(resultStr);
|
JSONObject resultObj = JSONObject.parseObject(resultStr);
|
||||||
|
|
@ -40,13 +41,16 @@ public class MaterialSubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
JSONObject data = resultObj.getJSONObject("data");
|
JSONObject data = resultObj.getJSONObject("data");
|
||||||
if(data != null){
|
if(data != null){
|
||||||
String requestid = data.getString("requestid");
|
String requestid = data.getString("requestid");
|
||||||
|
if(tqq9_issuccess){
|
||||||
|
bill.set("tqq9_fwupdid", requestid);
|
||||||
|
}else{
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
|
}
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ public class SupplierSubmitToFwOp extends AbstractOperationServicePlugIn {
|
||||||
}else{
|
}else{
|
||||||
bill.set("tqq9_fwrequestid", requestid);
|
bill.set("tqq9_fwrequestid", requestid);
|
||||||
}
|
}
|
||||||
|
bill.set("tqq9_fwstate", "B");
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue