fix(自定义对比): 保存返回值
This commit is contained in:
@@ -6,7 +6,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/09/26/10:07
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/09/26/10:42
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,7 @@ import lombok.Data;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/09/26/11:14
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/17/10:09
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+2
-3
@@ -155,9 +155,8 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-标准检索保存")
|
||||
@ApiOperation(value="自定义对比-标准检索保存", notes="自定义对比-标准检索保存")
|
||||
@PostMapping(value = "/saveStandard")
|
||||
public Result<IPage<StandardVO>> saveStandard(@RequestBody StandardSaveVO standardSaveVO) {
|
||||
lawsCustomCompareInfoService.saveStandard(standardSaveVO);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
public Result<String> saveStandard(@RequestBody StandardSaveVO standardSaveVO) {
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK), lawsCustomCompareInfoService.saveStandard(standardSaveVO));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.laws.customcompare.entity.LawsCustomCompareCell;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/24/18:02
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/24/17:50
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.laws.customcompare.entity.LawsCustomCompareInfoStandard;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/24/18:02
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.laws.customcompare.entity.LawsCustomCompareInventory;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/24/18:02
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+3
-1
@@ -56,9 +56,11 @@ public interface ILawsCustomCompareInfoService extends IService<LawsCustomCompar
|
||||
|
||||
/**
|
||||
* 自定义对比-标准检索保存
|
||||
*
|
||||
* @param standardSaveVO
|
||||
* @return
|
||||
*/
|
||||
void saveStandard(StandardSaveVO standardSaveVO);
|
||||
String saveStandard(StandardSaveVO standardSaveVO);
|
||||
|
||||
/**
|
||||
* 自定义对比-表格详情
|
||||
|
||||
+3
-1
@@ -173,7 +173,7 @@ public class LawsCustomCompareInfoServiceImpl extends ServiceImpl<LawsCustomComp
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveStandard(StandardSaveVO standardSaveVO) {
|
||||
public String saveStandard(StandardSaveVO standardSaveVO) {
|
||||
// 自定义对比表
|
||||
LawsCustomCompareInfo lawsCustomCompareInfo = standardSaveVO.getLawsCustomCompareInfo();
|
||||
String id = String.valueOf(SnowflakeUtils.snowflake());
|
||||
@@ -218,6 +218,8 @@ public class LawsCustomCompareInfoServiceImpl extends ServiceImpl<LawsCustomComp
|
||||
new LambdaUpdateWrapper<LawsCustomCompareCell>()
|
||||
.eq(LawsCustomCompareCell::getInfoId, lawsCustomCompareInfo.getId())
|
||||
.notIn(LawsCustomCompareCell::getStandardId, ids));
|
||||
|
||||
return lawsCustomCompareInfo.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/25/15:25
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/25/15:56
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package com.jero.modules.laws.documenttool.common;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/13/11:46
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/18/18:01
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.jero.modules.split.enums;
|
||||
|
||||
/**
|
||||
* @Author: 31318
|
||||
* @Author: yjz
|
||||
* @Date: 2023/10/11/17:46
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user