|
@@ -14,10 +14,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import java.io.StringWriter;
|
|
|
import java.io.Writer;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Base64;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
+import java.util.*;
|
|
|
|
|
|
@Service
|
|
|
public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> implements ApplyInfoService {
|
|
@@ -63,6 +60,7 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
xs.ignoreUnknownElements();
|
|
|
String body = xs.toXML(applyInfo);
|
|
|
body = body.substring(body.indexOf("<user>")+6,body.indexOf("</user>"));
|
|
|
+ //推送mec注册接口
|
|
|
body = getBody(body,12301);
|
|
|
Date date = new Date();
|
|
|
try {
|
|
@@ -73,13 +71,12 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
RequestMecApplyClass applyClass = getApplyClass(applyInfo);
|
|
|
body = xs.toXML(applyClass);
|
|
|
body = body.substring(body.indexOf("<body>")+6,body.indexOf("</body>"));
|
|
|
- //推送mec注册接口
|
|
|
- body = getBody(body,125218);
|
|
|
+ //推送mec用户缴费
|
|
|
+ getBody(body,125218);
|
|
|
}catch (Exception e){
|
|
|
applyInfo.setPushStatus(2);
|
|
|
}
|
|
|
applyInfoDao.update(applyInfo);
|
|
|
-
|
|
|
return body;
|
|
|
}
|
|
|
}catch (Exception e){
|
|
@@ -187,6 +184,23 @@ public class ApplyInfoServiceImpl extends BaseServiceImpl<Integer, ApplyInfo> im
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Object getUserRegisterViewDetail(Integer stuId) {
|
|
|
+ Map<String, Object> vIewDetail = applyInfoDao.getUserRegisterVIewDetail(stuId);
|
|
|
+ String subName = vIewDetail.get("sub_name_").toString();
|
|
|
+ if(subName.contains("圆号") || subName.contains("上低音") ||subName.contains("长号") ||subName.contains("大号")){
|
|
|
+ vIewDetail.put("isCopperPipe",true);
|
|
|
+ }else {
|
|
|
+ vIewDetail.put("isCopperPipe",false);
|
|
|
+ }
|
|
|
+ /*if("圆号,上低音,长号,大号".contains(subName.split("\\.")[1])){
|
|
|
+ vIewDetail.put("isCopperPipe",true);
|
|
|
+ }else {
|
|
|
+ vIewDetail.put("isCopperPipe",false);
|
|
|
+ }*/
|
|
|
+ return vIewDetail;
|
|
|
+ }
|
|
|
+
|
|
|
private ResponseUserInfo parseRegisterInfo(String body){
|
|
|
body = "<body>" + new String(Base64.getDecoder().decode(body)) + "</body>";
|
|
|
ResponseUserInfo userInfo = XStreamUtil.xmlToObject("body", ResponseUserInfo.class, body);
|