Commit a4c6f496 by chizw

sop短链 构建失败问题修复

1 parent ccd8d272
package cn.com.glsx.execute.config; package cn.com.glsx.execute.config;
import cn.com.glsx.execute.api.dubbo.ShortUrlApi; //import cn.com.glsx.execute.api.dubbo.ShortUrlApi;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory; //import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; //import org.springframework.context.annotation.Configuration;
/** /**
* @author deployer name * @author deployer name
...@@ -14,14 +14,14 @@ import org.springframework.context.annotation.Configuration; ...@@ -14,14 +14,14 @@ import org.springframework.context.annotation.Configuration;
* @Company: Didihu.com.cn * @Company: Didihu.com.cn
* @Copyright Copyright (c) 2018 * @Copyright Copyright (c) 2018
*/ */
@Configuration //@Configuration
public class DubboConfig { //public class DubboConfig {
//
@Autowired // @Autowired
private ReferenceBuilderFactory factory; // private ReferenceBuilderFactory factory;
//
@Bean // @Bean
public ShortUrlApi ShortUrlApi() { // public ShortUrlApi ShortUrlApi() {
return factory.builder(ShortUrlApi.class)/*.url("dubbo://localhost:22883")*/.check(false).timeout(30000).version("1.0.0").build(); // return factory.builder(ShortUrlApi.class)/*.url("dubbo://localhost:22883")*/.check(false).timeout(30000).version("1.0.0").build();
} // }
} //}
package cn.com.glsx.execute.modules.converter;
import cn.com.glsx.execute.modules.entity.User;
import cn.com.glsx.execute.modules.model.UserBO;
import cn.com.glsx.execute.modules.model.UserDTO;
import javax.annotation.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2023-09-27T15:16:24+0800",
comments = "version: 1.5.2.Final, compiler: javac, environment: Java 1.8.0_181 (Oracle Corporation)"
)
public class UserConverterImpl implements UserConverter {
@Override
public UserDTO do2dto(User user) {
if ( user == null ) {
return null;
}
UserDTO userDTO = new UserDTO();
userDTO.setId( user.getId() );
userDTO.setAccount( user.getAccount() );
userDTO.setUsername( user.getUsername() );
userDTO.setRealname( user.getRealname() );
userDTO.setPassword( user.getPassword() );
userDTO.setPhone( user.getPhone() );
return userDTO;
}
@Override
public User dto2do(UserDTO userDTO) {
if ( userDTO == null ) {
return null;
}
User user = new User();
user.setId( userDTO.getId() );
user.setAccount( userDTO.getAccount() );
user.setPassword( userDTO.getPassword() );
user.setUsername( userDTO.getUsername() );
user.setRealname( userDTO.getRealname() );
user.setPhone( userDTO.getPhone() );
return user;
}
@Override
public UserBO do2bo(User user) {
if ( user == null ) {
return null;
}
UserBO userBO = new UserBO();
userBO.setRealName( user.getRealname() );
userBO.setId( user.getId() );
userBO.setAccount( user.getAccount() );
userBO.setPassword( user.getPassword() );
userBO.setUsername( user.getUsername() );
userBO.setPhone( user.getPhone() );
userBO.setAvatar( user.getAvatar() );
return userBO;
}
@Override
public User bo2do(UserBO userBO) {
if ( userBO == null ) {
return null;
}
User user = new User();
user.setRealname( userBO.getRealName() );
user.setId( userBO.getId() );
user.setAccount( userBO.getAccount() );
user.setPassword( userBO.getPassword() );
user.setUsername( userBO.getUsername() );
user.setPhone( userBO.getPhone() );
user.setAvatar( userBO.getAvatar() );
return user;
}
}
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
<dependencies> <dependencies>
<dependency> <!-- <dependency>-->
<groupId>org.oreframework.boot</groupId> <!-- <groupId>org.oreframework.boot</groupId>-->
<artifactId>ore-boot-autoconfigure</artifactId> <!-- <artifactId>ore-boot-autoconfigure</artifactId>-->
<version>2.2.0-SNAPSHOT</version> <!-- <version>2.2.0-SNAPSHOT</version>-->
</dependency> <!-- </dependency>-->
</dependencies> </dependencies>
<build> <build>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!