Commit e5bcd2f2 authored by taabe's avatar taabe

删除特种装备项目实例代码

parent a95b79eb
package org.amos.boot.module.tzs.biz.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.ApiOperation;
import org.amos.boot.biz.common.controller.BaseController;
import org.amos.boot.biz.common.utils.CommonResponseUtil;
import org.amos.boot.module.tzs.biz.dao.mapper.Test2Mapper;
import org.amos.boot.module.tzs.biz.dao.mapper.TestMapper;
import org.amos.boot.module.tzs.biz.service.intfc.ITestService;
import org.amos.boot.module.tzs.biz.vo.Arrange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
/**
* @author DELL
*/
@RestController
@RequestMapping("/test")
public class TestController extends BaseController {
@Autowired
TestMapper testMapper;
@Autowired
Test2Mapper test2Mapper;
@Autowired
ITestService testService;
@ApiOperation(value = "测试接口")
@GetMapping(value = "/testGet")
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY)
public ResponseModel test() {
testMapper.countById();
test2Mapper.selectList(new QueryWrapper<Arrange>().select("id"));
Arrange arrange = testService.getById(34);
return CommonResponseUtil.success(arrange);
}
}
package org.amos.boot.module.tzs.biz.dao.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.amos.boot.module.tzs.biz.vo.Arrange;
/**
* @author DELL
*/
public interface Test2Mapper extends BaseMapper<Arrange> {
}
package org.amos.boot.module.tzs.biz.dao.mapper;
import org.amos.boot.biz.common.dao.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
/**
* @author DELL
*/
public interface TestMapper extends BaseMapper {
/**
* 统计
* @return
*/
@Select(value = "select count(*) from f_dict")
long countById();
}
package org.amos.boot.module.tzs.biz.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.amos.boot.module.tzs.biz.dao.mapper.Test2Mapper;
import org.amos.boot.module.tzs.biz.service.intfc.ITestService;
import org.amos.boot.module.tzs.biz.vo.Arrange;
import org.springframework.stereotype.Service;
/**
* @author DELL
*/
@Service
public class TestServiceImpl extends ServiceImpl<Test2Mapper, Arrange> implements ITestService {
}
package org.amos.boot.module.tzs.biz.service.intfc;
import com.baomidou.mybatisplus.extension.service.IService;
import org.amos.boot.module.tzs.biz.vo.Arrange;
/**
* @author DELL
*/
public interface ITestService extends IService<Arrange> {
}
package org.amos.boot.module.tzs.biz.vo;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.amos.boot.biz.common.entity.BaseEntity;
@Data
@Accessors(chain = true)
@TableName("d_arrange")
public class Arrange extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "orgCode")
private String orgCode;
@ApiModelProperty(value = "name")
private String name;
@ApiModelProperty(value = "startTime")
private String startTime;
@ApiModelProperty(value = "endTime")
private String endTime;
@ApiModelProperty(value = "appKey")
private String appKey;
@ApiModelProperty(value = "creater")
private String creater;
@ApiModelProperty(value = "updater")
private String updater;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment