Merge remote-tracking branch 'origin/huacheng_test' into huacheng_test
| | |
| | | @GetMapping("/orderdata") |
| | | @Authorization |
| | | public ResultData selectConfigData(@RequestParam(value = "Id",required = false) String Id, |
| | | @RequestParam(value = "orderNum",required = false) String orderNum) |
| | | @RequestParam(value = "orderNum",required = false) String orderNum, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | if(StringUtils.isEmpty(Id) && StringUtils.isEmpty(orderNum)) |
| | | { |
| | |
| | | } |
| | | |
| | | GuideRepairOrder order=iGuideRepairOrderService.selectConfigData(Id,orderNum); |
| | | order.setGuideEvolveEntities(iGuideEvolveService.selectConfigList(Id)); |
| | | order.setGuideEvolveEntities(iGuideEvolveService.selectConfigList(Id,sysUser)); |
| | | |
| | | return ResultData.success(order); |
| | | } |
| | |
| | | { |
| | | userId=sysUser.getUserId()+""; |
| | | } |
| | | List<GuideRepairOrder> list = iGuideRepairOrderService.selectConfigList(null,ids,status,userId); |
| | | List<GuideRepairOrder> list = iGuideRepairOrderService.selectConfigList(null,ids,status,userId,null,null,null); |
| | | int num=iGuideRepairOrderService.countConfigList(null,ids,status,userId); |
| | | return getDataTable(list,num); |
| | | } |
| | |
| | | @GetMapping("/orderdata") |
| | | @Authorization |
| | | public ResultData selectConfigData(@RequestParam(value = "Id",required = false) String Id, |
| | | @RequestParam(value = "orderNum",required = false) String orderNum) |
| | | @RequestParam(value = "orderNum",required = false) String orderNum, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | if(StringUtils.isEmpty(Id) && StringUtils.isEmpty(orderNum)) |
| | | { |
| | |
| | | } |
| | | |
| | | GuideRepairOrder order=iGuideRepairOrderService.selectConfigData(Id,orderNum); |
| | | order.setGuideEvolveEntities(iGuideEvolveService.selectConfigList(Id)); |
| | | order.setGuideEvolveEntities(iGuideEvolveService.selectConfigList(Id,sysUser)); |
| | | |
| | | return ResultData.success(order); |
| | | } |
| | |
| | | @RequestParam(value = "pageSize",required = false) Integer pageSize, |
| | | @RequestParam(value = "matterName",required = false) String matterName, |
| | | @RequestParam(value = "status",required = false) String status, |
| | | @RequestParam(value = "createTimeStartTime",required = false) String createTimeStartTime, |
| | | @RequestParam(value = "createTimeTimeEndTime",required = false) String createTimeTimeEndTime, |
| | | @RequestParam(value = "classifyId",required = false)String classifyId, |
| | | @CurrentUser SysUser sysUser) |
| | | { |
| | | Assert.notNull(pageNum, "pageNum 不能为空"); |
| | |
| | | } |
| | | |
| | | List<GuideRepairOrder> list = iGuideRepairOrderService.selectConfigList(pageParam,pageSize, |
| | | matterName,ids,status,userId); |
| | | matterName,ids,status,userId,createTimeStartTime,createTimeTimeEndTime,classifyId); |
| | | int num=iGuideRepairOrderService.countConfigList(matterName,ids,status,userId); |
| | | return getDataTable(list,num); |
| | | } |
| | |
| | | { |
| | | boolean a = false; |
| | | String fileName = file.getOriginalFilename(); |
| | | boolean b = iTransactionEventService.batchImport(fileName, file); |
| | | if (b){ |
| | | return ResultData.success("导入成功"); |
| | | Integer b = iTransactionEventService.batchImport(fileName, file); |
| | | if (b == 3) {// |
| | | return ResultData.success("全部导入成功");//全部导入成功 |
| | | } else if (b == 2) { |
| | | return ResultData.success("部分导入成功");//部分导入成功 |
| | | } else if (b == 0) { |
| | | return ResultData.error("部分失败");//导入失败 |
| | | } |
| | | return ResultData.error("导入失败"); |
| | | return ResultData.error("部分失败");//导入失败 |
| | | } |
| | | |
| | | |
| | |
| | | public List<GuideEvolveEntity> selectConfigList(String guideId); |
| | | |
| | | /** |
| | | * 查询记录列表(隐藏工单姓名) |
| | | * @return |
| | | */ |
| | | public List<GuideEvolveEntity> selectHideList(String guideId); |
| | | |
| | | /** |
| | | * 新增记录 |
| | | * @param entity |
| | | * @return |
| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @Param("matterName") String matterName, |
| | | @Param("ids") List<String> ids, |
| | | @Param("status") String status, |
| | | @Param("guideUserId") String guideUserId); |
| | | @Param("guideUserId") String guideUserId, |
| | | @Param("createTimeStartTime") String createTimeStartTime, |
| | | @Param("createTimeTimeEndTime") String createTimeTimeEndTime, |
| | | @Param("classifyId") String classifyId); |
| | | |
| | | |
| | | /** |
| | |
| | | List<GuideRepairOrder> selectConfigList(@Param("matterName") String matterName, |
| | | @Param("ids") List<String> ids, |
| | | @Param("status") String status, |
| | | @Param("guideUserId") String guideUserId); |
| | | @Param("guideUserId") String guideUserId, |
| | | @Param("createTimeStartTime") String createTimeStartTime, |
| | | @Param("createTimeTimeEndTime") String createTimeTimeEndTime, |
| | | @Param("classifyId") String classifyId |
| | | ); |
| | | |
| | | /** |
| | | * 获取工单列表(求和) |
| | |
| | | |
| | | |
| | | import com.dg.core.db.gen.entity.GuideEvolveEntity; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.List; |
| | |
| | | * 查询记录列表 |
| | | * @return |
| | | */ |
| | | public List<GuideEvolveEntity> selectConfigList(String guideId); |
| | | public List<GuideEvolveEntity> selectConfigList(String guideId, SysUser sysUser); |
| | | |
| | | /** |
| | | * 新增记录 |
| | |
| | | import com.dg.core.db.gen.entity.*; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | public interface IGuideRepairOrderService { |
| | |
| | | * @return |
| | | */ |
| | | List<GuideRepairOrder> selectConfigList(IPage<GuideRepairOrder> page, Integer state, |
| | | String matterName,List<String> ids,String status,String guideUserId); |
| | | String matterName, List<String> ids, String status, String guideUserId, |
| | | String createTimeStartTime, String createTimeTimeEndTime, String classifyId); |
| | | |
| | | /** |
| | | * 获取工单列表(不分页用于小程序) |
| | |
| | | * @return |
| | | */ |
| | | List<GuideRepairOrder> selectConfigList(String matterName, List<String> ids,String status, |
| | | String guideUserId); |
| | | String guideUserId, String createTimeStartTime,String createTimeTimeEndTime,String classifyId); |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | List<TransactionEvent> selectClassifyList(List<String> ids); |
| | | boolean batchImport(String fileName, MultipartFile file) ; |
| | | Integer batchImport(String fileName, MultipartFile file) ; |
| | | |
| | | } |
| | |
| | | private TransactionEventMapper transactionEventMapper; |
| | | |
| | | @Override |
| | | public List<GuideEvolveEntity> selectConfigList(String guideId) { |
| | | List<GuideEvolveEntity> guideEvolveEntities = baseMapper.selectConfigList(guideId); |
| | | public List<GuideEvolveEntity> selectConfigList(String guideId,SysUser sysUser) { |
| | | List<GuideEvolveEntity> guideEvolveEntities; |
| | | if (sysUser.getUserType().equals("3")){ |
| | | guideEvolveEntities=baseMapper.selectHideList(guideId); |
| | | }else { |
| | | guideEvolveEntities = baseMapper.selectConfigList(guideId); |
| | | } |
| | | for (GuideEvolveEntity guideEvolveEntity: guideEvolveEntities) { |
| | | String[] split; |
| | | if (guideEvolveEntity.getAccessoryId()!=null){ |
| | |
| | | @Override |
| | | public List<GuideRepairOrder> selectConfigList(IPage<GuideRepairOrder> page, Integer state, |
| | | String matterName, List<String> ids, String status, |
| | | String guideUserId) { |
| | | return baseMapper.selectConfigList(page, state, matterName, ids, status, guideUserId); |
| | | String guideUserId, String createTimeStartTime, |
| | | String createTimeTimeEndTime,String classifyId) { |
| | | return baseMapper.selectConfigList(page, state, matterName, ids, status, guideUserId,createTimeStartTime,createTimeTimeEndTime,classifyId); |
| | | } |
| | | |
| | | @Override |
| | | public List<GuideRepairOrder> selectConfigList(String matterName, List<String> ids, String status, |
| | | String guideUserId) { |
| | | return baseMapper.selectConfigList(matterName, ids, status, guideUserId); |
| | | String guideUserId, String createTimeStartTime,String createTimeTimeEndTime,String classifyId) { |
| | | return baseMapper.selectConfigList(matterName, ids, status, guideUserId,createTimeStartTime,createTimeTimeEndTime,classifyId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | import com.dg.core.service.ITransactionEventService; |
| | | |
| | | import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| | | import org.apache.poi.ss.usermodel.Row; |
| | | import org.apache.poi.ss.usermodel.Sheet; |
| | | import org.apache.poi.ss.usermodel.Workbook; |
| | | import org.apache.poi.ss.usermodel.*; |
| | | import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | public List<TransactionEvent> selectList(String keyWord) { |
| | | if (keyWord!=null&&keyWord!=""){ |
| | | return baseMapper.selectList(new QueryWrapper<TransactionEvent>().lambda().like(TransactionEvent::getMatterName,keyWord)); |
| | | } |
| | | else { |
| | | } else { |
| | | return baseMapper.selectList(new QueryWrapper<TransactionEvent>().lambda()); |
| | | } |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public boolean batchImport(String fileName, MultipartFile file) { |
| | | public Integer batchImport(String fileName, MultipartFile file) { |
| | | boolean notNull = false; |
| | | if (!fileName.matches("^.+\\.(?i)(xls)$") && !fileName.matches("^.+\\.(?i)(xlsx)$")) { |
| | | throw new RuntimeException("选择文件格式不正确,请下载模板上传"); |
| | |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | Integer failNum = 0;//失败数量 |
| | | // 获取excel的sheet页数 |
| | | int numberOfSheets = wb.getNumberOfSheets(); |
| | | for (int j = 0; j < numberOfSheets; j++) { |
| | | //获取excel字段名称进行比较 |
| | | Sheet sheetAt = wb.getSheetAt(0); |
| | | Sheet sheetAt = wb.getSheetAt(j); |
| | | if(sheetAt.getRow(2)!=null){ |
| | | Row row1 = sheetAt.getRow(2); |
| | | TransactionEvent transactionEvent = baseMapper.selectOne(new QueryWrapper<TransactionEvent>().lambda().eq(TransactionEvent::getMatterName, row1.getCell(1).getStringCellValue())); |
| | | TransactionEvent transactionEvent = baseMapper.selectOne(new QueryWrapper<TransactionEvent>().lambda().eq(TransactionEvent::getMatterName, new DataFormatter().formatCellValue(row1.getCell(1)))); |
| | | boolean isAdd=false; |
| | | if(transactionEvent==null){ |
| | | transactionEvent=new TransactionEvent(); |
| | | isAdd=true; |
| | | } |
| | | transactionEvent.setMatterName(row1.getCell(1).getStringCellValue()); |
| | | transactionEvent.setMatterName(new DataFormatter().formatCellValue(row1.getCell(1))); |
| | | Row row2 = sheetAt.getRow(3); |
| | | transactionEvent.setSetGist("<p>"+row2.getCell(1).getStringCellValue()+"</p>"); |
| | | transactionEvent.setSetGist("<p>" + new DataFormatter().formatCellValue(row2.getCell(1)) + "</p>"); |
| | | Row row3 = sheetAt.getRow(4); |
| | | Row row4 = sheetAt.getRow(5); |
| | | transactionEvent.setBasicInformation("<p> 事项名称:"+row1.getCell(1).getStringCellValue()+"<br />" |
| | | +row3.getCell(0).getStringCellValue()+":"+row3.getCell(1).getStringCellValue()+"<br />" |
| | | +row3.getCell(3).getStringCellValue()+":"+row3.getCell(4).getStringCellValue()+"<br />" |
| | | +row4.getCell(0).getStringCellValue()+":"+row4.getCell(1).getStringCellValue()+"</p>"); |
| | | transactionEvent.setBasicInformation("<p> 事项名称:" + new DataFormatter().formatCellValue(row1.getCell(1)) + "<br />" |
| | | + new DataFormatter().formatCellValue(row3.getCell(0)) + ":" + new DataFormatter().formatCellValue(row3.getCell(1))+ "<br />" |
| | | + new DataFormatter().formatCellValue(row3.getCell(3)) + ":" + new DataFormatter().formatCellValue(row3.getCell(4)) + "<br />" |
| | | + new DataFormatter().formatCellValue(row4.getCell(0)) + ":" + new DataFormatter().formatCellValue(row4.getCell(1)) + "</p>"); |
| | | int i=7; |
| | | String applicationMaterial="<p>"; |
| | | while (true){ |
| | |
| | | i=i+2; |
| | | break; |
| | | } |
| | | applicationMaterial=applicationMaterial+"办理区域:"+row.getCell(0).getStringCellValue()+"<br />" |
| | | +"咨询电话:"+row.getCell(1).getStringCellValue()+"<br />" |
| | | +"办公地址:"+row.getCell(2).getStringCellValue()+"<br />" |
| | | +"办公时间:"+row.getCell(3).getStringCellValue()+"<br />"; |
| | | applicationMaterial = applicationMaterial + "办理区域:" + new DataFormatter().formatCellValue(row.getCell(0)) + "<br />" |
| | | + "咨询电话:" + new DataFormatter().formatCellValue(row.getCell(1)) + "<br />" |
| | | + "办公地址:" + new DataFormatter().formatCellValue(row.getCell(2)) + "<br />" |
| | | + "办公时间:" + new DataFormatter().formatCellValue(row.getCell(3)) + "<br />"; |
| | | applicationMaterial=applicationMaterial+"<br />"; |
| | | i++; |
| | | } |
| | |
| | | i=i+1; |
| | | break; |
| | | } |
| | | acceptConditions=acceptConditions+row.getCell(0).getStringCellValue()+" " |
| | | +row.getCell(1).getStringCellValue()+" " |
| | | +row.getCell(2).getStringCellValue()+" "; |
| | | acceptConditions = acceptConditions + new DataFormatter().formatCellValue(row.getCell(0)) + " " |
| | | +new DataFormatter().formatCellValue( row.getCell(1)) + " " |
| | | + new DataFormatter().formatCellValue(row.getCell(2)) + " "; |
| | | acceptConditions=acceptConditions+"<br />"; |
| | | i++; |
| | | } |
| | |
| | | i=i+1; |
| | | break; |
| | | } |
| | | rates=rates+row.getCell(0).getStringCellValue()+" " |
| | | +row.getCell(1).getStringCellValue()+" " |
| | | +row.getCell(2).getStringCellValue()+" "; |
| | | rates = rates + new DataFormatter().formatCellValue(row.getCell(0)) + " " |
| | | + new DataFormatter().formatCellValue(row.getCell(1)) + " " |
| | | + new DataFormatter().formatCellValue(row.getCell(2)) + " "; |
| | | rates=rates+"<br />"; |
| | | i++; |
| | | } |
| | |
| | | i=i+1; |
| | | break; |
| | | } |
| | | transactionArea=transactionArea+row.getCell(0).getStringCellValue()+" " |
| | | +row.getCell(1).getStringCellValue()+" " |
| | | +row.getCell(2).getStringCellValue()+" "; |
| | | transactionArea = transactionArea + new DataFormatter().formatCellValue(row.getCell(0)) + " " |
| | | + new DataFormatter().formatCellValue(row.getCell(1)) + " " |
| | | + new DataFormatter().formatCellValue(row.getCell(2)) + " "; |
| | | transactionArea=transactionArea+"<br />"; |
| | | i++; |
| | | } |
| | |
| | | i=i+1; |
| | | break; |
| | | } |
| | | handlingProcedures=handlingProcedures+row.getCell(0).getStringCellValue()+" " |
| | | +row.getCell(1).getStringCellValue()+" " |
| | | +row.getCell(2).getStringCellValue()+" "; |
| | | handlingProcedures = handlingProcedures + new DataFormatter().formatCellValue(row.getCell(0)) + " " |
| | | + new DataFormatter().formatCellValue(row.getCell(1)) + " " |
| | | + new DataFormatter().formatCellValue(row.getCell(2)) + " "; |
| | | handlingProcedures=handlingProcedures+"<br />"; |
| | | i++; |
| | | } |
| | |
| | | }else { |
| | | ans =baseMapper.updateById(transactionEvent); |
| | | } |
| | | if (ans>0){ |
| | | return true; |
| | | if (ans <= 0) { |
| | | failNum++; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | } |
| | | if (failNum == 0) {// |
| | | return 3;//全部导入成功 |
| | | } else if (failNum < numberOfSheets) { |
| | | return 2;//部分导入成功 |
| | | } else if (failNum.equals(numberOfSheets)) { |
| | | return 0;//导入失败 |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | <select id="selectHideList" resultMap="GuideEvolveResult"> |
| | | SELECT |
| | | id, |
| | | departmental_id, |
| | | IFNULL( |
| | | (select concat(substring(user_name,1,1),'老师') from automessage_sys_user where a.to_user_id=user_id and user_type in (1,2)), |
| | | (select user_name from automessage_sys_user where a.to_user_id=user_id))toUserName, |
| | | IFNULL( |
| | | (select concat(substring(user_name,1,1),'老师') from automessage_sys_user where a.from_user_id=user_id and user_type in (1,2)), |
| | | (select user_name from automessage_sys_user where a.from_user_id=user_id))fromUserName, |
| | | to_user_id, |
| | | from_user_id, |
| | | state, |
| | | remark, |
| | | guide_id, |
| | | transaction_id, |
| | | accessory_id, |
| | | accessory_name, |
| | | accessory_url, |
| | | from_departmental_id, |
| | | video_url, |
| | | picture_url, |
| | | create_time, |
| | | update_time, |
| | | guide_order_num, |
| | | is_timeout |
| | | FROM |
| | | automessage_guide_evolve a |
| | | <where> |
| | | <if test="guideId != null and guideId != ''"> |
| | | AND guide_id=#{guideId} |
| | | </if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.GuideEvolveEntity"> |
| | | insert into automessage_guide_evolve ( |
| | |
| | | <if test="status != null and status != ''"> |
| | | AND a.state=#{status} |
| | | </if> |
| | | <if test="createTimeStartTime != null and createTimeStartTime != ''"> |
| | | and create_time > #{createTimeStartTime} |
| | | </if> |
| | | <if test="createTimeTimeEndTime != null and createTimeTimeEndTime != ''"> |
| | | and #{createTimeTimeEndTime} > create_time |
| | | </if> |
| | | <if test="classifyId != null and classifyId != ''"> |
| | | and classify_id in (select id FROM automessage_classify_administration where parent_id = #{classifyId}) |
| | | </if> |
| | | |
| | | </where> |
| | | order by update_time desc , create_time desc |
| | | </select> |
| | |
| | | import com.panzhihua.common.model.dtos.community.social.PageProjectDTO; |
| | | import com.panzhihua.common.model.vos.community.rentHouse.WxPayOrderVO; |
| | | import com.panzhihua.common.utlis.DateUtils; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | |
| | | public R selectAutomessageSysUserById(@RequestParam("id")Long id){ |
| | | return communityService.selectAutomessageSysUserById(id); |
| | | } |
| | | |
| | | @ApiOperation("新增投诉建议或问题留言") |
| | | @PostMapping("addFeedBack") |
| | | public R addFeedBack(@RequestBody SysUserFeedbackDTO sysUserFeedbackDTO){ |
| | | return userService.addFeedback(sysUserFeedbackDTO); |
| | | } |
| | | |
| | | @ApiOperation("查看自己的投诉建议或问题留言记录") |
| | | @GetMapping("myFeedBack") |
| | | public R myFeedBack(@ApiParam("类型:1问题留言2投诉建议") @RequestParam(value = "type",required = false)Integer type){ |
| | | return userService.myFeedBack(this.getLoginUserInfo().getUserId(),type); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.interfaces.OperLog; |
| | | import com.panzhihua.common.model.dtos.user.SysUserFeedbackDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.user.ChangePasswordVO; |
| | |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @ApiOperation("新增投诉建议或问题留言") |
| | | @PostMapping("addFeedBack") |
| | | public R addFeedBack(@RequestBody SysUserFeedbackDTO sysUserFeedbackDTO){ |
| | | return userService.addFeedback(sysUserFeedbackDTO); |
| | | } |
| | | |
| | | @ApiOperation("查看自己的投诉建议或问题留言记录") |
| | | @GetMapping("myFeedBack") |
| | | public R myFeedBack(@ApiParam("类型:1问题留言2投诉建议") @RequestParam(value = "type",required = false)Integer type){ |
| | | return userService.myFeedBack(this.getLoginUserInfo().getUserId(),type); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | */ |
| | | private Date updateBy; |
| | | |
| | | private String workTime; |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | } |
| | |
| | | private String phone; |
| | | |
| | | private String areaCode; |
| | | |
| | | private Integer type; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty("1投诉建议2问题留言") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty("页数") |
| | | private Integer page; |
| | | |
| | | @ApiModelProperty("每页大小") |
| | | private Integer size; |
| | | |
| | | @ApiModelProperty("用户昵称") |
| | | private String nickName; |
| | | |
| | | @ApiModelProperty("用户姓名") |
| | | private String name; |
| | | |
| | | @ApiModelProperty("电话") |
| | | private String phone; |
| | | } |
| | |
| | | */ |
| | | private Date updateBy; |
| | | |
| | | @ApiModelProperty("工作时间") |
| | | private String workTime; |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | } |
| | |
| | | |
| | | @GetMapping("/dataCount") |
| | | R dataCount(); |
| | | |
| | | @DeleteMapping("/proceedings/remove") |
| | | R removeProceedings(@RequestParam("id") Long id); |
| | | } |
New file |
| | |
| | | package com.panzhihua.community_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.user.PageFeedBackDTO; |
| | | import com.panzhihua.common.model.dtos.user.SysUserFeedbackDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.user.SysUserFeedbackVO; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.validated.PageGroup; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RestController |
| | | @RequestMapping("/feedBack") |
| | | @Api(tags = "问题留言和投诉建议") |
| | | public class ComActFeedBackApi extends BaseController { |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | @ApiOperation(value = "分页查询用户意见反馈", response = SysUserFeedbackVO.class) |
| | | @PostMapping("pagefeedback") |
| | | public R pageFeedback(@RequestBody @Validated(PageGroup.class) PageFeedBackDTO pageFeedBackDTO) { |
| | | pageFeedBackDTO.setAreaCode(this.getAreaCode()); |
| | | return userService.pageFeedback(pageFeedBackDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "反馈意见详情", response = SysUserFeedbackVO.class) |
| | | @GetMapping("feedback") |
| | | public R detailFeedback(@RequestParam("id") Long id) { |
| | | return userService.detailFeedback(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除意见反馈") |
| | | @DeleteMapping("feedback") |
| | | public R deleteFeedback(@RequestParam("id") Long id) { |
| | | return userService.deleteFeedback(id); |
| | | } |
| | | |
| | | @ApiOperation("回复意见反馈或修改意见反馈回复") |
| | | @PostMapping("feedback") |
| | | public R replyFeedBack(@RequestBody SysUserFeedbackVO sysUserFeedbackVO){ |
| | | return userService.updateFeedBack(sysUserFeedbackVO); |
| | | } |
| | | } |
| | |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RestController |
| | | @RequestMapping("/proceedings") |
| | | @Api(tags = "议事委员会") |
| | | @Api(tags = {"议事委员会"}) |
| | | public class ComActPorceedingsApi { |
| | | |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | | @ApiOperation(value = "分页查询议事委员会列表",response = ComActProceedingsVO.class) |
| | | @GetMapping |
| | | public R list(@RequestParam(value = "page",required = false) Integer page, |
| | | @RequestParam(value = "size",required = false) Integer size, |
| | | @RequestParam(value = "keyWord",required = false) String keyWord){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("新增或修改议事委员会") |
| | | @PostMapping |
| | | public R addOrUpdate(@RequestBody ComActProceedingsDTO comActProceedingsDTO){ |
| | | return communityService.addOrUpdateProceedings(comActProceedingsDTO); |
| | | } |
| | | |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation("删除议事委员会") |
| | | public R remove(@PathVariable Long id){ |
| | | return communityService.removeProceedings(id); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.panzhihua.community_backstage.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.community.ComActProceedingsDTO; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActCommiteeVO; |
| | | import com.panzhihua.common.model.vos.community.ComActProceedingsVO; |
| | | import com.panzhihua.common.model.vos.community.ComPropertyVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | commonPage.setParamId(this.getCommunityId()); |
| | | return this.communityService.comPropertySelectAll(commonPage); |
| | | } |
| | | |
| | | /** |
| | | * 新增数据 |
| | | * |
| | |
| | | return comActProceedingsService.addOrUpdate(comActProceedingsDTO); |
| | | } |
| | | |
| | | @DeleteMapping("/remove") |
| | | public R removeProceedings(@RequestParam("id") Long id){ |
| | | return R.ok(comActProceedingsService.removeById(id)); |
| | | } |
| | | |
| | | } |
| | |
| | | return automessageSysUserService.selectAutomessageSysUserById(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取问题清单,需求清单,报道服务活动数量 |
| | | * */ |
| | | @GetMapping("/dataCount") |
| | | public R dataCount(){ |
| | | return null; |
| | | } |
| | | } |
| | |
| | | public R selectCount(@RequestParam("type")Integer type,@RequestParam(value = "phone",required = false)String phone,@RequestParam("communityId")Long communityId){ |
| | | return this.comActNeighborCircleService.selectCount(type,phone,communityId); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | import java.util.List; |
| | | |
| | | import com.panzhihua.common.model.vos.community.ComActPasswordVo; |
| | | import com.panzhihua.common.model.vos.community.DataCount; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | * 修改人 |
| | | */ |
| | | private Date updateBy; |
| | | /** |
| | | * 工作时间 |
| | | * */ |
| | | private String workTime; |
| | | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | } |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.community.DataCount; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.ObjectUtils; |
| | |
| | | return R.ok(iPage); |
| | | } |
| | | |
| | | |
| | | } |