技术方案库问题修改
This commit is contained in:
parent
22d2a4605d
commit
b8341a9d8c
|
|
@ -257,6 +257,7 @@ public class ToolService {
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(e.toString(), e);
|
log.error(e.toString(), e);
|
||||||
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
||||||
return AjaxResult.error(e.getMessage());
|
return AjaxResult.error(e.getMessage());
|
||||||
}
|
}
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
|
|
|
||||||
|
|
@ -106,8 +106,8 @@ public class ToolDto {
|
||||||
/**
|
/**
|
||||||
* 资源文件
|
* 资源文件
|
||||||
*/
|
*/
|
||||||
@NotEmpty(message = "文件不能为空", groups = {TechnicalDto.TechnicalDataDto.ADD.class})
|
@NotEmpty(message = "文件不能为空", groups = {ADD.class,IMPORT.class})
|
||||||
@Size(min = 1,message = "最少上传一个文件", groups = {TechnicalDto.TechnicalDataDto.ADD.class})
|
@Size(min = 1,message = "最少上传一个文件", groups = {ADD.class,IMPORT.class})
|
||||||
private List<ResourceFilePo> files;
|
private List<ResourceFilePo> files;
|
||||||
|
|
||||||
/**删除的文件*/
|
/**删除的文件*/
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@
|
||||||
INSTR(tets.technical_name,#{technicalName}) > 0
|
INSTR(tets.technical_name,#{technicalName}) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="natureConstruction!=null and natureConstruction!=''">
|
<if test="natureConstruction!=null and natureConstruction!=''">
|
||||||
AND tets.nature_construction = #{natureConstruction}
|
AND FIND_IN_SET(#{natureConstruction}, tets.nature_construction) > 0
|
||||||
</if>
|
</if>
|
||||||
<if test="structuralForm!=null and structuralForm!=''">
|
<if test="structuralForm!=null and structuralForm!=''">
|
||||||
AND tets.structural_form = #{structuralForm}
|
AND tets.structural_form = #{structuralForm}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue