123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- package com.caimei.info;
- import com.caimei.modules.coupon.dao.CmCouponVipDao;
- import com.caimei.modules.coupon.entity.CmVipCoupon;
- import com.caimei.modules.landing.domain.CmBrandLanding;
- import com.caimei.modules.landing.mapper.CmBrandLandingMapper;
- import com.caimei.modules.order.entity.NewShopOrder;
- import com.caimei.modules.order.service.NewShopOrderService;
- import com.caimei.modules.product.dao.CmOrganizeProductInfoMapper;
- import com.caimei.modules.sys.utils.SMSUtils;
- import org.junit.Test;
- import org.springframework.beans.factory.annotation.Autowired;
- import com.caimei.modules.info.entity.Info;
- import com.caimei.modules.info.service.InfoService;
- import com.thinkgem.jeesite.common.test.SpringTransactionalContextTests;
- import com.thinkgem.jeesite.common.utils.Encodes;
- import com.thinkgem.jeesite.common.utils.StringUtils;
- import com.thinkgem.jeesite.test.service.InfomationService;
- import java.io.UnsupportedEncodingException;
- import java.util.List;
- public class InfoTest extends SpringTransactionalContextTests {
- @Autowired
- private InfomationService infomationService;
- @Autowired
- CmOrganizeProductInfoMapper cmOrganizeProductInfoMapper;
- @Autowired
- NewShopOrderService newShopOrderService;
- @Autowired
- private InfoService infoService;
- @Autowired
- private CmBrandLandingMapper cmBrandLandingMapper;
- @Autowired
- private CmCouponVipDao dao;
- @Test
- public void test(){
- // SMSUtils.sendSms(4, "17708413951", "【采美365】系统已为你分配机构客户,请及时跟进。机构名称【" + "newCmClub.getName()" + "】,联系人【" + "newCmClub.getLinkMan()" + "】,手机号【" + "15600000000" + "】,上一任销售【" + "etName()" + "】。");
- // NewShopOrder cmShopOrderByShopOrderID = newShopOrderService.getCmShopOrderByShopOrderID("29352");
- // System.out.println(cmShopOrderByShopOrderID);
- // CmBrandLanding cmBrandLanding = new CmBrandLanding();
- // cmBrandLanding.setType("not=1,2");
- // cmBrandLandingMapper.selectCmBrandLandingList(cmBrandLanding);
- // cmOrganizeProductInfoMapper.getCmOrganizeProductInfoList(null);
- // String str = "/pages/goods/goods-classify?classType=2&id=1038&title=%E7%8E%BB%E5%B0%BF%E9%85%B8%EF%BC%88%E5%B0%8F%E5%88%86%E5%AD%90%EF%BC%89";
- // String decode="";
- // try {
- // decode = java.net.URLDecoder.decode(str,"UTF-8");
- // } catch (UnsupportedEncodingException e) {
- // e.printStackTrace();
- // }
- // System.out.println(decode);
- // Info info = infoService.get("228");
- // String infoContent=Encodes.unescapeHtml(info.getInfoContent());
- // //infoContent=Encodes.urlDecode(infoContent);
- //// Document doc = Jsoup.parse(infoContent);
- //// Elements links = doc.getElementsByTag("div");
- //// for (Element link : links) {
- //// //page-break-after: always;
- //// String linkSrc = link.attr("style");
- //// if(StringUtils.equals(linkSrc, "page-break-after: always;")){
- ////
- //// }
- //// }
- //
- // String a="<div style=\"page-break-after: always;\">\r\n\t<span style=\"display: none;\"> </span></div>";
- // //String[] split = StringUtils.split(infoContent,a);
- // String[] split=StringUtils.splitByWholeSeparator(infoContent, a);
- // System.out.println(split[0]);
- // System.out.println("-------------------------------------------------------");
- // System.out.println(split[1]);
- }
- }
|