工程管理

This commit is contained in:
cwchen 2024-03-11 10:17:19 +08:00
parent 0b1dc5e473
commit 96e63e3008
5 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package com.securitycontrol.system.base.controller;
import com.securitycontrol.system.base.service.IProService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @authorcwchen
* @date2024-03-11-10:05
* @version1.0
* @description工程管理-web层
*/
@RestController
@RequestMapping("/sys/pro/")
public class ProController {
@Resource(name = "IProService")
private IProService service;
}

View File

@ -0,0 +1,13 @@
package com.securitycontrol.system.base.mapper;
import org.springframework.stereotype.Repository;
/**
* @authorcwchen
* @date2024-03-11-10:11
* @version1.0
* @description工程管理-数据库交互
*/
@Repository(value = "IProMapper")
public interface IProMapper {
}

View File

@ -0,0 +1,10 @@
package com.securitycontrol.system.base.service;
/**
* @authorcwchen
* @date2024-03-11-10:10
* @version1.0
* @description工程管理-业务层
*/
public interface IProService {
}

View File

@ -0,0 +1,20 @@
package com.securitycontrol.system.base.service.impl;
import com.securitycontrol.system.base.mapper.IProMapper;
import com.securitycontrol.system.base.service.IProService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* @authorcwchen
* @date2024-03-11-10:11
* @version1.0
* @description工程管理-业务逻辑层
*/
@Service(value = "IProService")
public class ProServiceImpl implements IProService {
@Resource(name = "IProMapper")
private IProMapper mapper;
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.securitycontrol.system.base.mapper.IProMapper">
</mapper>