| | |
| | | <if test="vo.town !=null and vo.town !=''"> |
| | | AND MM.town = #{vo.town} |
| | | </if> |
| | | <if test="vo.resGuid !=null and resGuid !=''"> |
| | | <if test="vo.resGuid !=null and vo.resGuid !=''"> |
| | | AND MM.res_guid = #{vo.resGuid} |
| | | </if> |
| | | <if test="vo.year!=null and vo.year!=''"> |
| | |
| | | <if test="vo.town !=null and vo.town !=''"> |
| | | AND RM.town = #{vo.town} |
| | | </if> |
| | | <if test="vo.resGuid !=null and resGuid !=''"> |
| | | AND MM.res_guid = #{vo.resGuid} |
| | | <if test="vo.resGuid !=null and vo.resGuid !=''"> |
| | | AND RM.res_guid = #{vo.resGuid} |
| | | </if> |
| | | <if test="vo.year!=null and vo.year!=''"> |
| | | and date_format(RM.create_time,'%Y') = #{vo.year} |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: 巡查上报 |
| | |
| | | return R.data(patrolReportService.updateById(patrolReport)); |
| | | } |
| | | |
| | | /** |
| | | * 批量编辑 |
| | | */ |
| | | @ApiOperation(value="巡查上报-批量编辑", notes="巡查上报-批量编辑") |
| | | @RequestMapping(value = "/editBatch", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public R editBatch(@RequestBody List<PatrolReport> list){ |
| | | return R.data(patrolReportService.updateBatchById(list)); |
| | | } |
| | | |
| | | /** |
| | | * 通过id删除 |
| | | * |
| | |
| | | Map<Object, Object> map = new HashMap<>(); |
| | | map.put("value", userList.get(0).getId().toString()); |
| | | map.put("name", userList.get(0).getName()); |
| | | map.put("type",person.getType()); |
| | | resList.add(map); |
| | | } |
| | | } |