Compare commits
No commits in common. "68dd037dcc601457d7dc6ef777e4571f9169b623" and "85c0f41442f636f08cc67a55a7f669739a6310f5" have entirely different histories.
68dd037dcc
...
85c0f41442
@ -31,12 +31,6 @@ public class DlInspectionProjectServiceImpl extends ServiceImpl<DlInspectionProj
|
||||
|
||||
@Override
|
||||
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.setDeleted(false);
|
||||
|
||||
@ -23,6 +23,5 @@
|
||||
AND role_id = #{entity.roleId}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user