| | |
| | | import com.gkhy.exam.institutionalaccess.model.vo.*; |
| | | import com.gkhy.exam.institutionalaccess.service.*; |
| | | import com.gkhy.exam.institutionalaccess.utils.ConvertTimeUtils; |
| | | import com.gkhy.exam.institutionalaccess.utils.SendMessageUtil; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | private ThBatchCourseChapterService thBatchCourseChapterService; |
| | | @Autowired |
| | | private ThSubjectTypeService subjectTypeService; |
| | | @Autowired |
| | | private ThStudentManagerService thStudentManagerService; |
| | | |
| | | @Autowired |
| | | private SendMessageUtil sendMessageUtil; |
| | | |
| | | @Override |
| | | public List<ThBatchVO> listByPage(ThBatchQuery query) { |
| | |
| | | return respDTOS; |
| | | } |
| | | |
| | | //短信提醒 |
| | | @Override |
| | | public AjaxResult sendMes(String idcard) { |
| | | ThStudent thStudent = thStudentManagerService.findByIdCard(idcard); |
| | | if (StringUtils.isEmpty(thStudent.getPhone()) || thStudent.getPhone().equals("-")){ |
| | | return AjaxResult.error("该学员未绑定手机号"); |
| | | } |
| | | //调用短信接口 |
| | | String[] phone={thStudent.getPhone()}; |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | map.put("name",thStudent.getName()); |
| | | map.put("platform",thStudent.getInstitutionName()); |
| | | sendMessageUtil.sendMessageCheck(phone,map); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | public String getObtainSuperiors(String code){ |
| | | List<ThSubjectType> subjectTypeList = subjectTypeService.getSubjectTypeList(); |
| | | if(StringUtils.isEmpty(code)){ |