Merge branch 'develop_3' into 'develop_master'

Develop 3

See merge request LiuChao/foton-slrs-system-rest!295
This commit is contained in:
王夏晖
2021-12-17 10:53:16 +08:00
5 changed files with 15 additions and 6 deletions
@@ -78,7 +78,7 @@ public class FileMaterialController extends BaseController<FileMaterial> {
@PutMapping
@ApiOperation("修改文件资料组")
public ResponseMessage updateFileMaterial(FileMaterial fileMaterial){
public ResponseMessage updateFileMaterial(@RequestBody FileMaterial fileMaterial){
boolean b = iFileMaterialService.updateById(fileMaterial);
return Result.success(b);
@@ -8,6 +8,8 @@ import lombok.Data;
@Data
public class FileMaterialPage {
private String id;
private String dataTitle;
private String dataType;
@@ -52,7 +52,17 @@ public class FileMaterialServiceImpl extends ServiceImpl<FileMaterialDao, FileMa
queryPage.getEndDataUploadTime());
}
return this.page(new Page<>(queryPage.getPage(),queryPage.getPageSize()),queryWrapper);
if (queryPage.getId()!=null && !"".equals(queryPage.getId()) ){
queryWrapper.eq("id",queryPage.getId());
}
IPage<FileMaterial> page=null;
if (queryPage.getPage()==null || queryPage .getPageSize()==null){
page=new Page<>(1,1);
}else {
page=new Page<>(queryPage.getPage(),queryPage.getPageSize());
}
return this.page(page,queryWrapper);
}
@Override
@@ -303,7 +303,7 @@ public class SarStandardsInfoController extends BaseController<SarStandardsInfo>
if (result > 0) {
return Result.success("0", "删除成功", result);
}else if(result == -1) {
return Result.success("-1","所选的标准下挂有标准,无法删除");
return Result.success("-1","所选的标准下挂有清单,无法删除");
}
else {
return Result.error("删除失败");
@@ -901,9 +901,6 @@
<!-- 标准名称 -->
<if test="standName != null and standName != ''">
and stand_name like concat(concat('%',#{standName}),'%')
or STAND_NUMBER like concat(concat('%',#{standName}),'%')
or STAND_YEAR like concat(concat('%',#{standName}),'%')
or STAND_SORT like concat(concat('%',#{standName}),'%')
</if>
<if test="standEnName != null and standEnName != ''">
and stand_en_name like concat(concat('%',#{standEnName}),'%')