Merge branch 'dev' of http://122.51.230.86:3000/dianliang/lanan-system into dev
This commit is contained in:
commit
c7d0f6e707
@ -31,6 +31,12 @@ public class DlInspectionProjectServiceImpl extends ServiceImpl<DlInspectionProj
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String createDlInspectionProject(DlInspectionProjectSaveReqVO createReqVO) {
|
public String createDlInspectionProject(DlInspectionProjectSaveReqVO createReqVO) {
|
||||||
|
//查询项目名称是否存在
|
||||||
|
DlInspectionProject dlInspectionProject1 = baseMapper.selectOne(new LambdaQueryWrapper<DlInspectionProject>()
|
||||||
|
.eq(DlInspectionProject::getProjectName, createReqVO.getProjectName()));
|
||||||
|
if (ObjectUtil.isNotNull(dlInspectionProject1)) {
|
||||||
|
throw new RuntimeException("检测项目已存在");
|
||||||
|
}
|
||||||
// 插入
|
// 插入
|
||||||
DlInspectionProject dlInspectionProject = BeanUtils.toBean(createReqVO, DlInspectionProject.class);
|
DlInspectionProject dlInspectionProject = BeanUtils.toBean(createReqVO, DlInspectionProject.class);
|
||||||
dlInspectionProject.setDeleted(false);
|
dlInspectionProject.setDeleted(false);
|
||||||
|
@ -23,5 +23,6 @@
|
|||||||
AND role_id = #{entity.roleId}
|
AND role_id = #{entity.roleId}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
ORDER BY create_time DESC
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue
Block a user