|
@@ -36,7 +36,6 @@ import com.zhongzheng.modules.course.vo.CourseBusinessVo;
|
|
|
import com.zhongzheng.modules.course.vo.CourseChapterVo;
|
|
|
import com.zhongzheng.modules.course.vo.CourseProjectTypeVo;
|
|
|
import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
-import com.zhongzheng.modules.goods.domain.GoodsCourse;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
import com.zhongzheng.modules.grade.bo.*;
|
|
@@ -72,7 +71,6 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.security.core.token.TokenService;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
@@ -733,6 +731,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
if (Validator.isEmpty(userVo.getRealName()) || Validator.isEmpty(userVo.getIdCard()) || Validator.isEmpty(userVo.getTelPhone())) {
|
|
|
return "用户信息缺失";
|
|
|
}
|
|
|
+ if (Validator.isEmpty(userVo.getEduLevel()) || Validator.isEmpty(userVo.getCompanyName()) || Validator.isEmpty(userVo.getSex())) {
|
|
|
+ return "用户详细信息缺失";
|
|
|
+ }
|
|
|
if (Validator.isEmpty(orderGoods.getSevenYear())) {
|
|
|
return "商品年份缺失";
|
|
|
}
|
|
@@ -748,7 +749,10 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
params.put("sfz", userVo.getIdCard());
|
|
|
params.put("dh", userVo.getTelPhone());
|
|
|
params.put("bmrq", DateUtils.timestampToDate(bmrq));
|
|
|
- String dataTxt = params.get("zh") + params.get("bh") + params.get("year") + params.get("xm") + params.get("sfz") + params.get("dh") + params.get("bmrq");
|
|
|
+ params.put("dw", userVo.getCompanyName());
|
|
|
+ params.put("xl", userVo.getEduLevel());
|
|
|
+ params.put("xb", userVo.getSex()==1?"男":"女");
|
|
|
+ String dataTxt = params.get("zh") + params.get("bh") + params.get("year") + params.get("xm") + params.get("sfz") + params.get("dh") + params.get("dw") + params.get("xl") + params.get("xb") + params.get("bmrq");
|
|
|
log.info("报名信息推送参数"+ dataTxt);
|
|
|
String encrypted = dataSign(dataTxt, SEVEN_OFFICIALPUSH_TOKEN);
|
|
|
params.put("SignMsg", encrypted);
|
|
@@ -1434,6 +1438,30 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
return totalRs;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public String sendClientPost(ClientPostAddBo bo) {
|
|
|
+ if(Validator.isEmpty(bo.getContent())){
|
|
|
+ throw new CustomException("参数错误");
|
|
|
+ }
|
|
|
+ String respone = "";
|
|
|
+ try {
|
|
|
+ Map<String, String> params = Splitter.on("&").withKeyValueSeparator("=").split(bo.getContent());
|
|
|
+ Map<String, String> head = new HashMap<>();
|
|
|
+ if(Validator.isNotEmpty(bo.getToken())){
|
|
|
+ head.put("token", bo.getToken());
|
|
|
+ }
|
|
|
+ respone = HttpUtils.postFormBodyHeader(bo.getUrl(), params,head);
|
|
|
+ if (Validator.isEmpty(respone)) {
|
|
|
+ return "响应信息空";
|
|
|
+ }
|
|
|
+ return respone;
|
|
|
+
|
|
|
+ } catch (IOException e) {
|
|
|
+ // throw new CustomException("请求错误");
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//填充满列表的用户信息
|
|
|
private Map<String, Object> fillListWeek(List<ClassPeriodStudentExportVo> list) {
|
|
|
List<ClassPeriodStudentExportWeekAllVo> newList = new ArrayList<>();
|