List<String> findReleaseIds(String agencyId, LocalDateTime time, OrderType type); | List<String> findReleaseIds(String agencyId, LocalDateTime time, OrderType type); | ||||
//查询启用状态的产品编号(不分渠道) | //查询启用状态的产品编号(不分渠道) | ||||
@Query("select releaseId from IssueProductPromotion where status = 'ENABLE' and dateOfListing <= ?2 and dateOfDelist >= ?2 and orderType = ?3") | |||||
@Query("select releaseId from IssueProductPromotion where status = 'ENABLE' and dateOfListing <= ?1 and dateOfDelist >= ?1 and orderType = ?2") | |||||
List<String> findReleaseIds(LocalDateTime time, OrderType type); | List<String> findReleaseIds(LocalDateTime time, OrderType type); | ||||
} | } |
import io.swagger.annotations.Api; | import io.swagger.annotations.Api; | ||||
import io.swagger.annotations.ApiOperation; | import io.swagger.annotations.ApiOperation; | ||||
import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
import org.springframework.beans.factory.annotation.Value; | |||||
import org.springframework.validation.annotation.Validated; | import org.springframework.validation.annotation.Validated; | ||||
import org.springframework.web.bind.annotation.PostMapping; | import org.springframework.web.bind.annotation.PostMapping; | ||||
import org.springframework.web.bind.annotation.RequestBody; | import org.springframework.web.bind.annotation.RequestBody; | ||||
@ApiOperation(value = "网点位置删除") | @ApiOperation(value = "网点位置删除") | ||||
@PostMapping(value = "/locationDelete") | @PostMapping(value = "/locationDelete") | ||||
public ApiResponse<?> locationDelete(@RequestBody String id) throws ManagerException { | |||||
manager.locationDelete(id); | |||||
public ApiResponse<?> locationDelete(@Valid @RequestBody ServiceLocalDeleteReqDTO reqDTO) throws ManagerException { | |||||
manager.locationDelete(reqDTO); | |||||
return ApiResponse.success(); | return ApiResponse.success(); | ||||
} | } | ||||
package cn.com.taiji.userw.dto.serviceHall; | |||||
import cn.com.taiji.core.dto.AbstractStaffBizRequestDTO; | |||||
import io.swagger.annotations.ApiModel; | |||||
import io.swagger.annotations.ApiModelProperty; | |||||
import lombok.Data; | |||||
import javax.validation.constraints.NotBlank; | |||||
/** | |||||
* @Author:ChenChao | |||||
* @Date:2025/9/22 9:38 | |||||
* @Filename:ServiceLocalDeleteReqDTO | |||||
* @description: | |||||
*/ | |||||
@Data | |||||
@ApiModel(description = "删除办理点") | |||||
public class ServiceLocalDeleteReqDTO extends AbstractStaffBizRequestDTO { | |||||
@NotBlank | |||||
@ApiModelProperty(value = "办理点主键ID") | |||||
private String id; | |||||
} |
void locationAdd(ServiceHallLocationModel reqDto) throws ServiceHandleException; | void locationAdd(ServiceHallLocationModel reqDto) throws ServiceHandleException; | ||||
void locationDelete(String id); | |||||
void locationDelete(ServiceLocalDeleteReqDTO reqDTO); | |||||
} | } |
} | } | ||||
@Override | @Override | ||||
public void locationDelete(String id) { | |||||
locationRepo.deleteById(id); | |||||
public void locationDelete(ServiceLocalDeleteReqDTO reqDTO) { | |||||
locationRepo.deleteById(reqDTO.getId()); | |||||
} | } | ||||
private ServiceHallExcelModel converExcel(QtkServiceHall hall) { | private ServiceHallExcelModel converExcel(QtkServiceHall hall) { |