From de91c84954157bb9f8b6d938cbe0b1b51fb6e65d Mon Sep 17 00:00:00 2001
From: CeDo <cedoogle@gmail.com>
Date: 星期五, 07 五月 2021 15:23:57 +0800
Subject: [PATCH] bugfixed:新增便民服务商家 报错

---
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbMemberRoleDAO.java |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 58 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbMemberRoleDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbMemberRoleDAO.java
new file mode 100644
index 0000000..ba251e8
--- /dev/null
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/dao/ComPbMemberRoleDAO.java
@@ -0,0 +1,58 @@
+package com.panzhihua.service_dangjian.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.panzhihua.common.model.vos.partybuilding.PartyBuildingMemberVO;
+import com.panzhihua.common.model.vos.partybuilding.PartyCommitteeVO;
+import com.panzhihua.common.model.vos.user.SysUserVO;
+import com.panzhihua.service_dangjian.model.dos.ComPbMemberDO;
+import com.panzhihua.service_dangjian.model.dos.ComPbMemberRoleDO;
+import com.panzhihua.service_dangjian.model.dos.ComPbServiceTeamDO;
+
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+/**
+ * @program: springcloud_k8s_panzhihuazhihuishequ
+ * @description: 党委
+ * @author: huang.hongfa weixin hhf9596 qq 959656820
+ * @create: 2020-12-01 14:36
+ **/
+@Mapper
+public interface ComPbMemberRoleDAO extends BaseMapper<ComPbMemberRoleDO> {
+    //    @Select("<script> " +
+//            " <where>" +
+//            "<if test='nameCn != null and nameCn.trim() != &quot;&quot;'>" +
+//            " </if> " +
+//            "<if test='nameCn != null and nameCn.trim() != &quot;&quot;'>" +
+//            " </if> " +
+//            "<if test='nameCn != null and nameCn.trim() != &quot;&quot;'>" +
+//            " </if> " +
+//            " </where>" +
+//            "</script>")
+    @Select("<script> " +
+            "SELECT\n" +
+            "*,\n" +            
+            "TIMESTAMPDIFF(\n" +
+            "YEAR,\n" +
+            "t.birth_time,\n" +
+            "DATE_FORMAT( NOW(), '%Y-%m-%d' )) age\n" +            
+            "FROM\n" +
+            "com_pb_member_role t\n" +
+            "WHERE\n" +
+            "t.community_id = #{partyCommitteeVO.communityId} \n" +
+            "</script>")
+    IPage<PartyCommitteeVO> pagePartyOrganization(Page page, @Param("partyCommitteeVO") PartyCommitteeVO partyCommitteeVO);
+    
+    @Select("select * from sys_user where phone=#{phone} and type=1")
+    SysUserVO getSysUserByPhone(@Param("phone")String phone);
+    
+    @Update("update sys_user u set u.phone=#{newphone} where u.phone=#{oldphone}")
+    void updateUserPhone(@Param("newphone")String newphone,@Param("oldphone")String oldphone);
+    
+    @Select("select * from com_pb_member_role where id=#{id}")
+    PartyCommitteeVO selectPartyCommitteeById(@Param("id")Long id);
+}

--
Gitblit v1.7.1