|
|
@ -4,6 +4,8 @@ import com.yxt.anrui.fin.api.kingdee.KingDeeBillId; |
|
|
|
import com.yxt.anrui.fin.api.kingdee.KingDeeBillUrl; |
|
|
|
import com.yxt.anrui.fin.api.kingdee.saloutstock.SalOutStock; |
|
|
|
import com.yxt.anrui.fin.biz.kingdee.FinKingDeeService; |
|
|
|
import com.yxt.anrui.portal.api.sysmapping.SysMappingInfoQuery; |
|
|
|
import com.yxt.anrui.portal.api.sysmapping.SysMappingInfoVo; |
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -11,7 +13,7 @@ import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
/** |
|
|
|
* 保存采购出库单 |
|
|
|
* 保存销售出库单 |
|
|
|
*/ |
|
|
|
@Service |
|
|
|
public class SalOutStockService extends FinKingDeeService { |
|
|
@ -27,6 +29,24 @@ public class SalOutStockService extends FinKingDeeService { |
|
|
|
try { |
|
|
|
//业务表的主表数据集合
|
|
|
|
Map<String,String> map_fEntityModel_= object2Map(salOutStock); |
|
|
|
|
|
|
|
//项目类别
|
|
|
|
String F_PAEZ_AssistantType = map_fEntityModel_.get("F_PAEZ_AssistantType"); |
|
|
|
String F_PAEZ_AssistantKey = map_fEntityModel_.get("F_PAEZ_AssistantKey"); |
|
|
|
SysMappingInfoQuery smiq=new SysMappingInfoQuery(); |
|
|
|
smiq.setMap_sourceKey("CWXT"); |
|
|
|
smiq.setMap_object("销售出库单"); |
|
|
|
smiq.setMap_item("项目类别"); |
|
|
|
smiq.setDictKey(F_PAEZ_AssistantKey); |
|
|
|
smiq.setDictTypeCode(F_PAEZ_AssistantType); |
|
|
|
ResultBean<SysMappingInfoVo> sysMappingInfoVoResultBean = sysMappingFeign.selectMappingInfo(smiq); |
|
|
|
boolean success = sysMappingInfoVoResultBean.getSuccess(); |
|
|
|
if(!success){ |
|
|
|
return rb.setMsg(sysMappingInfoVoResultBean.getMsg()); |
|
|
|
} |
|
|
|
String F_PAEZ_Assistant=sysMappingInfoVoResultBean.getData().getMap_itemKey();//TODO 根据应付类别的code,key查询金蝶系统中的应付类别的编码 映射来源“CWXT”/“财务系统”
|
|
|
|
map_fEntityModel_.put("F_PAEZ_Assistant",F_PAEZ_Assistant); |
|
|
|
|
|
|
|
//准备 物料列表的数据 ForEntryBill
|
|
|
|
List<SalOutStock.FEntity> fEntity = salOutStock.getFEntity(); |
|
|
|
List<Map<String, String>> vehicleListMap = createVehicleLists(fEntity); |
|
|
|