南网,epc和国网一样,只变类型修改

This commit is contained in:
fl 2025-06-20 13:16:04 +08:00
parent aee23c7b4e
commit 7c0b619157
4 changed files with 18 additions and 6 deletions

View File

@ -128,7 +128,7 @@ public class StateGridController extends BaseController {
@PostMapping("/downloadStateGridTemp") @PostMapping("/downloadStateGridTemp")
public void downloadStateGridTemp(HttpServletRequest request, HttpServletResponse response, @RequestBody TbGwModelDto o) { public void downloadStateGridTemp(HttpServletRequest request, HttpServletResponse response, @RequestBody TbGwModelDto o) {
try { try {
service.downloadStateGridTemp(request, response, o); service.downloadStateGridTemp(request, response, o);
}catch (Exception e){ }catch (Exception e){
log.info("国网模版下载失败{}",e.getMessage()); log.info("国网模版下载失败{}",e.getMessage());
} }

View File

@ -24,6 +24,12 @@ public class TbGwModelDto implements Serializable {
* 标书名称 * 标书名称
*/ */
private String name; private String name;
/**
* 类型 1.国网 2.EPC 3.南网
*/
private String type;
/** /**
* 创建时间 * 创建时间
*/ */

View File

@ -24,6 +24,12 @@ public class TbGwModelVo implements Serializable {
* 标书名称 * 标书名称
*/ */
private String name; private String name;
/**
* 类型 1.国网 2.EPC 3.南网
*/
private String type;
/** /**
* 创建时间 * 创建时间
*/ */

View File

@ -4,10 +4,8 @@
<mapper namespace="com.bonus.tool.mapper.StateGridMapper"> <mapper namespace="com.bonus.tool.mapper.StateGridMapper">
<insert id="addStateGridTemp" useGeneratedKeys="true" keyColumn="id" keyProperty="id"> <insert id="addStateGridTemp" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
insert into tb_gw_model(name, insert into tb_gw_model(name,create_user,type)
create_user) values (#{name},#{createUser},#{type})
values (#{name},
#{createUser})
</insert> </insert>
<insert id="insertComPerf"> <insert id="insertComPerf">
insert into tb_gw_perf_rel( insert into tb_gw_perf_rel(
@ -145,7 +143,9 @@
create_time, create_time,
update_time update_time
from from
tb_gw_model where del_flag =0 tb_gw_model
where del_flag = 0
and type = #{type}
<if test="name != '' and name != null"> <if test="name != '' and name != null">
and locate(#{name},name) and locate(#{name},name)
</if> </if>