修改行政处罚修复对本省外省的判断

This commit is contained in:
zhouxy 2026-04-27 22:52:01 +08:00
parent 3965ee9bfa
commit 7e451c4470
3 changed files with 13 additions and 3 deletions

View File

@ -204,7 +204,8 @@ public class TBizRemPunishmentServiceImpl extends BaseServiceImpl<TBizRemPunishm
//文书模板数据转为文书正式数据
this.handleTsWrit(tBizRemPunishment, tswrittemplate);
//根据数据来源判断处理方式
if ("外省".equals(tBizRemPunishment.getSourceType())) {
TbIlcPunInfoQuery tbIlcPunInfoQuery = tbIlcPunInfoQueryService.findById(tBizRemPunishment.getPunishmentId());
if ("外省".equals(tbIlcPunInfoQuery.getSourceType())) {
// 外省更新QG表 + 插入CR_E_CASE
this.insertCrECase(tBizRemPunishment);
} else {

View File

@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
@ -240,4 +242,11 @@ public class TbIlcPunInfoQuery extends Model<TbIlcPunInfoQuery> {
return this.id;
}
/**
* 数据来源标识 本省/外省
*/
@ApiModelProperty(value = "数据来源标识")
@TableField(exist = false)
private String sourceType;
}

View File

@ -95,9 +95,9 @@
</select>
<select id="findById" resultType="com.chinaweal.aiccs.crgs.punish.entity.TbIlcPunInfoQuery">
select <include refid="As_Base_Column_List"/> from case_pub_nbaseinfo where ACTYPE = '1' and CASEID = #{id}
select '本省' as sourceType ,<include refid="As_Base_Column_List"/> from case_pub_nbaseinfo where ACTYPE = '1' and CASEID = #{id}
union all
select <include refid="As_Base_Column_List"/> from AICCS.QG_CASE_PUB_NBASEINFO where ACTYPE = '1' and CASEID = #{id}
select '外省' as sourceType ,<include refid="As_Base_Column_List"/> from AICCS.QG_CASE_PUB_NBASEINFO where ACTYPE = '1' and CASEID = #{id}
</select>
<!-- 行政处罚记录UNION查询本省+外省) -->