|
@@ -5,6 +5,7 @@ import com.iamberry.wechat.core.entity.ResultMsg;
|
|
|
import com.iamberry.wechat.core.entity.WechatUtils;
|
|
|
import com.iamberry.wechat.core.entity.admin.ShopSystemRule;
|
|
|
import com.iamberry.wechat.core.entity.member.Member;
|
|
|
+import com.iamberry.wechat.core.entity.warrantyCard.WarrantyCard;
|
|
|
import com.iamberry.wechat.face.admin.SystemService;
|
|
|
import com.iamberry.wechat.face.phone.PhoneCodeService;
|
|
|
import com.iamberry.wechat.face.warranty.WarrantyService;
|
|
@@ -23,6 +24,7 @@ import org.jsoup.select.Elements;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@@ -30,6 +32,7 @@ import java.io.IOException;
|
|
|
import java.text.MessageFormat;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.regex.Matcher;
|
|
|
import java.util.regex.Pattern;
|
|
@@ -51,6 +54,31 @@ public class WarrantyCardHandler {
|
|
|
@Autowired
|
|
|
private WarrantyService warrantyService;
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询个人质保卡集合信息
|
|
|
+ * @param request
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ @ResponseBody
|
|
|
+ @RequestMapping("/select_warranty_list")
|
|
|
+ public ResultMsg selectWarrantyList(HttpServletRequest request) throws Exception {
|
|
|
+ ResultMsg msg = new ResultMsg();
|
|
|
+ WarrantyCard card = new WarrantyCard();
|
|
|
+ Member member = wechatUtils.getUserBySession(request);
|
|
|
+ card.setUserOpenId(member.getUserOpenid());
|
|
|
+ card.setCardTypeState(1);
|
|
|
+ card.setPage(null);
|
|
|
+
|
|
|
+ //查询质保卡集合
|
|
|
+ List<WarrantyCard> cardList = warrantyService.listWarrantyCard(card);
|
|
|
+ msg.setData(cardList);
|
|
|
+ msg.setResultCode(ResultInfo.SUCCESSCODE);
|
|
|
+ msg.setStatus(true);
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 根据电话号码查询百胜订单信息
|
|
|
* @param request
|