package com.ycl.service.zf.impl; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.entity.zf.EnforceLawReport; import com.ycl.enums.common.ResultCode; import com.ycl.exception.ApiException; import com.ycl.mapper.zf.EnforcelawReportMapper; import com.ycl.service.zf.IEnforcelawReportService; import com.ycl.vo.zf.ZfVO; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; /** *

* 违规事项处置管理:包含违法(违建)情况上报、立案、派遣、处置、核查、结案 服务实现类 *

* * @author lyq * @since 2022-09-14 */ @Service public class EnforcelawReportServiceImpl extends ServiceImpl implements IEnforcelawReportService { @Resource private EnforcelawReportMapper enforcelawReportMapper; @Override @Transactional(rollbackFor = Exception.class) public void report(ZfVO.ZfReportVO params) { EnforceLawReport enforcelawReport = new EnforceLawReport(); BeanUtils.copyProperties(params, enforcelawReport); if (enforcelawReportMapper.insert(enforcelawReport) != 1) { throw new ApiException(ResultCode.RECORD_SAVE_FAIL); } } @Override public Page selectPageVo(Page page, String startTime, String endTime, String community, String status, String partiesName, String partiesID) { return enforcelawReportMapper.selectPageVo(page, startTime, endTime, community, status, partiesName, partiesID); } }