|
@@ -123,7 +123,7 @@ public class CommunityTagController extends BaseController {
|
|
|
@PostMapping("/addTag")
|
|
|
@Transactional
|
|
|
//@Anonymous
|
|
|
- public AjaxResult addTag(String tagName) {
|
|
|
+ public AjaxResult addTag(String tagName,String attribute1,String attribute2,String attribute3,String attribute4,String attribute5) {
|
|
|
if (StringUtils.isEmpty(tagName)) {
|
|
|
return AjaxResult.error("参数异常!");
|
|
|
}
|
|
@@ -135,7 +135,13 @@ public class CommunityTagController extends BaseController {
|
|
|
communityTag.setTagHot(0L);
|
|
|
communityTag.setDelete(false);
|
|
|
communityTag.setCreateBy(userId);
|
|
|
+ communityTag.setAttribute1(attribute1);
|
|
|
+ communityTag.setAttribute2(attribute2);
|
|
|
+ communityTag.setAttribute3(attribute3);
|
|
|
+ communityTag.setAttribute4(attribute4);
|
|
|
+ communityTag.setAttribute5(attribute5);
|
|
|
communityTag.setCreateTime(DateUtils.parseDate(DateUtils.getTime()));
|
|
|
+ System.out.println("communityTag: " + communityTag);
|
|
|
communityTagService.save(communityTag);
|
|
|
} catch (Exception e) {
|
|
|
throw new ProjectException();
|