app个人中心意见反馈增加非空校验
This commit is contained in:
parent
f3d56ce25e
commit
32d5e3f61b
@ -186,12 +186,13 @@ public class GesturePwdServiceImpl implements GesturePwdService {
|
||||
Map<String, Object> testMap = (Map<String, Object>) MultipartDataUtil
|
||||
.readRequestParam(request, "UTF-8");
|
||||
Map<String, Object> fieldMap = (Map<String, Object>) testMap.get("fieldMap");
|
||||
BizObjectManager catManage = JBOFactory.getBizObjectManager(SUBMIT_USER_FEEDBACK.CLASS_NAME,sqlca);
|
||||
String opinion = fieldMap.get("opinion") == null ? "" : fieldMap.get("opinion").toString();
|
||||
String userid = fieldMap.get("userid") == null ? "" : fieldMap.get("userid").toString();
|
||||
ASUser CurUser = new ASUser(userid, sqlca);
|
||||
BizObjectManager catManage = JBOFactory.getBizObjectManager(SUBMIT_USER_FEEDBACK.CLASS_NAME,sqlca);
|
||||
|
||||
Map<String, Object> bo = new HashMap<String, Object>();
|
||||
if(opinion == null){
|
||||
if(opinion == null || "".equals(opinion) ){
|
||||
ReturnMapUtil.setReturnMap(null,RestfullConstant.baseProperty.get("fail").toString(), "请输入意见反馈信息!!!");
|
||||
return ReturnMapUtil.getReturnMap();
|
||||
}else{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user