Commit 57c66f84 authored by hongguangwu's avatar hongguangwu

1.7.20-税友优化徽州区

parent 033464a0
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
/**
* 瓜子特殊字典
*
* @author hgw
* @date 2026-02-03 14:16:10
*/
@Data
@TableName("t_gz_area")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "瓜子特殊字典")
public class TGzArea extends BaseEntity {
/**
* ID
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("ID")
@Schema(description = "ID")
private String id;
/**
* 省
*/
@ExcelAttribute(name = "省")
@ExcelProperty("省")
@Schema(description = "省")
private Integer province;
/**
* 市
*/
@ExcelAttribute(name = "市")
@ExcelProperty("市")
@Schema(description = "市")
private Integer city;
/**
* 区县
*/
@ExcelAttribute(name = "区县")
@ExcelProperty("区县")
@Schema(description = "区县")
private Integer town;
/**
* 皖信地址编码
*/
@ExcelAttribute(name = "皖信地址编码", isNotEmpty = true, errorInfo = "皖信地址编码不能为空", maxLength = 11)
@NotBlank(message = "皖信地址编码不能为空")
@Length(max = 11, message = "皖信地址编码不能超过11个字符")
@ExcelProperty("皖信地址编码")
@Schema(description = "皖信地址编码")
private String areaCode;
/**
* 皖信地址
*/
@ExcelAttribute(name = "皖信地址", maxLength = 50)
@Length(max = 50, message = "皖信地址不能超过50个字符")
@ExcelProperty("皖信地址")
@Schema(description = "皖信地址")
private String areaName;
/**
* 瓜子地址编码
*/
@ExcelAttribute(name = "瓜子地址编码", isNotEmpty = true, errorInfo = "瓜子地址编码不能为空", maxLength = 11)
@NotBlank(message = "瓜子地址编码不能为空")
@Length(max = 11, message = "瓜子地址编码不能超过11个字符")
@ExcelProperty("瓜子地址编码")
@Schema(description = "瓜子地址编码")
private String gzCode;
/**
* 瓜子城市名称
*/
@ExcelAttribute(name = "瓜子城市名称", maxLength = 50)
@Length(max = 50, message = "瓜子城市名称不能超过50个字符")
@ExcelProperty("瓜子城市名称")
@Schema(description = "瓜子城市名称")
private String gzName;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzArea;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 瓜子特殊字典
*
* @author hgw
* @date 2026-02-03 14:16:10
*/
@Data
public class TGzAreaSearchVo extends TGzArea {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema(description = "创建时间区间")
private LocalDateTime[] createTimes;
/**
* @Author fxj
* 查询数据起
**/
@Schema(description = "查询limit 开始")
private int limitStart;
/**
* @Author fxj
* 查询数据止
**/
@Schema(description = "查询limit 数据条数")
private int limitEnd;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzArea;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzAreaService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzAreaSearchVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 瓜子特殊字典
*
* @author hgw
* @date 2026-02-03 14:16:10
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tgzarea")
@Tag(name = "瓜子特殊字典管理")
public class TGzAreaController {
private final TGzAreaService tGzAreaService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tGzArea 瓜子特殊字典
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TGzArea>> getTGzAreaPage(Page<TGzArea> page, TGzArea tGzArea) {
return new R<>(tGzAreaService.getTGzAreaPage(page, tGzArea));
}
/**
* 不分页查询
*
* @param tGzArea 瓜子特殊字典
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
public R<List<TGzArea>> getTGzAreaList(@RequestBody TGzArea tGzArea) {
return R.ok(tGzAreaService.getTGzAreaList(tGzArea));
}
/**
* 通过id查询瓜子特殊字典
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_tgzarea_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzarea_get')")
public R<TGzArea> getById(@PathVariable("id") String id) {
return R.ok(tGzAreaService.getById(id));
}
/**
* 新增瓜子特殊字典
*
* @param tGzArea 瓜子特殊字典
* @return R
*/
@Operation(summary = "新增瓜子特殊字典", description = "新增瓜子特殊字典:hasPermission('archives_tgzarea_add')")
@SysLog("新增瓜子特殊字典")
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tgzarea_add')")
public R<String> save(@RequestBody TGzArea tGzArea) {
R<String> judgeR = this.judgeCore(tGzArea);
if (judgeR != null) return judgeR;
tGzAreaService.save(tGzArea);
return R.ok();
}
private R<String> judgeCore(TGzArea tGzArea) {
if (Common.isEmpty(tGzArea.getAreaCode())) {
return R.failed("请填写皖信地址编码");
}
if (Common.isEmpty(tGzArea.getGzCode())) {
return R.failed("请填写瓜子地址编码");
}
long count = tGzAreaService.getTGzAreaCountByCode(tGzArea.getAreaCode(), tGzArea.getId());
if (count > 0) {
return R.failed("该皖信地址编码已存在!");
}
return null;
}
/**
* 修改瓜子特殊字典
*
* @param tGzArea 瓜子特殊字典
* @return R
*/
@Operation(summary = "修改瓜子特殊字典", description = "修改瓜子特殊字典:hasPermission('archives_tgzarea_edit')")
@SysLog("修改瓜子特殊字典")
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tgzarea_edit')")
public R<String> updateById(@RequestBody TGzArea tGzArea) {
R<String> judgeR = this.judgeCore(tGzArea);
if (judgeR != null) return judgeR;
tGzAreaService.updateById(tGzArea);
return R.ok();
}
/**
* 通过id删除瓜子特殊字典
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除瓜子特殊字典", description = "通过id删除瓜子特殊字典:hasPermission('archives_tgzarea_del')")
@SysLog("通过id删除瓜子特殊字典")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzarea_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tGzAreaService.removeById(id));
}
/**
* 瓜子特殊字典 批量导出
*
* @author hgw
* @date 2026-02-03 14:16:10
**/
@Operation(description = "导出瓜子特殊字典")
@PostMapping("/export")
public void export(HttpServletResponse response, @RequestBody TGzAreaSearchVo searchVo) {
tGzAreaService.listExport(response, searchVo);
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzArea;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzAreaSearchVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 瓜子特殊字典
*
* @author hgw
* @date 2026-02-03 14:16:10
*/
@Mapper
public interface TGzAreaMapper extends BaseMapper<TGzArea> {
/**
* 瓜子特殊字典简单分页查询
* @param tGzArea 瓜子特殊字典
* @return
*/
IPage<TGzArea> getTGzAreaPage(Page<TGzArea> page, @Param("tGzArea") TGzArea tGzArea);
List<TGzArea> getTGzAreaList(@Param("tGzArea") TGzArea tGzArea);
long getTGzAreaExportCount(@Param("tGzArea") TGzArea tGzArea);
long getTGzAreaCountByCode(@Param("areaCode") String areaCode, @Param("id") String id);
List<TGzArea> getTGzAreaExport(@Param("tGzArea") TGzAreaSearchVo tGzArea);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzArea;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzAreaSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 瓜子特殊字典
*
* @author hgw
* @date 2026-02-03 14:16:10
*/
public interface TGzAreaService extends IService<TGzArea> {
/**
* 瓜子特殊字典简单分页查询
*
* @param tGzArea 瓜子特殊字典
* @return
*/
IPage<TGzArea> getTGzAreaPage(Page<TGzArea> page, TGzArea tGzArea);
// list
List<TGzArea> getTGzAreaList(TGzArea tGzArea);
// 条数
long getTGzAreaCountByCode(String areaCode, String id);
// 导出
void listExport(HttpServletResponse response, TGzAreaSearchVo searchVo);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import cn.hutool.core.util.ArrayUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.EasyExcelFactory;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzArea;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzAreaMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzAreaService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzAreaSearchVo;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ExcelUtil;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;
/**
* 瓜子特殊字典
*
* @author hgw
* @date 2026-02-03 14:16:10
*/
@Log4j2
@Service
public class TGzAreaServiceImpl extends ServiceImpl<TGzAreaMapper, TGzArea> implements TGzAreaService {
/**
* 瓜子特殊字典简单分页查询
*
* @param tGzArea 瓜子特殊字典
* @return
*/
@Override
public IPage<TGzArea> getTGzAreaPage(Page<TGzArea> page, TGzArea tGzArea) {
return baseMapper.getTGzAreaPage(page, tGzArea);
}
@Override
public List<TGzArea> getTGzAreaList(TGzArea tGzArea) {
return baseMapper.getTGzAreaList(tGzArea);
}
@Override
public long getTGzAreaCountByCode(String areaCode, String id) {
return baseMapper.getTGzAreaCountByCode(areaCode, id);
}
/**
* 瓜子地址映射表批量导出
* @return
*/
@Override
public void listExport(HttpServletResponse response, TGzAreaSearchVo searchVo) {
String fileName = "瓜子地址映射表批量导出" + DateUtil.getThisTime() + ".xlsx";
//获取要导出的列表
List<TGzArea> list = new ArrayList<>();
long count = baseMapper.getTGzAreaExportCount(searchVo);
ServletOutputStream out = null;
try {
out = response.getOutputStream();
response.setContentType(CommonConstants.MULTIPART_FORM_DATA);
response.setCharacterEncoding("utf-8");
response.setHeader(CommonConstants.CONTENT_DISPOSITION, CommonConstants.ATTACHMENT_FILENAME + URLEncoder.encode(fileName, CommonConstants.UTF8));
ExcelWriter excelWriter = EasyExcelFactory.write(out, TGzArea.class).build();
int index = 0;
if (count > CommonConstants.ZERO_INT) {
WriteSheet writeSheet;
for (int i = 0; i <= count; i = i + CommonConstants.EXCEL_EXPORT_LIMIT) {
// 获取实际记录
searchVo.setLimitStart(i);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
list = baseMapper.getTGzAreaExport(searchVo);
if (Common.isNotNull(list)) {
writeSheet = EasyExcelFactory.writerSheet("瓜子地址映射表" + index).build();
excelWriter.write(list, writeSheet);
index++;
list.clear();
}
}
} else {
WriteSheet writeSheet = EasyExcelFactory.writerSheet("瓜子地址映射表" + index).build();
excelWriter.write(list, writeSheet);
}
if (Common.isNotNull(list)) {
list.clear();
}
out.flush();
excelWriter.finish();
} catch (Exception e) {
log.error("执行异常", e);
} finally {
try {
if (null != out) {
out.close();
}
} catch (IOException e) {
log.error("执行异常", e);
}
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzAreaMapper">
<resultMap id="tGzAreaMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TGzArea">
<id property="id" column="ID"/>
<result property="province" column="PROVINCE"/>
<result property="city" column="CITY"/>
<result property="town" column="TOWN"/>
<result property="areaCode" column="AREA_CODE"/>
<result property="areaName" column="AREA_NAME"/>
<result property="gzCode" column="GZ_CODE"/>
<result property="gzName" column="GZ_NAME"/>
<result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/>
<result property="createName" column="create_name"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="Base_Column_List">
a.ID,
a.PROVINCE,
a.CITY,
a.TOWN,
a.AREA_CODE,
a.AREA_NAME,
a.GZ_CODE,
a.GZ_NAME,
a.create_time,
a.create_by,
a.create_name,
a.update_by,
a.update_time
</sql>
<sql id="tGzArea_where">
<if test="tGzArea != null">
<if test="tGzArea.id != null and tGzArea.id.trim() != ''">
AND a.ID = #{tGzArea.id}
</if>
<if test="tGzArea.province != null">
AND a.PROVINCE = #{tGzArea.province}
</if>
<if test="tGzArea.city != null">
AND a.CITY = #{tGzArea.city}
</if>
<if test="tGzArea.town != null">
AND a.TOWN = #{tGzArea.town}
</if>
<if test="tGzArea.areaCode != null and tGzArea.areaCode.trim() != ''">
AND a.AREA_CODE = #{tGzArea.areaCode}
</if>
<if test="tGzArea.areaName != null and tGzArea.areaName.trim() != ''">
AND a.AREA_NAME like concat('%', #{tGzArea.areaName}, '%')
</if>
<if test="tGzArea.gzCode != null and tGzArea.gzCode.trim() != ''">
AND a.GZ_CODE = #{tGzArea.gzCode}
</if>
<if test="tGzArea.gzName != null and tGzArea.gzName.trim() != ''">
AND a.GZ_NAME like concat('%', #{tGzArea.gzName}, '%')
</if>
<if test="tGzArea.createTime != null">
AND a.create_time = #{tGzArea.createTime}
</if>
<if test="tGzArea.createBy != null and tGzArea.createBy.trim() != ''">
AND a.create_by = #{tGzArea.createBy}
</if>
<if test="tGzArea.createName != null and tGzArea.createName.trim() != ''">
AND a.create_name = #{tGzArea.createName}
</if>
<if test="tGzArea.updateBy != null and tGzArea.updateBy.trim() != ''">
AND a.update_by = #{tGzArea.updateBy}
</if>
<if test="tGzArea.updateTime != null">
AND a.update_time = #{tGzArea.updateTime}
</if>
</if>
</sql>
<!--tGzArea简单分页查询-->
<select id="getTGzAreaPage" resultMap="tGzAreaMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_area a
<where>
1=1
<include refid="tGzArea_where"/>
</where>
ORDER BY a.create_time DESC
</select>
<!-- 查询list -->
<select id="getTGzAreaList" resultMap="tGzAreaMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_area a
<where>
1=1
<include refid="tGzArea_where"/>
</where>
ORDER BY a.create_time DESC
</select>
<!-- 导出条数 -->
<select id="getTGzAreaExportCount" resultType="java.lang.Long">
SELECT
count(1)
FROM t_gz_area a
<where>
1=1
<include refid="tGzArea_where"/>
</where>
</select>
<!-- 导出 -->
<select id="getTGzAreaExport" resultMap="tGzAreaMap">
SELECT
a.AREA_CODE,
a.AREA_NAME,
a.GZ_CODE,
a.GZ_NAME
FROM t_gz_area a
<where>
1=1
<include refid="tGzArea_where"/>
</where>
ORDER BY a.create_time DESC
<if test="tGzArea != null">
<if test="tGzArea.limitStart != null">
limit #{tGzArea.limitStart},#{tGzArea.limitEnd}
</if>
</if>
</select>
<!-- 验重复 -->
<select id="getTGzAreaCountByCode" resultType="java.lang.Long">
SELECT
count(1)
FROM t_gz_area a
where a.AREA_CODE = #{areaCode}
<if test="id != null and id.trim() != ''">
AND a.ID != #{id}
</if>
</select>
</mapper>
......@@ -993,7 +993,7 @@ public class SocialFriendConfig {
//tszdxx.put("zzyy", vo.getZzyy());
// 是否同步办理用工备案
tszdxx.put("sftbblygba", "是");
tszdxx.put("bajcyy", vo.getBajcejyy());
tszdxx.put("bajcyy", vo.getZzyy());
// 社保个人身份材料 无
// tszdxx.put("shjycl", )
// 医保个人身份材料 无
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment