|
@@ -34,6 +34,7 @@ import com.google.zxing.WriterException;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -293,4 +294,21 @@ public class UserController extends AppBaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新historyApp
|
|
|
+ */
|
|
|
+ @Login
|
|
|
+ @GetMapping("/updateHistoryApp")
|
|
|
+ public R updateHistoryApp(@Param("historyApp") String historyApp) {
|
|
|
+ String userId = getUserId();
|
|
|
+ FsUser fsUser = new FsUser();
|
|
|
+ fsUser.setUserId(Long.parseLong(userId));
|
|
|
+// fsUser.setHistoryApp(historyApp);
|
|
|
+ if (userService.updateFsUser(fsUser)>0) {
|
|
|
+ return R.ok();
|
|
|
+ } else {
|
|
|
+ return R.error("用户不存在!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|