mt-pms-api/src/test/resources/generator/template/service-impl.ftl

30 lines
1005 B
Plaintext
Raw Normal View History

2019-12-03 14:13:46 +08:00
package ${basePackage}.service.impl;
import ${basePackage}.dao.${modelNameUpperCamel}Mapper;
import ${basePackage}.model.${modelNameUpperCamel};
import ${basePackage}.model.${modelNameUpperCamel}Params;
import ${basePackage}.service.${modelNameUpperCamel}Service;
import com.deer.wms.project.seed.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* Created by ${author} on ${date}.
*/
@Service
@Transactional
public class ${modelNameUpperCamel}ServiceImpl extends AbstractService<${modelNameUpperCamel}, ${type}> implements ${modelNameUpperCamel}Service {
@Autowired
private ${modelNameUpperCamel}Mapper ${modelNameLowerCamel}Mapper;
@Override
public List<${modelNameUpperCamel}> findList(${modelNameUpperCamel}Params params) {
return ${modelNameLowerCamel}Mapper.findList(params);
}
}