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