@@ -4,7 +4,7 @@ import cn.com.taiji.common.manager.ManagerException; | |||
import cn.com.taiji.common.web.ApiResponse; | |||
import cn.com.taiji.iaw.api.MyValidController; | |||
import cn.com.taiji.iaw.dto.ass.AssDeviceLossReqDTO; | |||
import cn.com.taiji.iaw.manager.ass.AssDeviceLossManager; | |||
import cn.com.taiji.iaw.manager.ass.DeviceLossManager; | |||
import io.swagger.annotations.Api; | |||
import io.swagger.annotations.ApiOperation; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
@@ -18,10 +18,10 @@ import javax.validation.Valid; | |||
@Api(tags = {"售后-挂失解挂"}) | |||
@RestController | |||
@RequestMapping("/api/device") | |||
public class AssDeviceLossController extends MyValidController { | |||
public class DeviceLossController extends MyValidController { | |||
@Autowired | |||
private AssDeviceLossManager manager; | |||
private DeviceLossManager manager; | |||
@ApiOperation(value = "01-卡签挂失解挂") | |||
@PostMapping("/loss") |
@@ -4,7 +4,7 @@ import cn.com.taiji.common.manager.ManagerException; | |||
import cn.com.taiji.common.web.ApiResponse; | |||
import cn.com.taiji.iaw.api.MyValidController; | |||
import cn.com.taiji.iaw.dto.ass.*; | |||
import cn.com.taiji.iaw.manager.ass.AssDeviceRenewalManager; | |||
import cn.com.taiji.iaw.manager.ass.DeviceRenewalManager; | |||
import io.swagger.annotations.Api; | |||
import io.swagger.annotations.ApiOperation; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
@@ -25,10 +25,10 @@ import javax.validation.Valid; | |||
@Api(tags = {"卡、签续期"}) | |||
@RestController | |||
@RequestMapping("/api/renewal") | |||
public class AssDeviceRenewalController extends MyValidController{ | |||
public class DeviceRenewalController extends MyValidController{ | |||
@Autowired | |||
private AssDeviceRenewalManager manager; | |||
private DeviceRenewalManager manager; | |||
@ApiOperation("卡签续期查询接口") | |||
@PostMapping("/query") |
@@ -3,6 +3,6 @@ package cn.com.taiji.iaw.manager.ass; | |||
import cn.com.taiji.common.manager.ManagerException; | |||
import cn.com.taiji.iaw.dto.ass.AssDeviceLossReqDTO; | |||
public interface AssDeviceLossManager { | |||
public interface DeviceLossManager { | |||
void loss(AssDeviceLossReqDTO reqDto) throws ManagerException; | |||
} |
@@ -10,7 +10,7 @@ import org.springframework.beans.BeanUtils; | |||
import org.springframework.stereotype.Service; | |||
@Service | |||
public class AssDeviceLossManagerImpl extends AbstractIawManager implements AssDeviceLossManager { | |||
public class DeviceLossManagerImpl extends AbstractIawManager implements DeviceLossManager { | |||
@Override | |||
public void loss(AssDeviceLossReqDTO reqDto) throws ManagerException { | |||
reqDto.validate(); |
@@ -1,7 +1,6 @@ | |||
package cn.com.taiji.iaw.manager.ass; | |||
import cn.com.taiji.common.manager.ManagerException; | |||
import cn.com.taiji.common.manager.net.http.ServiceHandleException; | |||
import cn.com.taiji.iaw.dto.ass.*; | |||
/** | |||
@@ -11,7 +10,7 @@ import cn.com.taiji.iaw.dto.ass.*; | |||
* @email: huminghao@mail.taiji.com.cn | |||
* @version: 1.0 | |||
*/ | |||
public interface AssDeviceRenewalManager { | |||
public interface DeviceRenewalManager { | |||
AssDeviceRenewalQueryResponseDTO query(AssDeviceRenewalQueryRequestDTO dto) throws ManagerException; | |||
CardRenewalResponseDTO cardRenewal(CardRenewalRequestDTO dto) throws ManagerException; |
@@ -34,7 +34,6 @@ import com.google.common.collect.Lists; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.stereotype.Service; | |||
import org.springframework.transaction.annotation.Transactional; | |||
import org.springframework.util.ObjectUtils; | |||
import org.springframework.util.StringUtils; | |||
import java.time.LocalDateTime; | |||
@@ -49,7 +48,7 @@ import java.util.stream.Collectors; | |||
* @version: 1.0 | |||
*/ | |||
@Service | |||
public class AssDeviceRenewalManagerImpl extends AbstractIawManager implements AssDeviceRenewalManager { | |||
public class DeviceRenewalManagerImpl extends AbstractIawManager implements DeviceRenewalManager { | |||
@Autowired | |||
private QtkVehicleInfoRepo vehicleInfoRepo; |