| | |
| | | fastdfs.connection_pool.max_count_per_entry = 500 |
| | | fastdfs.connection_pool.max_idle_time = 3600 |
| | | fastdfs.connection_pool.max_wait_time_in_ms = 1000 |
| | | #fastdfs.tracker_servers=60.205.226.79:22122 |
| | | fastdfs.tracker_servers=192.168.0.248:22122 |
| | | fastdfs.tracker_servers=60.205.226.79:22122 |
| | | #fastdfs.tracker_servers=192.168.0.248:22122 |
| | |
| | | private AudioService audioService; |
| | | |
| | | @RequestMapping("groups") |
| | | public BasicResult groups(){ |
| | | List<AudioGroup> groupList = audioService.queryGroups(); |
| | | public BasicResult groups(@RequestBody AudioDto audioDto){ |
| | | List<AudioGroup> groupList = audioService.queryGroups(audioDto); |
| | | return BasicResult.success(groupList); |
| | | } |
| | | |
| | |
| | | private String audioFile; |
| | | |
| | | private Integer defaults; |
| | | |
| | | private String name; |
| | | } |
| | |
| | | |
| | | public interface AudioService { |
| | | |
| | | List<AudioGroup> queryGroups(); |
| | | List<AudioGroup> queryGroups(AudioDto audioDto); |
| | | |
| | | void playMusic(AudioDto audioDto); |
| | | |
| | |
| | | private BigScreenMapper screenMapper; |
| | | |
| | | @Override |
| | | public List<AudioGroup> queryGroups() { |
| | | return screenMapper.queryGroups(); |
| | | public List<AudioGroup> queryGroups(AudioDto audioDto) { |
| | | return screenMapper.queryGroups(audioDto); |
| | | } |
| | | |
| | | @Override |
| | |
| | | package com.thhy.screen.modules.biz.bigscreen.mapper; |
| | | |
| | | import com.thhy.screen.modules.biz.audio.entity.AudioDto; |
| | | import com.thhy.screen.modules.biz.audio.entity.AudioFile; |
| | | import com.thhy.screen.modules.biz.audio.entity.AudioGroup; |
| | | import com.thhy.screen.modules.biz.audio.entity.GroupInfoVo; |
| | |
| | | |
| | | void insertAudioGroup(AudioGroup audioGroup); |
| | | |
| | | List<AudioGroup> queryGroups(); |
| | | List<AudioGroup> queryGroups(AudioDto audioDto); |
| | | |
| | | List<HashMap<String,Object>> querySteelMake(); |
| | | |
| | |
| | | |
| | | <select id="queryGroups" resultType="com.thhy.screen.modules.biz.audio.entity.AudioGroup"> |
| | | select id,group_id as groupId,group_name as groupName from t_audio_group |
| | | <where> |
| | | <if test="groupId != null and groupId !=''"> |
| | | id = #{groupId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!--钢筋总消耗,周消耗,月消耗--> |
| | |
| | | <if test="id !=null and id !=''"> |
| | | id, |
| | | </if> |
| | | <if test="name !=null and name !=''"> |
| | | name, |
| | | </if> |
| | | <if test="groupId !=null and groupId !=''"> |
| | | group_id, |
| | | </if> |
| | |
| | | <if test="id !=null and id !=''"> |
| | | #{id}, |
| | | </if> |
| | | <if test="name !=null and name !=''"> |
| | | #{name}, |
| | | </if> |
| | | <if test="groupId !=null and groupId !=''"> |
| | | #{groupId}, |
| | | </if> |