Commit c7c52259329aa3382212d7dcf43d7860e492b5b7
1 parent
63ddc4a7
iss提交17;
创建TTInfoBxDetailController类,对应之前的TTInfoBxDetailController_facade,方便切换是否使用dubbo时调用不同的controller
Showing
3 changed files
with
28 additions
and
1 deletions
src/main/java/com/bsth/controller/schedule/core/legacy/TTInfoBxDetailController.java
0 → 100644
| 1 | +package com.bsth.controller.schedule.core.legacy; | |
| 2 | + | |
| 3 | +import com.bsth.controller.schedule.BController; | |
| 4 | +import com.bsth.controller.schedule.core.TTInfoBxDetailController_facade; | |
| 5 | +import com.bsth.entity.schedule.TTInfoBxDetail; | |
| 6 | +import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | |
| 7 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 8 | +import org.springframework.web.bind.annotation.RestController; | |
| 9 | + | |
| 10 | +@RestController | |
| 11 | +@ConditionalOnMissingBean(TTInfoBxDetailController_facade.class) | |
| 12 | +@RequestMapping("tibxdc") | |
| 13 | +public class TTInfoBxDetailController extends BController<TTInfoBxDetail, Long> { | |
| 14 | +} | ... | ... |
src/main/java/com/bsth/service/schedule/TTInfoBxDetailService.java
src/main/java/com/bsth/service/schedule/impl/TTInfoBxDetailServiceImpl.java
0 → 100644
| 1 | +package com.bsth.service.schedule.impl; | |
| 2 | + | |
| 3 | +import com.bsth.entity.schedule.TTInfoBxDetail; | |
| 4 | +import com.bsth.service.schedule.TTInfoBxDetailService; | |
| 5 | +import org.springframework.stereotype.Service; | |
| 6 | +import org.springframework.transaction.annotation.Isolation; | |
| 7 | +import org.springframework.transaction.annotation.Propagation; | |
| 8 | +import org.springframework.transaction.annotation.Transactional; | |
| 9 | + | |
| 10 | +@Service | |
| 11 | +@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED) | |
| 12 | +public class TTInfoBxDetailServiceImpl extends BServiceImpl<TTInfoBxDetail, Long> implements TTInfoBxDetailService { | |
| 13 | + | |
| 14 | +} | ... | ... |