丽知:仅退款根据店铺区分tob toc
This commit is contained in:
parent
99354e5968
commit
4598e64e8b
|
@ -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 客商==店铺,根据店铺区分tob、toc
|
||||
parentvo.setHbbm(split[1]);
|
||||
//根据店铺区分tob、toc,区分业务流程
|
||||
checkFlow(parentvo,split[1]);
|
||||
//deptid 部门
|
||||
parentvo.setDeptid(split[2]);
|
||||
//ywybm 业务员编码 ,不传喽
|
||||
|
@ -420,8 +423,8 @@ public class RefundOnlyPluginInitializer extends PluginBaseEntity {
|
|||
|
||||
//djlxbm 单据类型编码(交易类型编码使用此字段,如D0、D1、D2)
|
||||
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())
|
||||
|
|
Loading…
Reference in New Issue