|
@@ -6,6 +6,7 @@ import com.steerinfo.dil.model.BmstrainDetailsOrder;
|
|
|
import com.steerinfo.dil.model.BmstrainDetailsStatement;
|
|
|
import com.steerinfo.dil.model.BmstrainStatement;
|
|
|
import com.steerinfo.dil.service.IBmstrainStatementService;
|
|
|
+import com.steerinfo.dil.util.EASUtil;
|
|
|
import com.steerinfo.dil.util.NoUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -14,6 +15,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.text.DecimalFormat;
|
|
|
import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -36,6 +38,8 @@ public class BmstrainStatementServiceImpl implements IBmstrainStatementService {
|
|
|
NoUtil noUtil;
|
|
|
@Autowired
|
|
|
JoinApiFeign joinApiFeign;
|
|
|
+ @Autowired
|
|
|
+ EASUtil easUtil;
|
|
|
|
|
|
/**
|
|
|
* 查询最大id
|
|
@@ -120,9 +124,14 @@ public class BmstrainStatementServiceImpl implements IBmstrainStatementService {
|
|
|
bmstrainStatement.setInsertUpdateRemark("无");
|
|
|
int code = bmstrainStatementMapper.insertSelective(bmstrainStatement);
|
|
|
// 调用金蝶接口
|
|
|
-// List<Map<String, Object>> mapList = joinApiFeign.getPurchaseTrainDetailsOrder(statementId.intValue());
|
|
|
-// Map<String, Object> mapValue = joinApiFeign.getTrainStatement(statementId.intValue());
|
|
|
-// mapValue.put("mapList", mapList);
|
|
|
+ List<Map<String, Object>> entries = joinApiFeign.getPurchaseTrainDetailsOrder(statementId.intValue());
|
|
|
+ Map<String, Object> head = joinApiFeign.getTrainStatement(statementId.intValue());
|
|
|
+ Map<String,Object> input = new HashMap<>();
|
|
|
+ input.put("entries", entries);
|
|
|
+ input.put("head", head);
|
|
|
+ Map<String, Object> totalMap = easUtil.getTotalMap();
|
|
|
+ totalMap.put("input",input);
|
|
|
+ joinApiFeign.WSFaceWay(totalMap);
|
|
|
return code;
|
|
|
}
|
|
|
|