Authored by ping

update

... ... @@ -8,6 +8,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.alibaba.fastjson.JSON;
import com.yoho.error.exception.ServiceException;
import com.yoho.service.model.union.request.ActiveUnionRequestBO;
import com.yoho.service.model.union.request.AddUnionRequestBO;
... ... @@ -71,7 +72,13 @@ public class UnionRest {
log.info("enter unionsRest.test");
UnionResponseBO response = new UnionResponseBO();
response.setMsg("success");
response.setSuccess(true);
response.setIsSuccess(true);
return response;
}
public static void main(String[] args) {
UnionResponseBO u = new UnionResponseBO();
System.out.println(u);
System.out.println(JSON.toJSONString(u));
}
}
... ...
... ... @@ -84,7 +84,7 @@ public class DingdangServiceImpl implements DingdangService {
addDingdang.info("addunions success with param is {}", request);
UnionResponseBO bo = new UnionResponseBO();
bo.setMsg("成功");
bo.setSuccess(true);
bo.setIsSuccess(true);
return bo;
}
... ... @@ -161,13 +161,13 @@ public class DingdangServiceImpl implements DingdangService {
//激活成功,从memcached中删除
cacheClient.delete(memKey);
bo.setMsg("激活成功");
bo.setSuccess(true);
bo.setIsSuccess(true);
} else {
unions.setIsActive("0");
unions.setId(u.getId());
unionsActiveRecordDAO.updateByPrimaryKey(unions);
bo.setMsg("激活失败");
bo.setSuccess(false);
bo.setIsSuccess(false);
}
try {
... ...