From 4598e64e8b489f716c04beb38d261178b24f8934 Mon Sep 17 00:00:00 2001 From: zhengyf Date: Wed, 23 Oct 2024 17:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BD=E7=9F=A5=EF=BC=9A=E4=BB=85=E9=80=80?= =?UTF-8?q?=E6=AC=BE=E6=A0=B9=E6=8D=AE=E5=BA=97=E9=93=BA=E5=8C=BA=E5=88=86?= =?UTF-8?q?tob=20toc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sales/RefundOnlyPluginInitializer.java | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/RefundOnlyPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/RefundOnlyPluginInitializer.java index 0b04d213..9366d0cd 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/RefundOnlyPluginInitializer.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/sales/RefundOnlyPluginInitializer.java @@ -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())