|
|
@@ -947,11 +947,11 @@ public class AdminApiController extends CertifyApiController {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "知识产权ID"));
|
|
|
return res;
|
|
|
}
|
|
|
- if (IntellectualPropertyType.PATENT.getCode() == type) {
|
|
|
+ if (IntellectualPropertyType.PATENT.getCode().equals(type)) {
|
|
|
res.setData(orgIntellectualPropertyService.selectPatentTypeDetail(id));
|
|
|
- } else if (IntellectualPropertyType.COPYRIGHT.getCode() == type) {
|
|
|
+ } else if (IntellectualPropertyType.COPYRIGHT.getCode().equals(type)) {
|
|
|
res.setData(orgIntellectualPropertyService.selectCopyrightTypeDetail(id));
|
|
|
- } else if (IntellectualPropertyType.COMMON.getCode() == type) {
|
|
|
+ } else if (IntellectualPropertyType.COMMON.getCode().equals(type)) {
|
|
|
OrgIntellectualPropertyDetailBo oipdb = new OrgIntellectualPropertyDetailBo();
|
|
|
BeanUtils.copyProperties(oip, oipdb);
|
|
|
res.setData(oipdb);
|