丽知:仅退款根据店铺区分tob toc

This commit is contained in:
zhengyf 2024-10-23 17:43:28 +08:00
parent 99354e5968
commit 4598e64e8b
1 changed files with 29 additions and 3 deletions

View File

@ -21,6 +21,7 @@ import com.hzya.frame.plugin.lets.u8cdto.*;
import com.hzya.frame.plugin.lets.util.OfsOrderAfterSalesAmountAllocationUtil;
import com.hzya.frame.plugin.lets.util.QueryU8CEntityUtil;
import com.hzya.frame.plugin.lets.util.SaveOrUpdateBusinessLogUtil;
import com.hzya.frame.plugin.lets.util.ShopTobOrToCUtil;
import com.hzya.frame.plugin.lets.util.pushData.Attribute;
import com.hzya.frame.plugin.lets.util.pushData.PushU8CByApiCode;
import com.hzya.frame.plugin.lets.util.pushData.ZTResult;
@ -405,8 +406,10 @@ public class RefundOnlyPluginInitializer extends PluginBaseEntity {
parentvo.setLrr(OverallConstant.getOverAllValue("u8cApiZdrCode"));
//wldx 往来对象标识 (0 客户 2部门 3业务员)
parentvo.setWldx("2");
//hbbm 客商==店铺
//hbbm 客商==店铺,根据店铺区分tobtoc
parentvo.setHbbm(split[1]);
//根据店铺区分tobtoc,区分业务流程
checkFlow(parentvo,split[1]);
//deptid 部门
parentvo.setDeptid(split[2]);
//ywybm 业务员编码 ,不传喽
@ -420,8 +423,8 @@ public class RefundOnlyPluginInitializer extends PluginBaseEntity {
//djlxbm 单据类型编码交易类型编码使用此字段如D0D1D2
parentvo.setDjlxbm("D0");
//xslxbm 业务流程
parentvo.setXslxbm("JTK");//TOC仅退款
// //xslxbm 业务流程
// parentvo.setXslxbm("JTK");//TOC仅退款:JTK TOB仅退款:BJTK
//feinvstatus 开票状态
parentvo.setFeinvstatus("0");
@ -607,6 +610,29 @@ public class RefundOnlyPluginInitializer extends PluginBaseEntity {
});
}
/**
* 根据店铺区分tob toc业务流程
* TOC仅退款:JTK TOB仅退款:BJTK
* parentvo.setXslxbm("JTK");
* 非b及c
* @param parentvo
* @param shop
*/
@Autowired
private ShopTobOrToCUtil shopTobOrToCUtil;
public void checkFlow(ArapDjzbVO.Parentt parentvo,String shop){
String tobShop = shopTobOrToCUtil.getCommaShop("TOB");
String tocShop = shopTobOrToCUtil.getCommaShop("TOC");
System.out.println(tobShop);
System.out.println(tocShop);
if(tobShop.contains(shop)){
parentvo.setXslxbm("BJTK");//TOB
}else {
parentvo.setXslxbm("JTK");//TOC
}
}
/**
* ofs仅退款数据存中台mysql数据库
* 表头表体分别存忽略大小写 BeanUtil.copyPropreties(a,b,Copyoptions.create().ignoreCase())