c1f2d67022dc013719c3aaebfaac8305713e3ae5.svn-base 808 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.chinacreator.process.util;
  2. import com.chinacreator.common.util.URLUtil;
  3. import com.chinacreator.process.dao.DictionaryDao;
  4. /**
  5. * 调用cap包周期接口工具类
  6. * @date 20200427
  7. */
  8. public class CycleUtil {
  9. public static String cycleCancel(String mdn,String spproductid, String cpid,String spid) throws Exception{
  10. DictionaryDao dictionaryDao = SpringUtils.getBean(DictionaryDao.class);
  11. String vacUrl = dictionaryDao.getValue("cycleCancel");
  12. if(vacUrl.indexOf("?") == -1) {
  13. vacUrl += "?";
  14. } else {
  15. vacUrl += "&";
  16. }
  17. vacUrl += "mdn=" + mdn;
  18. vacUrl += "&spproductid=" + spproductid;
  19. vacUrl += "&cpid=" + cpid;
  20. vacUrl += "&spid=" + spid;
  21. return URLUtil.get(vacUrl); }
  22. }