202404 免责声明

This commit is contained in:
2024-05-15 17:10:33 +08:00
parent 84faea7d3f
commit 6ab02e20ad
8 changed files with 23 additions and 39 deletions

View File

@@ -12,7 +12,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* @since 2017-06-19
*/
@SpringBootApplication
@EnableScheduling
//@EnableScheduling
@MapperScan(value = {"com.ydd.oms.mapper","com.sv.mapper"})
public class OmsApplication {

View File

@@ -20,17 +20,17 @@ import javax.annotation.Resource;
public class DisclaimersController extends OmsController {
private final Logger logger = LoggerFactory.getLogger(DisclaimersController.class);
@Resource
private DisclaimersService disclaimersService;
/**
* 查询免责声明信息
*/
@RequestMapping(value = "/notice/disclaimers", method = RequestMethod.POST)
@RequestMapping(value = "/notice/disclaimers", method = RequestMethod.GET)
public ResponseDTO findById() {
return ResponseDTO.ok()
.addAttribute("aboutUs", disclaimersService.findById(1));
.addAttribute("disclaimers", disclaimersService.findById(1));
}
/**