ソースを参照

修改代码结构

gushoubang 1 ヶ月 前
コミット
7c918e7127

+ 2 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/YdbpData.java

@@ -20,7 +20,8 @@ public class YdbpData {
     private String bpDate;
     private String pfwh;
     private String pfDate;
-    
+    private String creatorId;
+
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private java.util.Date createdAt;
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

+ 1 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/GyjsydjfwscdjImpl.java → siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/Gyjsydjfwscdjmpl.java

@@ -18,7 +18,7 @@ import static com.siwei.apply.common.Common.UserId;
  * 国有建设用地使用权及房屋所有权首次登记 服务实现类
  */
 @Service
-public class GyjsydjfwscdjImpl implements GyjsydjfwscdjService {
+public class Gyjsydjfwscdjmpl implements GyjsydjfwscdjService {
     @Autowired
     private GyjsydjfwscdjMapper gyjsydjfwscdjMapper;
     @Autowired

+ 1 - 2
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/JsgcghxkServiceImpl.java → siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/JsgcghxkImpl.java

@@ -12,7 +12,6 @@ import com.siwei.common.core.utils.bean.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
-import java.util.ArrayList;
 import java.util.List;
 
 import static com.siwei.apply.common.Common.UserId;
@@ -21,7 +20,7 @@ import static com.siwei.apply.common.Common.UserId;
  * 建设工程规划许可 服务实现类
  */
 @Service
-public class JsgcghxkServiceImpl implements JsgcghxkService {
+public class JsgcghxkImpl implements JsgcghxkService {
     @Autowired
     private JsgcghxkMapper jsgcghxkMapper;
     @Autowired

+ 2 - 2
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/NodeAttachmentServiceImpl.java → siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/NodeAttachmentImpl.java

@@ -17,9 +17,9 @@ import java.util.*;
  * 记录流程对应的附件材料 服务实现类
  */
 @Service
-public class NodeAttachmentServiceImpl implements NodeAttachmentService {
+public class NodeAttachmentImpl implements NodeAttachmentService {
     
-    private static final Logger logger = LoggerFactory.getLogger(NodeAttachmentServiceImpl.class);
+    private static final Logger logger = LoggerFactory.getLogger(NodeAttachmentImpl.class);
     
     @Autowired
     private NodeAttachmentMapper nodeAttachmentMapper;

+ 2 - 2
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/NodeLandServiceImpl.java → siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/NodeLandImpl.java

@@ -14,9 +14,9 @@ import java.util.*;
  * 节点地块关联 服务实现类
  */
 @Service
-public class NodeLandServiceImpl implements NodeLandService {
+public class NodeLandImpl implements NodeLandService {
     
-    private static final Logger logger = LoggerFactory.getLogger(NodeLandServiceImpl.class);
+    private static final Logger logger = LoggerFactory.getLogger(NodeLandImpl.class);
     
     @Autowired
     private NodeLandMapper nodeLandMapper;

+ 4 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/YdbpDataServiceImpl.java → siwei-modules/siwei-apply/src/main/java/com/siwei/apply/service/impl/YdbpDataImpl.java

@@ -14,8 +14,10 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
+import static com.siwei.apply.common.Common.UserId;
+
 @Service
-public class YdbpDataServiceImpl implements YdbpDataService {
+public class YdbpDataImpl implements YdbpDataService {
     @Autowired
     private YdbpDataMapper ydbpDataMapper;
 
@@ -25,6 +27,7 @@ public class YdbpDataServiceImpl implements YdbpDataService {
         BeanUtils.copyProperties(ydbpDataVo, entity);
         // 生成主键ID
         entity.generateId();
+        entity.setCreatorId(UserId);
         ydbpDataMapper.add(entity);
         return entity.getId();
     }

+ 5 - 4
siwei-modules/siwei-apply/src/main/resources/mapper/YdbpDataMapper.xml

@@ -14,23 +14,24 @@
         <result property="bpDate" column="bp_date"/>
         <result property="pfwh" column="pfwh"/>
         <result property="pfDate" column="pf_date"/>
+        <result property="creatorId" column="creator_id"/>
         <result property="createdAt" column="created_at"/>
         <result property="updatedAt" column="updated_at"/>
     </resultMap>
     <insert id="add" parameterType="com.siwei.apply.domain.YdbpData">
         INSERT INTO t_ydbp_data (
-            id, name, yd_area, yd_unit, zs_area, zs_unit, has_zz, bp_date, pfwh, pf_date, created_at, updated_at
+            id, name, yd_area, yd_unit, zs_area, zs_unit, has_zz, bp_date, pfwh, pf_date, creator_id, created_at, updated_at
         ) VALUES (
-            #{id}, #{name}, #{ydArea}, #{ydUnit}, #{zsArea}, #{zsUnit}, #{hasZz}, #{bpDate}, #{pfwh}, #{pfDate}, now(), now()
+            #{id}, #{name}, #{ydArea}, #{ydUnit}, #{zsArea}, #{zsUnit}, #{hasZz}, #{bpDate}, #{pfwh}, #{pfDate}, #{creatorId}, now(), now()
         )
     </insert>
     <select id="getById" parameterType="string" resultMap="YdbpDataResultMap">
-        SELECT id, name, yd_area, yd_unit, zs_area, zs_unit, has_zz, bp_date, pfwh, pf_date, created_at, updated_at
+        SELECT id, name, yd_area, yd_unit, zs_area, zs_unit, has_zz, bp_date, pfwh, pf_date, creator_id, created_at, updated_at
         FROM t_ydbp_data
         WHERE id = #{id}
     </select>
     <select id="selectPage" resultMap="YdbpDataResultMap">
-        SELECT id, name, yd_area, yd_unit, zs_area, zs_unit, has_zz, bp_date, pfwh, pf_date, created_at, updated_at
+        SELECT id, name, yd_area, yd_unit, zs_area, zs_unit, has_zz, bp_date, pfwh, pf_date, creator_id, created_at, updated_at
         FROM t_ydbp_data
         ORDER BY created_at DESC
         LIMIT #{pageSize} OFFSET #{offset}