Commit 3cae87b6 by 陶光胜

导航保存增加icon路径

parent 491d733d
......@@ -13,6 +13,8 @@ import com.gic.enterprise.service.CustomGuideApiService;
import com.gic.enterprise.utils.UserDetailUtils;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -24,6 +26,7 @@ import java.util.Map;
@RestController
public class CustomGuideController {
private static final Logger log = LogManager.getLogger(CustomGuideController.class);
@Autowired
private CustomGuideApiService customGuideApiService;
......@@ -46,7 +49,7 @@ public class CustomGuideController {
guideDTO.setSort(json.getInteger("sort"));
guideDTO.setStatus(json.getInteger("status"));
guideDTO.setAppid(appId);
guideDTO.setIcon(json.getString("iconPath"));
guideDTO.setIconPath(json.getString("iconPath"));
guideDTO.setSelectedIconPath(json.getString("selectedIconPath"));
this.getPath(guideDTO, list, response.getResult());
list.add(guideDTO);
......@@ -54,6 +57,7 @@ public class CustomGuideController {
if(!isNeedNewVersion && this.isNeedNewVersion(list, enterpriseId, appId)){
return RestResponse.failure(ErrorCode.ISNEEDNEWVERSION.getCode(), ErrorCode.ISNEEDNEWVERSION.getErrorMsg());
}
log.info("保存的导航内容:{}", JSON.toJSONString(list));
ServiceResponse<Void> serviceResponse = this.customGuideApiService.saveGuide(list, isNeedNewVersion, enterpriseId, appId);
if(serviceResponse.isSuccess()){
return RestResponse.success();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment