This commit is contained in:
马三炮 2025-04-29 10:52:08 +08:00
parent 7f7c163e79
commit ca286722bd
2 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ public class TbProjectServiceImpl implements TbProjectService {
try {
TbProjectVo tbProjectVo = tbProjectMapper.getTbProjectByProName(data);
if (StringUtils.isNotNull(tbProjectVo) && data.getId()!=tbProjectVo.getId()){
return ServerResponse.createErroe("该项目部下存在该工程");
return ServerResponse.createErroe("该项目部下存在该工程");
}
Long userId = UserUtil.getLoginUser().getId();
data.setUpdateUserId(userId);
@ -135,7 +135,7 @@ public class TbProjectServiceImpl implements TbProjectService {
try {
TbProjectVo tbProjectVo = tbProjectMapper.getTbProjectByProName(data);
if (StringUtils.isNotNull(tbProjectVo)){
return ServerResponse.createErroe("该项目部下存在该工程");
return ServerResponse.createErroe("该项目部下存在该工程");
}
Long userId = UserUtil.getLoginUser().getId();
data.setCreateUserId(userId);

View File

@ -98,7 +98,7 @@
select tp.id as id,tp.pro_name as proName,tp.voltage_level as voltageLevel,tp.line_length as lineLength,
tp.plan_start_time as planStartTime,tp.plan_end_time as planEndTime,tp.lon as lon,tp.lat as lat,
tp.address as address,tp.pro_status as pro_status
from tb_project tp where pro_name = #{proName} and is_active ='1'
from tb_project tp where depart_id = #{departId} and pro_name = #{proName} and is_active ='1'
</select>
<select id="getDataAuthByDeptId" resultType="java.lang.Long">
SELECT all_children.id