|
|
@ -123,7 +123,7 @@ public class CompServiceImpl extends Service implements CompService {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public int updateForbiddenTagById(CompParam params) {
|
|
|
|
public int updateForbiddenTagById(CompParam params) {
|
|
|
|
HasRightUtil.hasRight(user, RIGHT_NAME, false);
|
|
|
|
HasRightUtil.hasRight(user, RIGHT_NAME, false);
|
|
|
|
CompPO compPO = CompPO.builder().id(params.getId()).canceled(params.getCanceled() ? 0 : 1).build();
|
|
|
|
CompPO compPO = CompPO.builder().id(params.getId()).canceled(params.getForbiddenTag() ? 0 : 1).build();
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
map.put("id", compPO.getId().toString());
|
|
|
|
map.put("id", compPO.getId().toString());
|
|
|
|
map.put("forbiddenTag", compPO.getCanceled());
|
|
|
|
map.put("forbiddenTag", compPO.getCanceled());
|
|
|
|