master
ck 5 years ago
parent 1c9af09813
commit 29f4f5644d

@ -170,15 +170,14 @@ public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, A
@Override
public AjaxResult addAwardRecordInfo(JSONObject jsonObject) {
AjaxResult ajaxResult = new AjaxResult();
Long awardRecordId = jsonObject.getLong("awardRecordId");
String userId = jsonObject.getString("userId");
String name = jsonObject.getString("name");
String phone = jsonObject.getString("phone");
String mail = jsonObject.getString("mail");
String address = jsonObject.getString("address");
if (null == awardRecordId){
if (StringUtils.isEmpty(userId)){
ajaxResult.setRetcode(AjaxResult.FAILED);
ajaxResult.setRetmsg("记录id不可为空");
ajaxResult.setRetmsg("用户id不可为空");
return ajaxResult;
}
if (StringUtils.isBlank(name)){

Loading…
Cancel
Save