| | |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.vos.community.acid.ComActAcidRecordVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.entity.ComActAcidRecord; |
| | | import com.panzhihua.service_community.service.ComActAcidRecordService; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | public R update(@RequestBody ComActAcidRecordVO comActAcidRecordVO) { |
| | | ComActAcidRecord comActAcidRecord=new ComActAcidRecord(); |
| | | BeanUtils.copyProperties(comActAcidRecordVO,comActAcidRecord); |
| | | return R.ok(this.comActAcidRecordService.updateById(comActAcidRecord)); |
| | | if(StringUtils.isNotEmpty(comActAcidRecord.getLocalCity())){ |
| | | this.comActAcidRecordService.updateById(comActAcidRecord); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |