Commit bbf86ea7 by 徐高华

删除代码

parent 2eb813d0
package com.gic.haoban.manage.service.dao.mapper;
import com.gic.haoban.manage.service.entity.Test;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface TestMapper {
/**
*/
int deleteByPrimaryKey(String id);
/**
*/
int insert(Test record);
/**
*/
int insertSelective(Test record);
/**
*/
Test selectByPrimaryKey(String id);
/**
*/
int updateByPrimaryKeySelective(Test record);
/**
*/
int updateByPrimaryKey(Test record);
/**
* 查询
*
* @return
*/
List<Test> queryList();
}
\ No newline at end of file
package com.gic.haoban.manage.service.entity;
import java.io.Serializable;
/**
* Created By MBG-GUI-EXTENSION https://github.com/spawpaw/mybatis-generator-gui-extension
* Description:
*
* @author fdh
*/
public class Test implements Serializable {
/**
*
*/
private String id;
/**
*
*/
private String name;
/**
*/
private static final long serialVersionUID = 1L;
/**
* This method returns the value of the database column test.id
*
* @return the value of test.id
*/
public String getId() {
return id;
}
/**
* This method sets the value of the database column test.id
*
* @param id the value for test.id
*/
public void setId(String id) {
this.id = id;
}
/**
* This method returns the value of the database column test.name
*
* @return the value of test.name
*/
public String getName() {
return name;
}
/**
* This method sets the value of the database column test.name
*
* @param name the value for test.name
*/
public void setName(String name) {
this.name = name;
}
}
\ No newline at end of file
package com.gic.haoban.manage.service.service;
import com.gic.haoban.manage.service.entity.Test;
/**
* Created by tgs on 2020/2/9.
*/
public interface TestService {
public void save(Test test);
}
package com.gic.haoban.manage.service.service.impl;
import com.gic.haoban.manage.service.dao.mapper.TestMapper;
import com.gic.haoban.manage.service.entity.Test;
import com.gic.haoban.manage.service.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Created by tgs on 2020/2/9.
*/
@Service
public class TestApiServiceImpl implements TestService {
@Autowired
private TestMapper testMapper;
@Override
public void save(Test test) {
testMapper.insert(test);
}
}
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