huminghao 1 day ago
parent
commit
ff736b70c5

+ 1
- 1
gly-base-core/src/main/java/cn/com/taiji/core/repo/jpa/issue/IssueProductPromotionRepo.java View File

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);


} }

+ 3
- 2
zhywpt-app-userw/src/main/java/cn/com/taiji/userw/api/ServiceHallController.java View File

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();
} }



+ 23
- 0
zhywpt-app-userw/src/main/java/cn/com/taiji/userw/dto/serviceHall/ServiceLocalDeleteReqDTO.java View File

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;
}

+ 1
- 1
zhywpt-app-userw/src/main/java/cn/com/taiji/userw/manager/serviceHall/ServiceHallManager.java View File



void locationAdd(ServiceHallLocationModel reqDto) throws ServiceHandleException; void locationAdd(ServiceHallLocationModel reqDto) throws ServiceHandleException;


void locationDelete(String id);
void locationDelete(ServiceLocalDeleteReqDTO reqDTO);
} }

+ 2
- 2
zhywpt-app-userw/src/main/java/cn/com/taiji/userw/manager/serviceHall/ServiceHallManagerImpl.java View File

} }


@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) {

Loading…
Cancel
Save