Commit 53273fa3 authored by 13223's avatar 13223

第一次上传

parents
Pipeline #1333 failed with stages
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.ejianc</groupId>
<artifactId>ejc-propertmanagement</artifactId>
<version>3.0.0-SNAPSHOT</version>
</parent>
<artifactId>ejc-propertmanagement-api</artifactId>
<name>ejc-propertmanagement-api</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>com.ejianc</groupId>
<artifactId>ejc-core</artifactId>
<version>3.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.ejianc</groupId>
<artifactId>ejc-idm-api</artifactId>
<version>3.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.ejianc</groupId>
<artifactId>ejc-skeleton</artifactId>
<version>3.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.ejianc</groupId>
<artifactId>ejc-propertmanagement</artifactId>
<version>3.0.0-SNAPSHOT</version>
</parent>
<artifactId>ejc-propertmanagement-impl</artifactId>
<name>ejc-propertmanagement-impl</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>com.ejianc</groupId>
<artifactId>ejc-propertmanagement-api</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.ejianc</groupId>
<artifactId>ejc-auth</artifactId>
<version>3.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package com.ejianc.business.propertManagement.bean;
import java.util.Date;
import java.math.*;
import java.util.List;
import java.util.ArrayList;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ejianc.framework.skeleton.template.BaseEntity;
import com.ejianc.framework.skeleton.template.annotation.SubEntity;
/**
* 房产维修
*
* @author generator
*
*/
@TableName("ejc_house_maintenance_entity")
public class houseMaintenanceEntity extends BaseEntity {
private static final long serialVersionUID = 1L;
}
package com.ejianc.business.propertManagement.mapper;
import org.apache.ibatis.annotations.Mapper;
import com.ejianc.framework.skeleton.template.BaseCrudMapper;
import com.ejianc.business.propertManagement.bean.houseMaintenanceEntity;
/**
* 房产维修
*
* @author generator
*
*/
@Mapper
public interface houseMaintenanceMapper extends BaseCrudMapper<houseMaintenanceEntity> {
}
package com.ejianc.business.propertManagement.service;
import com.ejianc.framework.skeleton.template.IBaseService;
import com.ejianc.business.propertManagement.bean.houseMaintenanceEntity;
/**
* 房产维修
*
* @author generator
*
*/
public interface IhouseMaintenanceService extends IBaseService<houseMaintenanceEntity> {
}
package com.ejianc.business.propertManagement.service.impl;
import org.springframework.stereotype.Service;
import com.ejianc.foundation.support.api.IBillTypeApi;
import com.ejianc.framework.core.response.CommonResponse;
import com.ejianc.framework.skeleton.billState.service.ICommonBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
@Service("houseMaintenance")
public class houseMaintenanceBpmServiceImpl implements ICommonBusinessService {
@Autowired
private IBillTypeApi billTypeApi;
/**
* 提交前回调
*
* @param billId
* @param state
* @return
*/
@Override
public CommonResponse<String> beforeSubmitProcessor(Long billId, Integer state, String billTypeCode) {
//TODO
return CommonResponse.success();
};
/**
* 提交完回调
*
* @param
* @return
*/
@Override
public CommonResponse<String> afterSubmitProcessor(Long billId, Integer state, String billTypeCode){
//TODO
return CommonResponse.success();
}
/**
* 有审批流的撤回前回调
*
* @param billId
* @param state
* @return
*/
@Override
public CommonResponse<String> beforeHasBpmBack(Long billId, Integer state, String billTypeCode) {
return CommonResponse.success();
};
/**
* 有审批流的撤回后回调
*
* @param
* @return
*/
@Override
public CommonResponse<String> afterHasBpmBack(Long billId, Integer state, String billTypeCode){
return CommonResponse.success();
};
/**
* 审批节点审批中时节点审批前回调
*
* @param billId
* @param state
* @return
*/
@Override
public CommonResponse<String> beforeInApprovalBack(Long billId, Integer state, String billTypeCode, String sign) {
return CommonResponse.success();
};
/**
* 终审审核前回调
*
* @param billId
* @param state
* @return
*/
@Override
public CommonResponse<String> beforeApprovalProcessor(Long billId, Integer state, String billTypeCode) {
//TODO
return CommonResponse.success();
}
/**
* 终审审核完回调
*
* @param
* @return
*/
@Override
public CommonResponse<String> afterApprovalProcessor(Long billId, Integer state, String billTypeCode) {
//TODO
return CommonResponse.success();
}
/**
* 弃审前事件回调
*
* @param billId
* @param state
* @return
*/
@Override
public CommonResponse<String> beforeAbstainingProcessor(Long billId, Integer state, String billTypeCode) {
//TODO
return CommonResponse.success();
}
/**
* 弃审后事件回调
*
* @param billId
* @param state
* @return
*/
@Override
public CommonResponse<String> afterAbstainingProcessor(Long billId, Integer state, String billTypeCode) {
//TODO
// 参数是单据类型编码字符串 根据需求是否打开下面代码
/**CommonResponse<String> resp = billTypeApi.checkQuote(billTypeCode, billId);
if(!resp.isSuccess()){
return CommonResponse.error("无法撤回!"+resp.getMsg());
}*/
return CommonResponse.success();
}
}
package com.ejianc.business.propertManagement.service.impl;
import org.springframework.stereotype.Service;
import com.ejianc.framework.skeleton.template.BaseServiceImpl;
import com.ejianc.business.propertManagement.mapper.houseMaintenanceMapper;
import com.ejianc.business.propertManagement.bean.houseMaintenanceEntity;
import com.ejianc.business.propertManagement.service.IhouseMaintenanceService;
/**
* 房产维修
*
* @author generator
*
*/
@Service("houseMaintenanceService")
public class houseMaintenanceServiceImpl extends BaseServiceImpl<houseMaintenanceMapper, houseMaintenanceEntity> implements IhouseMaintenanceService{
}
package com.ejianc.business.propertManagement.vo;
import java.util.Date;
import java.math.*;
import java.util.List;
import java.util.ArrayList;
import java.io.Serializable;
import com.ejianc.framework.skeleton.template.BaseVO;
/**
* 房产维修
*
* @author generator
*
*/
public class houseMaintenanceVO extends BaseVO {
private static final long serialVersionUID = 1L;
}
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.ejianc</groupId>
<artifactId>ejc-propertmanagement</artifactId>
<version>3.0.0-SNAPSHOT</version>
</parent>
<artifactId>ejc-propertmanagement-web</artifactId>
<name>ejc-propertmanagement-web</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.47</version>
</dependency>
<dependency>
<groupId>com.ejianc</groupId>
<artifactId>ejc-propertmanagement-impl</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
<!--Spring Boot Actuator,感应服务端变化-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
package com.ejianc;
import org.springframework.boot.Banner;
import org.springframework.boot.ResourceBanner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
@EnableEurekaClient
@EnableFeignClients
@SpringBootApplication
@ConfigurationProperties
@ComponentScan
public class PropertmanagementServerApp {
public static void main(String[] args) {
Resource bannerResource = new ClassPathResource("banner.txt");
Banner banner = new ResourceBanner(bannerResource);
new SpringApplicationBuilder(PropertmanagementServerApp.class).banner(banner).run(args);
}
}
ejc-propertmanagement
\ No newline at end of file
common:
security:
user:
name: ejianc
password: ejianc
server:
port: 8080
servlet:
context-path: /ejc-propertmanagement-web
tomcat:
uri-encoding: utf-8
min-space-threads: 50
max-threads: 1000
spring:
application:
name: ejc-propertmanagement-web
http:
encoding:
charset: utf-8
main:
allow-bean-definition-overriding: true
cloud:
config:
name: ${spring.application.name}
profile: local
label: master
uri: https://${common.security.user.name}:${common.security.user.password}@portal.17elian.com/ejc-configserver
eureka:
client:
register-with-eureka: false
fetch-registry: false
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date{HH:mm:ss.SSS} [%X{call_thread_id}] [%X{current_user_name}] [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="rollingFile" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>/tmp/logs/ejc-propertmanagement-web.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>/tmp/logs/ejc-propertmanagement-web.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>3</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%date{HH:mm:ss.SSS} [%X{call_thread_id}] [%X{current_user_name}] [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<!--log4jdbc -->
<logger name="jdbc.connection" level="OFF" />
<logger name="jdbc.audit" level="OFF" />
<logger name="jdbc.resultset" level="OFF" />
<logger name="jdbc.sqlonly" level="OFF" />
<logger name="jdbc.sqltiming" level="OFF" />
<root level="INFO">
<appender-ref ref="console" />
<appender-ref ref="rollingFile" />
</root>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.ejianc</groupId>
<artifactId>parent-pom</artifactId>
<version>3.0.1-SNAPSHOT</version>
</parent>
<artifactId>ejc-propertmanagement</artifactId>
<name>ejc-propertmanagement</name>
<version>3.0.0-SNAPSHOT</version>
<groupId>com.ejianc</groupId>
<url>http://maven.apache.org</url>
<packaging>pom</packaging>
<modules>
<module>ejc-propertmanagement-api</module>
<module>ejc-propertmanagement-impl</module>
<module>ejc-propertmanagement-web</module>
</modules>
</project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment