| | |
| | | mediafileMapper.deleteByExample(Example(Mediafile::class.java).apply { |
| | | createCriteria().andEqualTo("businessguid", id) |
| | | }) |
| | | //更新巡查信息中的问题数量 |
| | | val inspection = inspectionMapper.selectByPrimaryKey(p.iguid) |
| | | if (inspection.problemcount != null && inspection.problemcount!! > 0) { |
| | | inspection.problemcount = inspection.problemcount!! - 1 |
| | | inspectionMapper.updateByPrimaryKey(inspection) |
| | | } |
| | | BaseResponse(true, "问题删除成功", data = i) |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | //更新巡查信息的问题数 |
| | | if (inspection.problemcount != null) { |
| | | inspection.problemcount = inspection.problemcount!! + 1 |
| | | inspectionMapper.updateByPrimaryKey(inspection) |
| | | } |
| | | |
| | | return BaseResponse(true) |
| | | } |
| | | |