|  | @@ -10,7 +10,7 @@ import net.chenlin.dp.common.entity.Query;
 | 
	
		
			
				|  |  |  import net.chenlin.dp.common.entity.R;
 | 
	
		
			
				|  |  |  import net.chenlin.dp.common.utils.CommonUtils;
 | 
	
		
			
				|  |  |  import ${package}.modules.${module}.entity.${className}Entity;
 | 
	
		
			
				|  |  | -import ${package}.modules.${module}.manager.${className}Manager;
 | 
	
		
			
				|  |  | +import ${package}.modules.${module}.dao.${className}Mapper;
 | 
	
		
			
				|  |  |  import ${package}.modules.${module}.service.${className}Service;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -21,7 +21,7 @@ import ${package}.modules.${module}.service.${className}Service;
 | 
	
		
			
				|  |  |  public class ${className}ServiceImpl implements ${className}Service {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  | -	private ${className}Manager ${objName}Manager;
 | 
	
		
			
				|  |  | +    private ${className}Mapper ${objName}Mapper;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 分页查询
 | 
	
	
		
			
				|  | @@ -32,7 +32,7 @@ public class ${className}ServiceImpl implements ${className}Service {
 | 
	
		
			
				|  |  |  	public Page<${className}Entity> list${className}(Map<String, Object> params) {
 | 
	
		
			
				|  |  |  		Query query = new Query(params);
 | 
	
		
			
				|  |  |  		Page<${className}Entity> page = new Page<>(query);
 | 
	
		
			
				|  |  | -		${objName}Manager.list${className}(page, query);
 | 
	
		
			
				|  |  | +		${objName}Mapper.listForPage(page, query);
 | 
	
		
			
				|  |  |  		return page;
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -43,7 +43,7 @@ public class ${className}ServiceImpl implements ${className}Service {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	public R save${className}(${className}Entity ${objName}) {
 | 
	
		
			
				|  |  | -		int count = ${objName}Manager.save${className}(${objName});
 | 
	
		
			
				|  |  | +		int count = ${objName}Mapper.save(${objName});
 | 
	
		
			
				|  |  |  		return CommonUtils.msg(count);
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -54,7 +54,7 @@ public class ${className}ServiceImpl implements ${className}Service {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	public R get${className}ById(Long id) {
 | 
	
		
			
				|  |  | -		${className}Entity ${objName} = ${objName}Manager.get${className}ById(id);
 | 
	
		
			
				|  |  | +		${className}Entity ${objName} = ${objName}Mapper.getObjectById(id);
 | 
	
		
			
				|  |  |  		return CommonUtils.msg(${objName});
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -65,7 +65,7 @@ public class ${className}ServiceImpl implements ${className}Service {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	public R update${className}(${className}Entity ${objName}) {
 | 
	
		
			
				|  |  | -		int count = ${objName}Manager.update${className}(${objName});
 | 
	
		
			
				|  |  | +		int count = ${objName}Mapper.update(${objName});
 | 
	
		
			
				|  |  |  		return CommonUtils.msg(count);
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -76,7 +76,7 @@ public class ${className}ServiceImpl implements ${className}Service {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	public R batchRemove(Long[] id) {
 | 
	
		
			
				|  |  | -		int count = ${objName}Manager.batchRemove(id);
 | 
	
		
			
				|  |  | +		int count = ${objName}Mapper.batchRemove(id);
 | 
	
		
			
				|  |  |  		return CommonUtils.msg(id, count);
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 |