|
|
@@ -422,6 +422,24 @@ public class DesignRest extends BaseService {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @RestMapping(name = "changeTagType", auth = true, sort = 61, comment = "切换标签组", methods = {"POST"})
|
|
|
+ @WebApiBean(result = true, type = DesignTag.class)
|
|
|
+ public CompletableFuture<RMap> changeTagType(
|
|
|
+ @RestBody(comment = "标签") List<DesignTag> tagList,
|
|
|
+ @RestParam(name = "&", comment = "登录用户,无需传入") ERPTokenUser currentUser,
|
|
|
+ @RestHeader(name = ERPHeader.HTTPHEADER_DATASOURCE) String dataSourceId,
|
|
|
+ @RestHeader(name = ERPHeader.HTTPHEADER_SUPPLIER) String supplierCode) {
|
|
|
+ return CompletableFuture.supplyAsync(
|
|
|
+ () -> {
|
|
|
+ RetResult<List<DesignTag>> result = designService.changeTagType(tagList, dataSourceId, Long.parseLong(supplierCode), currentUser);
|
|
|
+ if (result.isSuccess())
|
|
|
+ return RMapUtils.successV2(result.getResult(), null, null);
|
|
|
+ else return RMapUtils.error(HttpCode.BAD_REQUEST.value(), result.getRetinfo());
|
|
|
+ }, getExecutor()
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
@RestMapping(name = "deleteDesignTag", auth = true, sort = 62, comment = "删除设计标签", methods = {"POST"})
|
|
|
@WebApiBean(result = true, type = DesignTag.class)
|
|
|
public CompletableFuture<RMap> deleteDesignTag(
|