保留对象信息
continuous-integration/drone/push Build is passing Details

同步到真实表
畅捷通同步方案更新
YXY 1 year ago
parent 119745516d
commit d4e64bdf16

@ -69,33 +69,34 @@ public class CJTEdiCallbackRequestVo {
return companyRelation.getSecret(); return companyRelation.getSecret();
} }
public String getLarkToAppToken(){ public String getLarkToAppToken(){
switch (cjtAccountEnum){ // switch (cjtAccountEnum){
case ONE: // case ONE:
return "UvVPbC0HdalNQ0sfJl6clZgZnhf"; // return "UvVPbC0HdalNQ0sfJl6clZgZnhf";
case TWO: // case TWO:
return "UBggb0PmVad1mNsKnTFcgsf7nLd"; // return "UBggb0PmVad1mNsKnTFcgsf7nLd";
default: // default:
return null; // return null;
} // }
return tableRelation.getToAppToken();
} }
public String getLarkToTableId(){ public String getLarkToTableId(){
switch (msgTypeEnum){ // switch (msgTypeEnum){
case SALE_DISPATCH_DELETE: // case SALE_DISPATCH_DELETE:
case SALE_DISPATCH_UPDATE: // case SALE_DISPATCH_UPDATE:
case SALE_DISPATCH_CREATE: // case SALE_DISPATCH_CREATE:
return "tbltlm4b4pYm9QrD"; // return "tbltlm4b4pYm9QrD";
case SALE_ORDER_CREATE: // case SALE_ORDER_CREATE:
case SALE_ORDER_UPDATE: // case SALE_ORDER_UPDATE:
case SALE_ORDER_DELETE: // case SALE_ORDER_DELETE:
return "tblmZTswhz1zVMS1"; // return "tblmZTswhz1zVMS1";
case MANUFACTURE_ORDER_CREATE: // case MANUFACTURE_ORDER_CREATE:
case MANUFACTURE_ORDER_UPDATE: // case MANUFACTURE_ORDER_UPDATE:
case MANUFACTURE_ORDER_DELETE: // case MANUFACTURE_ORDER_DELETE:
return "tblyecbS3hdmPEE1"; // return "tblyecbS3hdmPEE1";
default: // default:
return null; // return null;
} // }
// return tableRelation.getToTableId(); return tableRelation.getToTableId();
} }
/** /**

@ -102,6 +102,10 @@ public abstract class CJTOperateCallBackAbstract {
erpLarkTempRelation.setCreateBy("System"); erpLarkTempRelation.setCreateBy("System");
erpLarkTempRelation.setCreateTime(date); erpLarkTempRelation.setCreateTime(date);
erpLarkTempRelation.setUpdateTime(date); erpLarkTempRelation.setUpdateTime(date);
JSONObject body = req.getBody();
if (body != null){
erpLarkTempRelation.setRemark(body.toJSONString());
}
erpLarkTempRelation.setFlag(FlagStatus.OK.getCode()); erpLarkTempRelation.setFlag(FlagStatus.OK.getCode());
erpLarkTempRelationMapper.insertErpLarkTempRelation(erpLarkTempRelation); erpLarkTempRelationMapper.insertErpLarkTempRelation(erpLarkTempRelation);
req.setTempId(erpLarkTempRelation.getId()); req.setTempId(erpLarkTempRelation.getId());

Loading…
Cancel
Save