【泛微样品领用接口】处理超长字符
This commit is contained in:
parent
6a7a8c2ffb
commit
c3dfe086fb
|
|
@ -2,6 +2,7 @@ package tqq9.lc123.cloud.app.api.plugin;
|
||||||
|
|
||||||
import kd.bos.dataentity.entity.DynamicObject;
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
import kd.bos.openapi.api.plugin.ApiSavePlugin;
|
import kd.bos.openapi.api.plugin.ApiSavePlugin;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import tqq9.lc123.cloud.app.plugin.utils.FWUtils;
|
import tqq9.lc123.cloud.app.plugin.utils.FWUtils;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
@ -89,6 +90,17 @@ public class FWOtheroutApplySavePlugin implements ApiSavePlugin {
|
||||||
//泛微审批状体
|
//泛微审批状体
|
||||||
reqDatum.put("tqq9_fwstate", "C");
|
reqDatum.put("tqq9_fwstate", "C");
|
||||||
|
|
||||||
|
//处理收货地址长度
|
||||||
|
String tqq9_lshxx_tag = (String) reqDatum.get("tqq9_lshxx_tag");
|
||||||
|
if(StringUtils.isNotBlank(tqq9_lshxx_tag)){
|
||||||
|
reqDatum.put("tqq9_lshxx_tag", tqq9_lshxx_tag);
|
||||||
|
if(tqq9_lshxx_tag.length() >= 254){
|
||||||
|
String substring = tqq9_lshxx_tag.substring(0, 255);
|
||||||
|
reqDatum.put("tqq9_lshxx", substring);
|
||||||
|
}else{
|
||||||
|
reqDatum.put("tqq9_lshxx", tqq9_lshxx_tag);
|
||||||
|
}
|
||||||
|
}
|
||||||
String ckNumber = null;
|
String ckNumber = null;
|
||||||
//明细
|
//明细
|
||||||
List<Map<String, Object>> entries = (List<Map<String, Object>>) reqDatum.get("entryentity");
|
List<Map<String, Object>> entries = (List<Map<String, Object>>) reqDatum.get("entryentity");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue