mt-pms-api/wms-produce-manage/src/test/resources/generator/template/service-impl.ftl
2019-12-03 14:13:46 +08:00

31 lines
1.0 KiB
Plaintext

package ${basePackage}.service.impl;
import ${basePackage}.dao.${modelNameUpperCamel}Mapper;
import ${basePackage}.model.${modelNameUpperCamel};
import ${basePackage}.model.${modelNameUpperCamel}Criteria;
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;
import ${basePackage}.model.${modelNameUpperCamel};
/**
* 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}Criteria criteria) {
return ${modelNameLowerCamel}Mapper.findList(criteria);
}
}