From b4b54fa1e15ef33208942d8f16959f545d52015c Mon Sep 17 00:00:00 2001 From: dxfeng Date: Wed, 15 Jun 2022 11:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=BB=84=E7=BB=B4=E6=8A=A4=20?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extend/param/ExtendTitleSaveParam.java | 24 ++++++ .../mapper/extend/ExtendTitleMapper.java | 30 +++++++ .../mapper/extend/ExtendTitleMapper.xml | 83 +++++++++++++++++- .../service/FieldDefinedService.java | 17 ++++ .../service/impl/ExtServiceImpl.java | 3 + .../service/impl/FieldDefinedServiceImpl.java | 85 ++++++++++++++++--- .../web/FieldDefinedController.java | 47 +++++++++- .../wrapper/FieldDefinedWrapper.java | 21 +++++ 8 files changed, 290 insertions(+), 20 deletions(-) create mode 100644 src/com/engine/organization/entity/extend/param/ExtendTitleSaveParam.java diff --git a/src/com/engine/organization/entity/extend/param/ExtendTitleSaveParam.java b/src/com/engine/organization/entity/extend/param/ExtendTitleSaveParam.java new file mode 100644 index 00000000..802a425d --- /dev/null +++ b/src/com/engine/organization/entity/extend/param/ExtendTitleSaveParam.java @@ -0,0 +1,24 @@ +package com.engine.organization.entity.extend.param; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * @author:dxfeng + * @createTime: 2022/06/15 + * @version: 1.0 + */ +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class ExtendTitleSaveParam { + private String data; + private Long groupType; + + private String groupName; + private String isShow; + +} diff --git a/src/com/engine/organization/mapper/extend/ExtendTitleMapper.java b/src/com/engine/organization/mapper/extend/ExtendTitleMapper.java index c825c5ad..2408ad34 100644 --- a/src/com/engine/organization/mapper/extend/ExtendTitleMapper.java +++ b/src/com/engine/organization/mapper/extend/ExtendTitleMapper.java @@ -20,5 +20,35 @@ public interface ExtendTitleMapper { */ List getTitlesByGroupID(@Param("groupId") Long groupId); + /** + * 根据ID查询数据 + * + * @param ids + * @return + */ List getTitlesByIds(@Param("ids") Collection ids); + + /** + * 新增 + * + * @param extendTitle + * @return + */ + int insertIgnoreNull(ExtendTitlePO extendTitle); + + /** + * 更新 + * + * @param extendTitle + * @return + */ + int updateExtendTitle(ExtendTitlePO extendTitle); + + /** + * 根据ID批量删除数据 + * + * @param ids + * @return + */ + int deleteExtendTitleByIds(@Param("ids") Collection ids); } diff --git a/src/com/engine/organization/mapper/extend/ExtendTitleMapper.xml b/src/com/engine/organization/mapper/extend/ExtendTitleMapper.xml index fff58b22..3b01efe0 100644 --- a/src/com/engine/organization/mapper/extend/ExtendTitleMapper.xml +++ b/src/com/engine/organization/mapper/extend/ExtendTitleMapper.xml @@ -20,13 +20,92 @@ id , t.group_id , t.title - , show_order - , is_show + , t.show_order + , t.is_show , t.creator , t.delete_type , t.create_time , t.update_time + + INSERT INTO jcl_field_extendtitle + + + creator, + + + delete_type, + + + create_time, + + + update_time, + + + + group_id, + + + title, + + + show_order, + + + is_show, + + + + + #{creator}, + + + #{deleteType}, + + + #{createTime}, + + + #{updateTime}, + + + #{groupId}, + + + #{title}, + + + + #{showOrder}, + + + #{isShow}, + + + + + update jcl_field_extendtitle + + update_time=#{updateTime}, + group_id=#{groupId}, + title=#{title}, + show_order=#{showOrder}, + is_show=#{isShow}, + + WHERE id = #{id} AND delete_type = 0 + + + UPDATE jcl_field_extendtitle + SET delete_type = 1 + WHERE delete_type = 0 + AND id IN + + #{id} + +