parent
de751c32e1
commit
56d88b2102
|
@ -13,6 +13,7 @@ import com.hzya.frame.plugin.lets.constant.OverallConstant;
|
|||
import com.hzya.frame.plugin.lets.constant.ProfilesActiveConstant;
|
||||
import com.hzya.frame.plugin.lets.dao.IOnlyAfterSalesBDao;
|
||||
import com.hzya.frame.plugin.lets.dao.IOnlyAfterSalesHDao;
|
||||
import com.hzya.frame.plugin.lets.entity.BdCubasdocEntity;
|
||||
import com.hzya.frame.plugin.lets.entity.OnlyAfterSalesBEntity;
|
||||
import com.hzya.frame.plugin.lets.entity.OnlyAfterSalesHEntity;
|
||||
import com.hzya.frame.plugin.lets.ofsvo.QueryOfsSoSaleOutVo;
|
||||
|
@ -409,8 +410,12 @@ public class RefundOnlyPluginInitializer extends PluginBaseEntity {
|
|||
parentvo.setLrr(OverallConstant.getOverAllValue("u8cApiZdrCode"));
|
||||
//wldx 往来对象标识 (0 客户 2部门 3业务员)
|
||||
parentvo.setWldx("2");
|
||||
//hbbm 客商==店铺,根据店铺区分tob、toc
|
||||
parentvo.setHbbm(split[1]);
|
||||
//hbbm 客商==店铺,根据店铺区分tob、toc,,,编码需要转换,转换称自定义项。
|
||||
BdCubasdocEntity entity = queryU8CEntityUtil.queryBdCubasdocBydef1(split[1]);
|
||||
if(entity==null){
|
||||
Assert.state(false,"根据客商自定义项1:{},未查询到客商基本档案,请假查。",split[1]);
|
||||
}
|
||||
parentvo.setHbbm(entity.getCustcode());
|
||||
//根据店铺区分tob、toc,区分业务流程
|
||||
checkFlow(parentvo,split[1]);
|
||||
//deptid 部门
|
||||
|
|
|
@ -421,9 +421,28 @@ public class QueryU8CEntityUtil {
|
|||
}
|
||||
////////////////////////////////////////////////////////////////////////////////////////公司自定义档案查询
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////客商基本档案
|
||||
@Autowired
|
||||
private IBdCubasdocDao iBdCubasdocDao;
|
||||
|
||||
|
||||
/**
|
||||
* 根据def1查询客商基本档案
|
||||
* @param def1
|
||||
*/
|
||||
public BdCubasdocEntity queryBdCubasdocBydef1(String def1){
|
||||
BdCubasdocEntity entity = new BdCubasdocEntity();
|
||||
entity.setDef1(def1);
|
||||
entity.setDr(0L);
|
||||
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||
List<BdCubasdocEntity> query = iBdCubasdocDao.query(entity);
|
||||
if (query.size() >= 1) {
|
||||
return query.get(0);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 模糊匹配会员id,在客商档案的自定义项1
|
||||
* 1889,1888
|
||||
|
@ -465,4 +484,6 @@ public class QueryU8CEntityUtil {
|
|||
|
||||
return bdCubasdocEntityMap.get(memberId);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////客商基本档案
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue