| | |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientServiceCategoryVO; |
| | | import com.panzhihua.common.model.vos.community.convenient.JinhuiConvenientMerchantVO; |
| | | import com.panzhihua.common.model.vos.jinhui.*; |
| | | import com.panzhihua.common.model.vos.user.SysUserNoticeVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "便民服务商家入驻") |
| | | @PostMapping("/merchant/addData") |
| | | public R merchantAddData(@RequestBody JinhuiConvenientMerchantVO item) |
| | | { |
| | | item.setAuditType("1"); |
| | | item.setCreatedBy(getUserId()+""); |
| | | return jinhuiCommunityService.merchantAddData(item); |
| | | } |
| | | |
| | | /*************************************************************************************************** |
| | | * |
| | | * |
| | |
| | | public R expurgateReseauData(@RequestParam("id") String id); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取未绑定人员的网格 |
| | | * @return |
| | | */ |
| | | @GetMapping("/jinhuiReseau/getReseauBoxList") |
| | | public R getReseauBoxList(); |
| | | |
| | | /******************************************************************************************************** |
| | | * |
| | |
| | | * @param |
| | | * @return |
| | | */ |
| | | |
| | | @ApiOperation(value = "金汇慈善公益列表",response = JinhuiCharityVO.class) |
| | | @GetMapping("/getCharityList") |
| | | public R getCharityList(@RequestParam("pageNum") int pageNum, |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取未绑定人员的网格 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取未绑定人员的网格列表",response = JinhuiCharityVO.class) |
| | | @GetMapping("/getReseauBoxList") |
| | | public R getReseauBoxList() |
| | | { |
| | | return jinhuiCommunityService.getReseauBoxList(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取详情 |
| | | * @param id |
| | | * @return |
| | |
| | | return reseauService.getList(pageNum, pageSize); |
| | | } |
| | | |
| | | /** |
| | | * 获取未绑定人员的网格 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getReseauBoxList") |
| | | public R getReseauBoxList() { |
| | | return R.ok(reseauService.getBoxList()); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/getReseauDetails") |
| | | public R getReseauDetails(@RequestParam("id") String id) |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | | public interface JinhuiReseauDao extends BaseMapper<JinhuiReseau> |
| | | { |
| | |
| | | */ |
| | | IPage<JinhuiReseau> getList(Page page); |
| | | |
| | | |
| | | List<JinhuiReseau> getBoxList(); |
| | | |
| | | /** |
| | | * 详情 |
| | | * @param id |
| | |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiReseauVO; |
| | | import com.panzhihua.service_jinhui_community.entity.JinhuiReseau; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface JinhuiReseauService extends IService<JinhuiReseau> |
| | | { |
| | | /** |
| | |
| | | */ |
| | | R getList(int pageNum,int pageSize); |
| | | |
| | | List<JinhuiReseau> getBoxList(); |
| | | |
| | | JinhuiReseau getDetails(String id); |
| | | /** |
| | | * 新增 |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | @Slf4j |
| | | @Service |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<JinhuiReseau> getBoxList() { |
| | | return baseMapper.getBoxList(); |
| | | } |
| | | |
| | | @Override |
| | | public JinhuiReseau getDetails(String id) { |
| | | return baseMapper.getDetails(id); |
| | | } |
| | |
| | | order by creation_time desc |
| | | </select> |
| | | |
| | | <!-- 绑定网格员下拉框 --> |
| | | <select id="getBoxList" resultMap="itemMap"> |
| | | select |
| | | id, |
| | | reseau_name, |
| | | coverage, |
| | | acreage, |
| | | designation, |
| | | linellae, |
| | | broad, |
| | | fill, |
| | | rail, |
| | | reseau_id, |
| | | creation_time, |
| | | update_time |
| | | from jinhui_reseau |
| | | where reseau_id is null |
| | | order by creation_time desc |
| | | </select> |
| | | |
| | | |
| | | <select id="getDetails" resultMap="itemMap"> |
| | | select |