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