| | |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.sd.BasicData; |
| | | import com.example.erp.service.sd.BasicDateService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | |
| | | @RestController |
| | | @RequestMapping("/basicData") |
| | | public class BasicDataController { |
| | | @Autowired |
| | | final |
| | | BasicDateService basicDateService; |
| | | |
| | | public BasicDataController(BasicDateService basicDateService) { |
| | | this.basicDateService = basicDateService; |
| | | } |
| | | |
| | | @GetMapping("/orderBasicData") |
| | | public Result getOrderBasicData(){ |
| | | return Result.seccess(basicDateService.getOrderBasicData()); |