|
|
|
@ -17,10 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
@RestController |
|
|
|
|
@RequestMapping("tms/userInfo") |
|
|
|
@ -62,6 +59,8 @@ public class UserInfoController implements UserInfoControllerApi { |
|
|
|
|
@Transactional |
|
|
|
|
@PostMapping("/add") |
|
|
|
|
public R save(@RequestBody UserInfoEntity userInfoEntity){ |
|
|
|
|
String token ="UT_"+ UUID.randomUUID().toString().replace("-", ""); |
|
|
|
|
userInfoEntity.setToken(token); |
|
|
|
|
userInfoEntity.setSchoolId(2105); |
|
|
|
|
Integer schoolId = userInfoEntity.getSchoolId(); |
|
|
|
|
Integer integer = userInfoService.queryStudentAccount(userInfoEntity.getAccount(),schoolId); |
|
|
|
|