Commit e3767f1a by zhanghj

V1.1.0--提交优化订单修改逻辑

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@20227 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 7d916224
...@@ -437,13 +437,13 @@ public class StandardOrderServiceImpl implements StandardOrderService { ...@@ -437,13 +437,13 @@ public class StandardOrderServiceImpl implements StandardOrderService {
* 1:商户id为null,技工服务商恢复null,订单状态初始状态 * 1:商户id为null,技工服务商恢复null,订单状态初始状态
* 2:判断技工,和服务商有木有变动,若没有变动,订单状态保持原样,若变动,则恢复订单状态为开始状态 * 2:判断技工,和服务商有木有变动,若没有变动,订单状态保持原样,若变动,则恢复订单状态为开始状态
*/ */
Byte activeStatus = null;
//技工id //技工id
Integer mechanicId = null; Integer mechanicId = null;
//服务商id //服务商id
Integer serviceId = null; Integer serviceId = null;
if (merchantId == null) { if (merchantId == null) {
activeStatus = (byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_MERCHANT_HAS_SENT.getActiveStatus(); Byte activeStatus = (byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_MERCHANT_HAS_SENT.getActiveStatus();
SysOrder order = new SysOrder(); SysOrder order = new SysOrder();
order.setActiveStatus(activeStatus); order.setActiveStatus(activeStatus);
order.setOrderType((byte) orderType); order.setOrderType((byte) orderType);
...@@ -476,7 +476,7 @@ public class StandardOrderServiceImpl implements StandardOrderService { ...@@ -476,7 +476,7 @@ public class StandardOrderServiceImpl implements StandardOrderService {
//服务商id //服务商id
Integer oldServiceId = sOrder.getMerchantId(); Integer oldServiceId = sOrder.getMerchantId();
Integer oldMechanicId = sOrder.getMechanicId(); Integer oldMechanicId = sOrder.getMechanicId();
activeStatus = sOrder.getActiveStatus(); Byte activeStatus = sOrder.getActiveStatus();
List<SysResourceMatching> resourMatchings = resourceMatchingService.getResourceMatchingList(merchantId, List<SysResourceMatching> resourMatchings = resourceMatchingService.getResourceMatchingList(merchantId,
installDeviceType); installDeviceType);
/* /*
...@@ -488,7 +488,7 @@ public class StandardOrderServiceImpl implements StandardOrderService { ...@@ -488,7 +488,7 @@ public class StandardOrderServiceImpl implements StandardOrderService {
if (userType != null && com.glsx.common.constants.Constants.USER_TYPE_SP == userType if (userType != null && com.glsx.common.constants.Constants.USER_TYPE_SP == userType
&& installDeviceType.equals(serviceKey)) { && installDeviceType.equals(serviceKey)) {
serviceId = resourMatching.getUserId(); serviceId = resourMatching.getUserId();
if (!serviceId.equals(oldServiceId)) { if (serviceId.equals(oldServiceId)) {
activeStatus = (byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_NOT_ASSIGN_MECHANIC.getActiveStatus(); activeStatus = (byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_NOT_ASSIGN_MECHANIC.getActiveStatus();
} }
} else if (userType != null && userType != com.glsx.common.constants.Constants.USER_TYPE_SP } else if (userType != null && userType != com.glsx.common.constants.Constants.USER_TYPE_SP
......
...@@ -2,9 +2,7 @@ package com.glsx.task; ...@@ -2,9 +2,7 @@ package com.glsx.task;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
...@@ -12,7 +10,6 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient; ...@@ -12,7 +10,6 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient; import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
/** /**
...@@ -29,7 +26,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; ...@@ -29,7 +26,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableEurekaClient @EnableEurekaClient
@EnableTransactionManagement @EnableTransactionManagement
@EnableDiscoveryClient @EnableDiscoveryClient
@ComponentScan(basePackages="com.glsx.common") @ComponentScan(basePackages="com.glsx")
@EnableFeignClients(basePackages = {"com.glsx.common.feign.client"}) @EnableFeignClients(basePackages = {"com.glsx.common.feign.client"})
@MapperScan(basePackages={"com.glsx.task.mapper"}) @MapperScan(basePackages={"com.glsx.task.mapper"})
public class Application extends SpringBootServletInitializer{ public class Application extends SpringBootServletInitializer{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!