注释
This commit is contained in:
@@ -9,6 +9,9 @@ import org.springframework.transaction.PlatformTransactionManager;
|
|||||||
import org.springframework.transaction.TransactionStatus;
|
import org.springframework.transaction.TransactionStatus;
|
||||||
import org.springframework.transaction.support.DefaultTransactionDefinition;
|
import org.springframework.transaction.support.DefaultTransactionDefinition;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 事务处理
|
||||||
|
*/
|
||||||
@Aspect
|
@Aspect
|
||||||
@Component
|
@Component
|
||||||
public class TransactionAspect {
|
public class TransactionAspect {
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import com.openhis.web.basicservice.dto.HealthcareServiceInitDto;
|
|||||||
import com.openhis.web.basicservice.mapper.HealthcareServiceBizMapper;
|
import com.openhis.web.basicservice.mapper.HealthcareServiceBizMapper;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@@ -97,7 +96,7 @@ public class HealthcareServiceController {
|
|||||||
* @return 列表信息
|
* @return 列表信息
|
||||||
*/
|
*/
|
||||||
@GetMapping(value = "/healthcare-service-page")
|
@GetMapping(value = "/healthcare-service-page")
|
||||||
public R<?> getHealthcareServicePage(@RequestBody HealthcareServiceDto healthcareServiceDto,
|
public R<?> getHealthcareServicePage(HealthcareServiceDto healthcareServiceDto,
|
||||||
@RequestParam(value = "searchKey", defaultValue = "") String searchKey,
|
@RequestParam(value = "searchKey", defaultValue = "") String searchKey,
|
||||||
@RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo,
|
@RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo,
|
||||||
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest request) {
|
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest request) {
|
||||||
@@ -106,7 +105,7 @@ public class HealthcareServiceController {
|
|||||||
new HashSet<>(Arrays.asList("name", "charge_name")), request);
|
new HashSet<>(Arrays.asList("name", "charge_name")), request);
|
||||||
IPage<HealthcareServiceDto> healthcareServicePage = healthcareServiceBizMapper.getHealthcareServicePage(
|
IPage<HealthcareServiceDto> healthcareServicePage = healthcareServiceBizMapper.getHealthcareServicePage(
|
||||||
new Page<>(pageNo, pageSize), CommonConstants.TableName.ADM_HEALTHCARE_SERVICE, queryWrapper);
|
new Page<>(pageNo, pageSize), CommonConstants.TableName.ADM_HEALTHCARE_SERVICE, queryWrapper);
|
||||||
// 枚举类回显赋值
|
// 活动标记-枚举类回显赋值
|
||||||
healthcareServicePage.getRecords().forEach(e ->
|
healthcareServicePage.getRecords().forEach(e ->
|
||||||
e.setActiveFlag_enumText(EnumUtils.getInfoByValue(AccountStatus.class, e.getActiveFlag()))
|
e.setActiveFlag_enumText(EnumUtils.getInfoByValue(AccountStatus.class, e.getActiveFlag()))
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user