|
|
@ -5,6 +5,7 @@ import com.jingcheng.template.model.AwardRecord;
|
|
|
|
import com.jingcheng.template.service.AwardRecordService;
|
|
|
|
import com.jingcheng.template.service.AwardRecordService;
|
|
|
|
import com.jingcheng.template.util.AjaxRequest;
|
|
|
|
import com.jingcheng.template.util.AjaxRequest;
|
|
|
|
import com.jingcheng.template.util.AjaxResult;
|
|
|
|
import com.jingcheng.template.util.AjaxResult;
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
@ -25,8 +26,8 @@ public class AwardRecordController extends BaseController<AwardRecordService, Aw
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
JSONObject jsonObject = ajaxRequest.getData();
|
|
|
|
JSONObject jsonObject = ajaxRequest.getData();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Long userId = jsonObject.getLong("userId");
|
|
|
|
String userId = jsonObject.getString("userId");
|
|
|
|
if (null == userId){
|
|
|
|
if (StringUtils.isEmpty(userId)){
|
|
|
|
ajaxResult.setRetcode(AjaxResult.FAILED);
|
|
|
|
ajaxResult.setRetcode(AjaxResult.FAILED);
|
|
|
|
ajaxResult.setRetmsg("userId为空");
|
|
|
|
ajaxResult.setRetmsg("userId为空");
|
|
|
|
return ajaxResult;
|
|
|
|
return ajaxResult;
|
|
|
@ -48,9 +49,9 @@ public class AwardRecordController extends BaseController<AwardRecordService, Aw
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
JSONObject jsonObject = ajaxRequest.getData();
|
|
|
|
JSONObject jsonObject = ajaxRequest.getData();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Long userId = jsonObject.getLong("userId");
|
|
|
|
String userId = jsonObject.getString("userId");
|
|
|
|
String source = jsonObject.getString("source");
|
|
|
|
String source = jsonObject.getString("source");
|
|
|
|
if (null == userId){
|
|
|
|
if (StringUtils.isEmpty(userId)){
|
|
|
|
ajaxResult.setRetcode(AjaxResult.FAILED);
|
|
|
|
ajaxResult.setRetcode(AjaxResult.FAILED);
|
|
|
|
ajaxResult.setRetmsg("userId为空");
|
|
|
|
ajaxResult.setRetmsg("userId为空");
|
|
|
|
return ajaxResult;
|
|
|
|
return ajaxResult;
|
|
|
@ -100,9 +101,9 @@ public class AwardRecordController extends BaseController<AwardRecordService, Aw
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
AjaxResult ajaxResult = new AjaxResult();
|
|
|
|
JSONObject jsonObject = ajaxRequest.getData();
|
|
|
|
JSONObject jsonObject = ajaxRequest.getData();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Long userId = jsonObject.getLong("userId");
|
|
|
|
String userId = jsonObject.getString("userId");
|
|
|
|
String source = jsonObject.getString("source");
|
|
|
|
String source = jsonObject.getString("source");
|
|
|
|
if (null == userId){
|
|
|
|
if (StringUtils.isEmpty(userId)){
|
|
|
|
ajaxResult.setRetcode(AjaxResult.FAILED);
|
|
|
|
ajaxResult.setRetcode(AjaxResult.FAILED);
|
|
|
|
ajaxResult.setRetmsg("userId为空");
|
|
|
|
ajaxResult.setRetmsg("userId为空");
|
|
|
|
return ajaxResult;
|
|
|
|
return ajaxResult;
|
|
|
|