| | |
| | | import com.thhy.general.common.BasicResult; |
| | | import com.thhy.general.config.SysUserInfo; |
| | | import com.thhy.general.utils.UserInfoUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | String unitProjectName = values.get("unitProjectName").toString(); |
| | | |
| | | String segmentId = segmentMapper.segmentNameByProjectName(unitProjectName); |
| | | if(!segmentId1.equals(segmentId)){ |
| | | if(StringUtils.isNotBlank(segmentId) && !segmentId1.equals(segmentId)){ |
| | | return BasicResult.faild("11111","error","标段名称被占用"); |
| | | } |
| | | segmentMapper.segmentUpdate(values); |