修改宣教库接口。
This commit is contained in:
parent
e3e8d8d76e
commit
a4cc23f66e
@ -76,6 +76,15 @@ public class PropagandaInfoController extends BaseController {
|
||||
return R.ok(propagandaInfoService.selectPropagandaInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取宣教库管理信息
|
||||
*/
|
||||
@ApiOperation("根据id获取宣教库管理信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:propaganda:query')")
|
||||
@GetMapping(value = "getById/{id}")
|
||||
public R<PropagandaInfo> getById(@PathVariable("id") Long id) {
|
||||
return R.ok(propagandaInfoService.getById(id));
|
||||
}
|
||||
/**
|
||||
* 新增宣教库管理
|
||||
*/
|
||||
|
||||
@ -23,6 +23,8 @@ public interface IPropagandaInfoService {
|
||||
*/
|
||||
public PropagandaMaterialsVo selectPropagandaInfoById(Long id);
|
||||
|
||||
PropagandaInfo getById(Long id);
|
||||
|
||||
/**
|
||||
* 查询宣教库管理列表
|
||||
*
|
||||
|
||||
@ -8,7 +8,6 @@ import com.xinelu.manage.domain.propagandamaterials.PropagandaMaterials;
|
||||
import com.xinelu.manage.dto.propagandainfo.PropagandaInfoDto;
|
||||
import com.xinelu.manage.dto.propagandainfo.PropagandaInfoSaveDto;
|
||||
import com.xinelu.manage.dto.propagandainfo.PropagandaUpdateDto;
|
||||
import com.xinelu.manage.mapper.materialsinfo.MaterialsInfoMapper;
|
||||
import com.xinelu.manage.mapper.propagandainfo.PropagandaInfoMapper;
|
||||
import com.xinelu.manage.mapper.propagandamaterials.PropagandaMaterialsMapper;
|
||||
import com.xinelu.manage.service.propagandainfo.IPropagandaInfoService;
|
||||
@ -33,8 +32,6 @@ public class PropagandaInfoServiceImpl implements IPropagandaInfoService {
|
||||
private PropagandaInfoMapper propagandaInfoMapper;
|
||||
@Resource
|
||||
private PropagandaMaterialsMapper propagandaMaterialsMapper;
|
||||
@Resource
|
||||
private MaterialsInfoMapper materialsInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询宣教库管理
|
||||
@ -47,7 +44,11 @@ public class PropagandaInfoServiceImpl implements IPropagandaInfoService {
|
||||
return propagandaInfoMapper.selectPropagandaInfo(id);
|
||||
}
|
||||
|
||||
/**
|
||||
@Override public PropagandaInfo getById(Long id) {
|
||||
return propagandaInfoMapper.selectPropagandaInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询宣教库管理列表
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
|
||||
@ -109,10 +109,10 @@
|
||||
p.article_summary, voicebroadcast, disease_type_id, disease_type_name, propaganda_link,
|
||||
p.propaganda_barcode_path, pm.materials_id,
|
||||
m.id, m.materials_name, m.materials_type, m.materials_option, m.materials_file_path, m.video_cover_type,
|
||||
m.video_cover_file_path from propaganda_materials pm
|
||||
left join propaganda_info p on pm.propaganda_id = p.id
|
||||
m.video_cover_file_path from propaganda_info p
|
||||
left join propaganda_materials pm on pm.propaganda_id = p.id
|
||||
left join materials_info m on m.id = pm.materials_id
|
||||
where p.id = #{id}
|
||||
where p.id = #{id} and pm.del_flag = 0
|
||||
</select>
|
||||
|
||||
<insert id="insertPropagandaInfo" parameterType="com.xinelu.manage.domain.propagandainfo.PropagandaInfo" useGeneratedKeys="true"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user