feat: 药品关联信息上下传输功能

dev
chenhc 6 months ago
parent a91d50021f
commit e5cd13ff4f

@ -12,13 +12,11 @@ import com.glxp.sale.common.res.BaseResponse;
import com.glxp.sale.common.util.ResultVOUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -141,4 +139,20 @@ public class DirectConnectController {
}
@GetMapping("/udiwms/relCode/detailByParentCode")
public BaseResponse detailByParentCode(@RequestParam("parentCode") String parentCode) {
Map<String, Object> paramMap = new HashMap<>(2);
paramMap.put("parentCode", parentCode);
String response = UHttpClient.mipsGetHead(getSpmsUrl() + "/udiwms/relCode/detailByParentCode", paramMap, getHeaders());
try {
BaseResponse data = JSONObject.parseObject(response, new TypeReference<BaseResponse>() {
});
return data;
} catch (Exception e) {
e.printStackTrace();
return ResultVOUtils.error(500, "连接失败!");
}
}
}

Loading…
Cancel
Save