|
|
|
@ -25,7 +25,6 @@ import com.glxp.mipsdl.constant.ConstantType;
|
|
|
|
|
import com.glxp.mipsdl.constant.Constants;
|
|
|
|
|
import com.glxp.mipsdl.dao.auth.AuthUserDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.auth.AuthWarehouseDao;
|
|
|
|
|
import com.glxp.mipsdl.dao.auth.AuthWarehouseUserMapper;
|
|
|
|
|
import com.glxp.mipsdl.dao.basic.*;
|
|
|
|
|
import com.glxp.mipsdl.dao.inout.*;
|
|
|
|
|
import com.glxp.mipsdl.dao.thrsys.ThrInvWarehouseDao;
|
|
|
|
@ -75,6 +74,10 @@ import java.util.stream.Collectors;
|
|
|
|
|
@Slf4j
|
|
|
|
|
@Service(value = "100013HttpClient")
|
|
|
|
|
public class YxfyyyClient extends CommonHttpClient {
|
|
|
|
|
private final String[] buyType_3501 = {"24"};
|
|
|
|
|
private final String[] buyType_3502 = {"7", "6", "5", "4", "1", "16", "12", "28", "35"};
|
|
|
|
|
private final String[] buyType_3505 = {"QXCF001", "YPCF002"};
|
|
|
|
|
private final String[] buyType_3506 = {"YPTH001"};
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private ThrSystemDetailService thrSystemDetailService;
|
|
|
|
@ -135,6 +138,7 @@ public class YxfyyyClient extends CommonHttpClient {
|
|
|
|
|
private YbClient ybClient;
|
|
|
|
|
@Resource
|
|
|
|
|
private RelCodeDetailService relCodeDetailService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 拼接xml请求头
|
|
|
|
|
*
|
|
|
|
@ -1592,10 +1596,7 @@ public class YxfyyyClient extends CommonHttpClient {
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public BaseResponse uploadCollectOrder(PostCollectOrderRequest postCollectOrderRequest) {
|
|
|
|
|
String[] buyType_3501 = {"24"};
|
|
|
|
|
String[] buyType_3502 = {"7", "6", "5", "4", "1", "16", "12", "28", "35"};
|
|
|
|
|
String[] buyType_3505 = {"QXCF001", "YPCF002"};
|
|
|
|
|
String[] buyType_3506 = {"YPTH001"};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<IoCollectOrder> collectOrderList = postCollectOrderRequest.getCollectOrderList();
|
|
|
|
|
|
|
|
|
@ -1619,6 +1620,7 @@ public class YxfyyyClient extends CommonHttpClient {
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 辅助方法,用于检查busType是否存在于指定的buyType数组中
|
|
|
|
|
private static boolean matchBusType(String busType, String[] buyTypes) {
|
|
|
|
|
for (String buyType : buyTypes) {
|
|
|
|
@ -2030,4 +2032,18 @@ public class YxfyyyClient extends CommonHttpClient {
|
|
|
|
|
JSONObject dataJson = JSONObject.parseObject(jsonStr);
|
|
|
|
|
ybClient.ybPost("3506A", dataJson);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取交易类型集合
|
|
|
|
|
*
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public BaseResponse getBuyType() {
|
|
|
|
|
Map<String,String[]> buyTypeMap= new HashMap<>();
|
|
|
|
|
buyTypeMap.put("buyType_3501",buyType_3501);
|
|
|
|
|
buyTypeMap.put("buyType_3502",buyType_3502);
|
|
|
|
|
buyTypeMap.put("buyType_3505",buyType_3505);
|
|
|
|
|
buyTypeMap.put("buyType_3506",buyType_3506);
|
|
|
|
|
return ResultVOUtils.success(buyTypeMap);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|