Преглед на файлове

<更新基于1.0.0分支的代码>

weizhengliang преди 4 години
родител
ревизия
f3889cf405
променени са 52 файла, в които са добавени 6427 реда и са изтрити 10 реда
  1. 12 8
      build.gradle
  2. 31 0
      doc/readme.md
  3. 1 0
      hello/src/main/AndroidManifest.xml
  4. 112 0
      hello/src/main/java/com/wdkl/ncs/android/component/hello/activity/HelloListActivity.kt
  5. 45 0
      hello/src/main/java/com/wdkl/ncs/android/component/hello/adapter/HelloItemAdapter.kt
  6. 2 0
      hello/src/main/java/com/wdkl/ncs/android/component/hello/di/HelloComponent.kt
  7. 30 0
      hello/src/main/res/layout/hello_list_act_lay.xml
  8. 30 0
      hello/src/main/res/layout/hello_list_item_lay.xml
  9. 3 2
      home/src/main/code/com/wdkl/ncs/android/component/home/fragment/HomeFragment.kt
  10. 3 0
      middleware/build.gradle
  11. 2 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/di/PresenterComponent.kt
  12. 15 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/logic/contract/hello/HelloListActivityContract.kt
  13. 58 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/logic/presenter/hello/HelloListActivityPresenter.kt
  14. 61 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/JavaShopItem.java
  15. 21 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/Column.java
  16. 17 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/Id.java
  17. 17 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/NotDbField.java
  18. 17 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/PrimaryKeyField.java
  19. 21 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/Table.java
  20. 97 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/AppVersionDO.java
  21. 172 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/BoardItemDO.java
  22. 127 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/BoardTitleDO.java
  23. 187 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/BroadcastDO.java
  24. 112 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CallingHistoryDO.java
  25. 216 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/ClerkDO.java
  26. 291 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CustomerDO.java
  27. 157 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CustomerExaminationConfigDO.java
  28. 172 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CustomerFeeConfigDO.java
  29. 217 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CustomerMappingDO.java
  30. 423 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/DeviceDO.java
  31. 127 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/ErrorLogDO.java
  32. 202 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/FrameDO.java
  33. 97 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/FrameGroupDO.java
  34. 379 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/MemberDO.java
  35. 172 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/MenuDO.java
  36. 142 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/NurseConfigDO.java
  37. 232 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/NurseConfigOptionDO.java
  38. 442 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/PartSettingDO.java
  39. 172 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/RemarkDO.java
  40. 126 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/RoleDO.java
  41. 141 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/ShopDO.java
  42. 172 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/SystemConfigDO.java
  43. 172 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/TaskDO.java
  44. 112 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/VitalSignsGroupDO.java
  45. 247 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/VitalSignsLogDO.java
  46. 232 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/VitalSignsParamsDO.java
  47. 202 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/VitalSignsSettingDO.java
  48. 52 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/FrameBedVO.java
  49. 47 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/FramePartVO.java
  50. 63 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/FrameRelationshipVO.java
  51. 46 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/FrameRoomVO.java
  52. 181 0
      middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/MemberVO.java

+ 12 - 8
build.gradle

@@ -62,9 +62,10 @@ buildscript {
             /**
              * 依赖仓储
              */
-            jcenter()
-            mavenCentral()
-            google()
+            maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+            maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
+            maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
+            maven { url 'https://jitpack.io' }
         }
         /**
          * Gradle插件
@@ -97,11 +98,14 @@ buildscript {
  */
 allprojects {
     repositories {
-        google()
-        jcenter()
-        mavenCentral()
-        maven { url 'https://dl.bintray.com/geamtear/maven' }
-        maven { url "https://jitpack.io" }
+        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
+        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
+        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
+        maven { url 'https://jitpack.io' }
+    }
+    tasks.withType(Javadoc) { // 新增
+        options.addStringOption('Xdoclint:none', '-quiet')
+        options.addStringOption('encoding', 'UTF-8')
     }
 }
 

+ 31 - 0
doc/readme.md

@@ -0,0 +1,31 @@
+## 增加hello模块
+### 清理AndroidManifest.xml
+### 清理res
+#### 仅留下layout和values
+增加完成layout后,需要Build->编译模块,以自动生成databinding
+### 增加三个包activity,di,launch。如果有fragment应当增加fragment包
+#### launch为模块启动入口
+#### di中注入这个模块的Activity和Fragment
+
+## 操作middleware模块
+### api包,增加HelloApi类,用于HTTP通讯
+在ApiManager中增加项
+### model包,如有必要在此包增加对象
+### logic包
+#### 两个大包,contract和presenter,分别建立对应hello模块的hello包
+一个是接口,一个是实现
+这里主要实现Presenter中的loadData
+HelloActivityPresenter重要
+在此类中使用api,实现Contract
+定义observer,其中覆写onNextWithConnection方法,实现json到对象的转换
+### di包,PresenterComponent类增加注入
+
+
+### 列表操作
+activity中增加HelloListActivity.kt
+res.layout中增加hello_list_act_lay.xml和hello_list_item_lay.xml
+HelloComponent中增加inject
+增加adapter包
+在AndroidManifest.xml中增加这个Activity
+middleware.logic.contract.hello增加HelloListActivityContract
+middleware.logic.presenter.hello增加HelloListActivityPresenter

+ 1 - 0
hello/src/main/AndroidManifest.xml

@@ -7,6 +7,7 @@
         android:supportsRtl="true">
         <activity android:name=".activity.HelloActivity">
         </activity>
+        <activity android:name=".activity.HelloListActivity"></activity>
     </application>
 
 </manifest>

+ 112 - 0
hello/src/main/java/com/wdkl/ncs/android/component/hello/activity/HelloListActivity.kt

@@ -0,0 +1,112 @@
+package com.wdkl.ncs.android.component.hello.activity
+
+import android.util.Log
+import com.alibaba.android.vlayout.DelegateAdapter
+import com.alibaba.android.vlayout.VirtualLayoutManager
+import com.enation.javashop.android.jrouter.external.annotation.Autowired
+import com.enation.javashop.android.jrouter.external.annotation.Router
+import com.enation.javashop.net.engine.model.NetState
+import com.scwang.smartrefresh.layout.footer.ClassicsFooter
+import com.wdkl.ncs.android.component.hello.R
+import com.wdkl.ncs.android.component.hello.adapter.HelloItemAdapter
+import com.wdkl.ncs.android.component.hello.databinding.HelloListActLayBinding
+import com.wdkl.ncs.android.component.hello.launch.HelloLaunch
+import com.wdkl.ncs.android.lib.base.BaseActivity
+import com.wdkl.ncs.android.lib.utils.pop
+import com.wdkl.ncs.android.lib.utils.push
+import com.wdkl.ncs.android.lib.utils.showMessage
+import com.wdkl.ncs.android.middleware.logic.contract.hello.HelloListActivityContract
+import com.wdkl.ncs.android.middleware.logic.presenter.hello.HelloListActivityPresenter
+import com.wdkl.ncs.android.middleware.model.JavaShopItem
+import com.wdkl.ncs.android.middleware.model.ShopItem
+import kotlinx.android.synthetic.main.hello_list_act_lay.*
+
+@Router(path = "/hello/list")
+class HelloListActivity : BaseActivity<HelloListActivityPresenter, HelloListActLayBinding>(), HelloListActivityContract.View {
+    override fun bindDagger() {
+        HelloLaunch.component.inject(this)
+    }
+
+    override fun onError(message: String, type: Int) {
+        dismissDialog()
+        showMessage(message)
+    }
+
+    override fun complete(message: String, type: Int) {
+        dismissDialog()
+        showMessage(message)
+    }
+
+    override fun start() {
+        showDialog()
+    }
+
+    override fun networkMonitor(state: NetState) {
+
+    }
+
+    override fun destory() {
+
+    }
+
+    private var page :Int = 1
+    private val adapter = HelloItemAdapter(ArrayList())
+
+    //@Autowired(name= "keyword",required = true)
+    @JvmField var keyword: String = "8"
+
+    private lateinit var virtualLayoutManager: VirtualLayoutManager
+
+    private lateinit var delegateAdapter: DelegateAdapter
+
+    override fun getLayId(): Int {
+        return R.layout.hello_list_act_lay
+    }
+
+    override fun init() {
+        /**初始化LayoutMannager*/
+        virtualLayoutManager = VirtualLayoutManager(this.activity)
+
+        /**初始化适配器*/
+        delegateAdapter = DelegateAdapter(virtualLayoutManager)
+        delegateAdapter.addAdapter(adapter)
+        mViewBinding.refresh.setRefreshFooter(ClassicsFooter(activity))
+        /**配置到RecycleView*/
+        listView.layoutManager = virtualLayoutManager
+        listView.adapter = delegateAdapter
+        presenter.loadData(keyword,page)
+    }
+
+    override fun bindEvent() {
+        refresh.setOnLoadMoreListener {
+            page += 1
+            presenter.loadData(keyword,page)
+        }
+//        adapter.setOnItemClickListener { data, _ ->
+//            push("/shop/detail",{postcard ->
+//                postcard.withInt("shopId", data.shopId)
+//            })
+//        }
+    }
+
+    override fun render(data: ArrayList<JavaShopItem>) {
+        if (page == 1){
+            refresh.resetNoMoreData()
+            if (data.size >0){
+                adapter.data.clear()
+                adapter.data.addAll(data)
+                Log.i("abc1"," " + data.size);
+                adapter.notifyDataSetChanged()
+            }
+            refresh.finishLoadMore()
+        }else {
+            if (data.size > 0) {
+                adapter.data.addAll(data)
+                adapter.notifyDataSetChanged()
+                refresh.finishLoadMore()
+            }else{
+                refresh.finishLoadMoreWithNoMoreData()
+            }
+        }
+    }
+}

+ 45 - 0
hello/src/main/java/com/wdkl/ncs/android/component/hello/adapter/HelloItemAdapter.kt

@@ -0,0 +1,45 @@
+package com.wdkl.ncs.android.component.hello.adapter
+
+import android.util.Log
+import android.view.View
+import android.view.ViewGroup
+import com.alibaba.android.vlayout.LayoutHelper
+import com.alibaba.android.vlayout.layout.LinearLayoutHelper
+import com.wdkl.ncs.android.component.hello.R
+import com.wdkl.ncs.android.component.hello.databinding.HelloListItemLayBinding
+import com.wdkl.ncs.android.lib.adapter.BaseDelegateAdapter
+import com.wdkl.ncs.android.lib.utils.BaseRecyclerViewHolder
+import com.wdkl.ncs.android.middleware.model.JavaShopItem
+import com.wdkl.ncs.android.middleware.model.ShopItem
+import kotlinx.android.synthetic.main.hello_list_item_lay.view.*
+
+class HelloItemAdapter(val data:ArrayList<JavaShopItem>) : BaseDelegateAdapter<BaseRecyclerViewHolder<HelloListItemLayBinding>,JavaShopItem>(){
+    override fun dataProvider(): Any {
+        return data
+    }
+
+    override fun itemFilter(position: Int): Boolean {
+        return true
+    }
+
+    override fun getItemCount(): Int {
+        return data.size
+    }
+
+    override fun onCreateLayoutHelper(): LayoutHelper {
+        Log.i("abc",data.toString());
+        return LinearLayoutHelper(0,data.size)
+    }
+
+    override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): BaseRecyclerViewHolder<HelloListItemLayBinding> {
+        return BaseRecyclerViewHolder.build(parent, R.layout.hello_list_item_lay)
+    }
+
+    override fun onBindViewHolder(holder: BaseRecyclerViewHolder<HelloListItemLayBinding>?, position: Int) {
+        holder?.bind {
+            binding ->
+            val itemData = getItem(position)
+            binding.helloListItemTv.text = itemData.shopName
+        }
+    }
+}

+ 2 - 0
hello/src/main/java/com/wdkl/ncs/android/component/hello/di/HelloComponent.kt

@@ -1,10 +1,12 @@
 package com.wdkl.ncs.android.component.hello.di
 
 import com.wdkl.ncs.android.component.hello.activity.HelloActivity
+import com.wdkl.ncs.android.component.hello.activity.HelloListActivity
 import com.wdkl.ncs.android.middleware.di.ApplicationComponent
 import dagger.Component
 
 @Component(dependencies = arrayOf(ApplicationComponent::class))
 interface HelloComponent{
     fun inject(activity: HelloActivity)
+    fun inject(activity: HelloListActivity)
 }

+ 30 - 0
hello/src/main/res/layout/hello_list_act_lay.xml

@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layout>
+    <android.support.constraint.ConstraintLayout
+        xmlns:android="http://schemas.android.com/apk/res/android"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        xmlns:bind="http://schemas.android.com/apk/res-auto"
+        xmlns:app="http://schemas.android.com/apk/res-auto">
+
+        <TextView
+            android:layout_width="match_parent"
+            android:layout_height="20sp"
+            android:text="@string/app_name"/>
+
+        <com.scwang.smartrefresh.layout.SmartRefreshLayout
+            android:id="@+id/refresh"
+            android:layout_width="match_parent"
+            bind:srlEnableRefresh="true"
+            bind:srlEnableLoadMore="true"
+            android:layout_height="match_parent"
+            >
+            <android.support.v7.widget.RecyclerView
+                android:id="@+id/listView"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                ></android.support.v7.widget.RecyclerView>
+        </com.scwang.smartrefresh.layout.SmartRefreshLayout>
+
+    </android.support.constraint.ConstraintLayout>
+</layout>

+ 30 - 0
hello/src/main/res/layout/hello_list_item_lay.xml

@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layout>
+    <android.support.constraint.ConstraintLayout
+        xmlns:android="http://schemas.android.com/apk/res/android"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        xmlns:app="http://schemas.android.com/apk/res-auto">
+        <android.support.constraint.ConstraintLayout
+            android:layout_width="match_parent"
+            android:layout_height="0dp"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintDimensionRatio="h,5:1">
+            <TextView
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/app_name"/>
+            <TextView
+                android:id="@+id/hello_list_item_tv"
+                android:layout_width="match_parent"
+                android:layout_height="20sp"
+                app:layout_constraintBottom_toBottomOf="parent"
+                app:layout_constraintRight_toRightOf="parent"
+                android:textSize="15sp"
+                android:gravity="center_vertical"
+                android:textColor="@color/javashop_color_white"
+                android:background="#77000000"
+                />
+        </android.support.constraint.ConstraintLayout>
+    </android.support.constraint.ConstraintLayout>
+</layout>

+ 3 - 2
home/src/main/code/com/wdkl/ncs/android/component/home/fragment/HomeFragment.kt

@@ -221,7 +221,7 @@ class HomeFragment : BaseFragment<HomeFragmentPresenter,HomeFragLayBinding>(),Ho
     }
 
     override fun secKill() {
-        push("/promotion/seckill/main")
+        //push("/promotion/seckill/main")
     }
 
     override fun groupMall() {
@@ -229,7 +229,8 @@ class HomeFragment : BaseFragment<HomeFragmentPresenter,HomeFragLayBinding>(),Ho
     }
 
     override fun couponHall() {
-        push("/promotion/coupon/hall")
+        //push("/promotion/coupon/hall")
+        push("/hello/list")
     }
 
     override fun toShop(id: Int) {

+ 3 - 0
middleware/build.gradle

@@ -72,4 +72,7 @@ dependencies {
      *  constraint-layout布局依赖
      */
     compile 'com.android.support.constraint:constraint-layout:1.1.0-beta5'
+
+    compile 'com.fasterxml.jackson.core:jackson-databind:2.9.5'
+    compile 'io.swagger:swagger-annotations:1.5.14'
 }

+ 2 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/di/PresenterComponent.kt

@@ -2,6 +2,7 @@ package com.wdkl.ncs.android.middleware.di
 
 import com.wdkl.ncs.android.middleware.logic.presenter.extra.ScanPresenter
 import com.wdkl.ncs.android.middleware.logic.presenter.hello.HelloActivityPresenter
+import com.wdkl.ncs.android.middleware.logic.presenter.hello.HelloListActivityPresenter
 import com.wdkl.ncs.android.middleware.logic.presenter.home.CategoryFragmentPresenter
 import com.wdkl.ncs.android.middleware.logic.presenter.home.HomeActivityPresenter
 import com.wdkl.ncs.android.middleware.logic.presenter.home.HomeFragmentPresenter
@@ -48,4 +49,5 @@ interface PresenterComponent {
 
     fun inject(presenter: HelloActivityPresenter)
 
+    fun inject(presenter: HelloListActivityPresenter)
 }

+ 15 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/logic/contract/hello/HelloListActivityContract.kt

@@ -0,0 +1,15 @@
+package com.wdkl.ncs.android.middleware.logic.contract.hello
+
+import com.wdkl.ncs.android.lib.base.BaseContract
+import com.wdkl.ncs.android.middleware.model.ChildCategoryShell
+import com.wdkl.ncs.android.middleware.model.JavaShopItem
+import com.wdkl.ncs.android.middleware.model.ShopItem
+
+interface HelloListActivityContract{
+    interface View : BaseContract.BaseView{
+        fun render(data: ArrayList<JavaShopItem>)
+    }
+    interface Presenter : BaseContract.BasePresenter{
+        fun loadData(keyWord :String ,page : Int)
+    }
+}

+ 58 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/logic/presenter/hello/HelloListActivityPresenter.kt

@@ -0,0 +1,58 @@
+package com.wdkl.ncs.android.middleware.logic.presenter.hello
+
+import com.enation.javashop.net.engine.plugin.connection.ConnectionQuality
+import com.enation.javashop.net.engine.plugin.exception.ExceptionHandle
+import com.enation.javashop.net.engine.utils.ThreadFromUtils
+import com.google.gson.FieldNamingPolicy
+import com.google.gson.Gson
+import com.google.gson.GsonBuilder
+import com.wdkl.ncs.android.lib.base.RxPresenter
+import com.wdkl.ncs.android.lib.utils.*
+import com.wdkl.ncs.android.middleware.api.ShopApi
+import com.wdkl.ncs.android.middleware.di.MiddlewareDaggerComponent
+import com.wdkl.ncs.android.middleware.logic.contract.hello.HelloListActivityContract
+import com.wdkl.ncs.android.middleware.model.JavaShopItem
+import com.wdkl.ncs.android.middleware.model.ShopItem
+import io.reactivex.disposables.Disposable
+import javax.inject.Inject
+
+class HelloListActivityPresenter @Inject constructor(): RxPresenter<HelloListActivityContract.View>(),HelloListActivityContract.Presenter{
+    override fun bindDagger() {
+        MiddlewareDaggerComponent.component.inject(this)
+    }
+    @Inject
+    protected lateinit var shopApi: ShopApi
+
+    private val observer = object : ConnectionObserver<Any>(){
+        override fun onStartWithConnection() {
+            providerView().start()
+        }
+
+        override fun onNextWithConnection(result: Any, connectionQuality: ConnectionQuality) {
+            providerView().complete("")
+            providerView().render(result as ArrayList<JavaShopItem>)
+        }
+
+        override fun onErrorWithConnection(error: ExceptionHandle.ResponeThrowable, connectionQuality: ConnectionQuality) {
+            providerView().onError(error.customMessage)
+        }
+
+        override fun attachSubscribe(var1: Disposable) {
+            addDisposable(var1)
+        }
+    }
+
+    override fun loadData(keyWord: String, page: Int) {
+        shopApi.getShopList(page,10,keyWord)
+                .map {
+                    var shop = ArrayList<JavaShopItem>()
+                    var gson = GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create()
+                    it.toJsonObject().valueJsonArray("data").arrayObjects().forEach({ dic ->
+                        shop.add(gson.fromJson(dic.toString(),JavaShopItem::class.java))
+                    })
+                    return@map shop
+                }
+                .compose(ThreadFromUtils.defaultSchedulers())
+                .subscribe(observer)
+    }
+}

+ 61 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/JavaShopItem.java

@@ -0,0 +1,61 @@
+package com.wdkl.ncs.android.middleware.model;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+
+public class JavaShopItem implements Serializable {
+    private String shopName;
+    private Integer shopCollect;
+    private String shopLogo;
+    private Integer shopId;
+    private Integer collectId;
+    private ArrayList<GoodsItemViewModel> goodsList;
+
+    public String getShopName() {
+        return shopName;
+    }
+
+    public void setShopName(String shopName) {
+        this.shopName = shopName;
+    }
+
+    public Integer getShopCollect() {
+        return shopCollect;
+    }
+
+    public void setShopCollect(Integer shopCollect) {
+        this.shopCollect = shopCollect;
+    }
+
+    public String getShopLogo() {
+        return shopLogo;
+    }
+
+    public void setShopLogo(String shopLogo) {
+        this.shopLogo = shopLogo;
+    }
+
+    public Integer getShopId() {
+        return shopId;
+    }
+
+    public void setShopId(Integer shopId) {
+        this.shopId = shopId;
+    }
+
+    public Integer getCollectId() {
+        return collectId;
+    }
+
+    public void setCollectId(Integer collectId) {
+        this.collectId = collectId;
+    }
+
+    public ArrayList<GoodsItemViewModel> getGoodsList() {
+        return goodsList;
+    }
+
+    public void setGoodsList(ArrayList<GoodsItemViewModel> goodsList) {
+        this.goodsList = goodsList;
+    }
+}

+ 21 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/Column.java

@@ -0,0 +1,21 @@
+package com.wdkl.ncs.android.middleware.model.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 标识为数据库的字段
+ * @author Allen
+ */
+@Target(ElementType.FIELD) 
+@Retention(RetentionPolicy.RUNTIME) 
+public @interface Column {
+
+	String name() default "";
+
+	boolean allowNullUpdate() default  false;
+
+
+}

+ 17 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/Id.java

@@ -0,0 +1,17 @@
+package com.wdkl.ncs.android.middleware.model.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 标识为此表的主键ID
+ * @author Allen
+ */
+@Target(ElementType.FIELD)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface Id {
+
+    String name() default "";
+}

+ 17 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/NotDbField.java

@@ -0,0 +1,17 @@
+package com.wdkl.ncs.android.middleware.model.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 标识不是数据库读写的字段
+ * @author Allen
+ * 2010-1-22下午04:08:58
+ */
+@Retention(RetentionPolicy.RUNTIME) 
+@Target(ElementType.METHOD) 
+public @interface NotDbField {
+
+}

+ 17 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/PrimaryKeyField.java

@@ -0,0 +1,17 @@
+package com.wdkl.ncs.android.middleware.model.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 标识不是数据库读写的字段
+ * @author Allen
+ * 2010-1-22下午04:08:58
+ */
+@Retention(RetentionPolicy.RUNTIME) 
+@Target(ElementType.METHOD) 
+public @interface PrimaryKeyField {
+
+}

+ 21 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/annotation/Table.java

@@ -0,0 +1,21 @@
+package com.wdkl.ncs.android.middleware.model.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * 标识为数据库的表名
+ * @author Allen
+ */
+@Target(ElementType.TYPE) 
+@Retention(RetentionPolicy.RUNTIME) 
+public @interface Table {
+
+	/**
+	 * 数据库的表名
+	 * @return
+	 */
+	String name();
+}

+ 97 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/AppVersionDO.java

@@ -0,0 +1,97 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_app_version")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class AppVersionDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     * null
+     */
+    @Column(name = "version_no")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer versionNo;
+    /**
+     * null
+     */
+    @Column(name = "version_code")
+    @ApiModelProperty(value = "null", required = false)
+    private String versionCode;
+    /**
+     * null
+     */
+    @Column(name = "app_path")
+    @ApiModelProperty(value = "null", required = false)
+    private String appPath;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public Integer getVersionNo() {
+        return versionNo;
+    }
+
+    public void setVersionNo(Integer versionNo) {
+        this.versionNo = versionNo;
+    }
+
+
+    public String getVersionCode() {
+        return versionCode;
+    }
+
+    public void setVersionCode(String versionCode) {
+        this.versionCode = versionCode;
+    }
+
+
+    public String getAppPath() {
+        return appPath;
+    }
+
+    public void setAppPath(String appPath) {
+        this.appPath = appPath;
+    }
+
+}

+ 172 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/BoardItemDO.java

@@ -0,0 +1,172 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_board_item")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class BoardItemDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     * null
+     */
+    @Column(name = "his_part_keyval")
+    @ApiModelProperty(value = "null", required = false)
+    private String hisPartKeyval;
+    /**
+     * null
+     */
+    @Column(name = "his_keyval")
+    @ApiModelProperty(value = "null", required = false)
+    private String hisKeyval;
+    /**
+     * null
+     */
+    @Column(name = "area_sign")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer areaSign;
+    /**
+     * null
+     */
+    @Column(name = "area_label")
+    @ApiModelProperty(value = "null", required = false)
+    private String areaLabel;
+    /**
+     * null
+     */
+    @Column(name = "area_content")
+    @ApiModelProperty(value = "null", required = false)
+    private String areaContent;
+    /**
+     * null
+     */
+    @Column(name = "area_size")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer areaSize;
+    /**
+     * null
+     */
+    @Column(name = "area_label_style")
+    @ApiModelProperty(value = "null", required = false)
+    private String areaLabelStyle;
+    /**
+     * null
+     */
+    @Column(name = "area_content_style")
+    @ApiModelProperty(value = "null", required = false)
+    private String areaContentStyle;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public String getHisPartKeyval() {
+        return hisPartKeyval;
+    }
+
+    public void setHisPartKeyval(String hisPartKeyval) {
+        this.hisPartKeyval = hisPartKeyval;
+    }
+
+
+    public String getHisKeyval() {
+        return hisKeyval;
+    }
+
+    public void setHisKeyval(String hisKeyval) {
+        this.hisKeyval = hisKeyval;
+    }
+
+
+    public Integer getAreaSign() {
+        return areaSign;
+    }
+
+    public void setAreaSign(Integer areaSign) {
+        this.areaSign = areaSign;
+    }
+
+
+    public String getAreaLabel() {
+        return areaLabel;
+    }
+
+    public void setAreaLabel(String areaLabel) {
+        this.areaLabel = areaLabel;
+    }
+
+
+    public String getAreaContent() {
+        return areaContent;
+    }
+
+    public void setAreaContent(String areaContent) {
+        this.areaContent = areaContent;
+    }
+
+
+    public Integer getAreaSize() {
+        return areaSize;
+    }
+
+    public void setAreaSize(Integer areaSize) {
+        this.areaSize = areaSize;
+    }
+
+
+    public String getAreaLabelStyle() {
+        return areaLabelStyle;
+    }
+
+    public void setAreaLabelStyle(String areaLabelStyle) {
+        this.areaLabelStyle = areaLabelStyle;
+    }
+
+
+    public String getAreaContentStyle() {
+        return areaContentStyle;
+    }
+
+    public void setAreaContentStyle(String areaContentStyle) {
+        this.areaContentStyle = areaContentStyle;
+    }
+
+}

+ 127 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/BoardTitleDO.java

@@ -0,0 +1,127 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_board_title")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class BoardTitleDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     * null
+     */
+    @Column(name = "his_part_keyval")
+    @ApiModelProperty(value = "null", required = false)
+    private String hisPartKeyval;
+    /**
+     * null
+     */
+    @Column(name = "his_keyval")
+    @ApiModelProperty(value = "null", required = false)
+    private String hisKeyval;
+    /**
+     * null
+     */
+    @Column(name = "board_index")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer boardIndex;
+    /**
+     * null
+     */
+    @Column(name = "board_title")
+    @ApiModelProperty(value = "null", required = false)
+    private String boardTitle;
+    /**
+     * null
+     */
+    @Column(name = "board_col_qty")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer boardColQty;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public String getHisPartKeyval() {
+        return hisPartKeyval;
+    }
+
+    public void setHisPartKeyval(String hisPartKeyval) {
+        this.hisPartKeyval = hisPartKeyval;
+    }
+
+
+    public String getHisKeyval() {
+        return hisKeyval;
+    }
+
+    public void setHisKeyval(String hisKeyval) {
+        this.hisKeyval = hisKeyval;
+    }
+
+
+    public Integer getBoardIndex() {
+        return boardIndex;
+    }
+
+    public void setBoardIndex(Integer boardIndex) {
+        this.boardIndex = boardIndex;
+    }
+
+
+    public String getBoardTitle() {
+        return boardTitle;
+    }
+
+    public void setBoardTitle(String boardTitle) {
+        this.boardTitle = boardTitle;
+    }
+
+
+    public Integer getBoardColQty() {
+        return boardColQty;
+    }
+
+    public void setBoardColQty(Integer boardColQty) {
+        this.boardColQty = boardColQty;
+    }
+
+}

+ 187 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/BroadcastDO.java

@@ -0,0 +1,187 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_broadcast")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class BroadcastDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * 声音文件名称
+     */
+    @Column(name = "file_path")
+    @ApiModelProperty(value = "声音文件名称", required = false)
+    private String filePath;
+    /**
+     * 播放时间。08:00
+     */
+    @Column(name = "play_time")
+    @ApiModelProperty(value = "播放时间。08:00", required = false)
+    private String playTime;
+    /**
+     * 播放次数,为空时播放一次
+     */
+    @Column(name = "repeat_times")
+    @ApiModelProperty(value = "播放次数,为空时播放一次", required = false)
+    private Integer repeatTimes;
+    /**
+     * 播放时间,1,2,3,4,5,6,7 对应周一至周日,逗号隔开
+     */
+    @Column(name = "repeat_day")
+    @ApiModelProperty(value = "播放时间,1,2,3,4,5,6,7 对应周一至周日,逗号隔开", required = false)
+    private String repeatDay;
+    /**
+     * 是否启用。空和0时为启用,1时为弃用
+     */
+    @Column(name = "status")
+    @ApiModelProperty(value = "是否启用。空和0时为启用,1时为弃用", required = false)
+    private Boolean status;
+    /**
+     * 播放组ID,可为空,为空时全体播放
+     */
+    @Column(name = "group_id")
+    @ApiModelProperty(value = "播放组ID,可为空,为空时全体播放", required = false)
+    private Integer groupId;
+    /**
+     * 针对具体病床。在病床上的功能项
+     */
+    @Column(name = "frame_id")
+    @ApiModelProperty(value = "针对具体病床。在病床上的功能项", required = false)
+    private Integer frameId;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public String getFilePath() {
+        return filePath;
+    }
+
+    public void setFilePath(String filePath) {
+        this.filePath = filePath;
+    }
+
+
+    public String getPlayTime() {
+        return playTime;
+    }
+
+    public void setPlayTime(String playTime) {
+        this.playTime = playTime;
+    }
+
+
+    public Integer getRepeatTimes() {
+        return repeatTimes;
+    }
+
+    public void setRepeatTimes(Integer repeatTimes) {
+        this.repeatTimes = repeatTimes;
+    }
+
+
+    public String getRepeatDay() {
+        return repeatDay;
+    }
+
+    public void setRepeatDay(String repeatDay) {
+        this.repeatDay = repeatDay;
+    }
+
+
+    public Boolean getStatus() {
+        return status;
+    }
+
+    public void setStatus(Boolean status) {
+        this.status = status;
+    }
+
+
+    public Integer getGroupId() {
+        return groupId;
+    }
+
+    public void setGroupId(Integer groupId) {
+        this.groupId = groupId;
+    }
+
+
+    public Integer getFrameId() {
+        return frameId;
+    }
+
+    public void setFrameId(Integer frameId) {
+        this.frameId = frameId;
+    }
+
+}

+ 112 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CallingHistoryDO.java

@@ -0,0 +1,112 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_calling_history")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class CallingHistoryDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     * 呼叫类型。1,病房普通呼叫;2,门口机呼叫;3,卫生间紧急呼叫;4,请求增援。
+     */
+    @Column(name = "calling_type")
+    @ApiModelProperty(value = "呼叫类型。1,病房普通呼叫;2,门口机呼叫;3,卫生间紧急呼叫;4,请求增援。", required = false)
+    private Boolean callingType;
+    /**
+     * 呼叫原始显示内容
+     */
+    @Column(name = "content")
+    @ApiModelProperty(value = "呼叫原始显示内容", required = false)
+    private String content;
+    /**
+     * 呼叫原始报文
+     */
+    @Column(name = "calling_text")
+    @ApiModelProperty(value = "呼叫原始报文", required = false)
+    private String callingText;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public Boolean getCallingType() {
+        return callingType;
+    }
+
+    public void setCallingType(Boolean callingType) {
+        this.callingType = callingType;
+    }
+
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+
+    public String getCallingText() {
+        return callingText;
+    }
+
+    public void setCallingText(String callingText) {
+        this.callingText = callingText;
+    }
+
+}

+ 216 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/ClerkDO.java

@@ -0,0 +1,216 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_clerk")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class ClerkDO implements Serializable {
+
+    /**
+     * 人员id
+     */
+    @Column(name = "clerk_id")
+    @ApiModelProperty(value = "人员id", required = false)
+    private Integer clerkId;
+    /**
+     * 会员id
+     */
+    @Column(name = "member_id")
+    @ApiModelProperty(value = "会员id", required = false)
+    private Integer memberId;
+    /**
+     * 人员名称
+     */
+    @Column(name = "clerk_name")
+    @ApiModelProperty(value = "人员名称", required = false)
+    private String clerkName;
+    /**
+     * 是否为超级管理员,1为超级管理员 0为其他管理员
+     */
+    @Column(name = "founder")
+    @ApiModelProperty(value = "是否为超级管理员,1为超级管理员 0为其他管理员", required = false)
+    private Integer founder;
+    /**
+     * 权限id,可以确定为医生、护士、护工,主任医生、护士长
+     */
+    @Column(name = "role_id")
+    @ApiModelProperty(value = "权限id,可以确定为医生、护士、护工,主任医生、护士长", required = false)
+    private Integer roleId;
+    /**
+     * 店员状态,0为禁用,1为正常
+     */
+    @Column(name = "user_state")
+    @ApiModelProperty(value = "店员状态,0为禁用,1为正常", required = false)
+    private Integer userState;
+    /**
+     * 创建日期
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "创建日期", required = false)
+    private Long createTime;
+    /**
+     * 科室id
+     */
+    @Column(name = "shop_id")
+    @ApiModelProperty(value = "科室id", required = false)
+    private Integer shopId;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * null
+     */
+    @Column(name = "sync_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long syncTime;
+    /**
+     * null
+     */
+    @Column(name = "his_keyval")
+    @ApiModelProperty(value = "null", required = false)
+    private String hisKeyval;
+    /**
+     * null
+     */
+    @Column(name = "his_part_keyval")
+    @ApiModelProperty(value = "null", required = false)
+    private String hisPartKeyval;
+
+
+    @PrimaryKeyField
+    public Integer getClerkId() {
+        return clerkId;
+    }
+
+    public void setClerkId(Integer clerkId) {
+        this.clerkId = clerkId;
+    }
+
+
+    public Integer getMemberId() {
+        return memberId;
+    }
+
+    public void setMemberId(Integer memberId) {
+        this.memberId = memberId;
+    }
+
+
+    public String getClerkName() {
+        return clerkName;
+    }
+
+    public void setClerkName(String clerkName) {
+        this.clerkName = clerkName;
+    }
+
+
+    public Integer getFounder() {
+        return founder;
+    }
+
+    public void setFounder(Integer founder) {
+        this.founder = founder;
+    }
+
+
+    public Integer getRoleId() {
+        return roleId;
+    }
+
+    public void setRoleId(Integer roleId) {
+        this.roleId = roleId;
+    }
+
+
+    public Integer getUserState() {
+        return userState;
+    }
+
+    public void setUserState(Integer userState) {
+        this.userState = userState;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Integer getShopId() {
+        return shopId;
+    }
+
+    public void setShopId(Integer shopId) {
+        this.shopId = shopId;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public Long getSyncTime() {
+        return syncTime;
+    }
+
+    public void setSyncTime(Long syncTime) {
+        this.syncTime = syncTime;
+    }
+
+
+    public String getHisKeyval() {
+        return hisKeyval;
+    }
+
+    public void setHisKeyval(String hisKeyval) {
+        this.hisKeyval = hisKeyval;
+    }
+
+
+    public String getHisPartKeyval() {
+        return hisPartKeyval;
+    }
+
+    public void setHisPartKeyval(String hisPartKeyval) {
+        this.hisPartKeyval = hisPartKeyval;
+    }
+
+}

+ 291 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CustomerDO.java

@@ -0,0 +1,291 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_customer")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class CustomerDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     * null
+     */
+    @Column(name = "his_part_keyval")
+    @ApiModelProperty(value = "null", required = false)
+    private String hisPartKeyval;
+    /**
+     * null
+     */
+    @Column(name = "his_keyval")
+    @ApiModelProperty(value = "null", required = false)
+    private String hisKeyval;
+    /**
+     * 称呼
+     */
+    @Column(name = "named")
+    @ApiModelProperty(value = "称呼", required = false)
+    private String named;
+    /**
+     * 年龄
+     */
+    @Column(name = "age")
+    @ApiModelProperty(value = "年龄", required = false)
+    private Integer age;
+    /**
+     * 年龄单位。岁、月、天
+     */
+    @Column(name = "age_unit")
+    @ApiModelProperty(value = "年龄单位。岁、月、天", required = false)
+    private String ageUnit;
+    /**
+     * 身份证件类型。身份证、护照、军人证
+     */
+    @Column(name = "id_type")
+    @ApiModelProperty(value = "身份证件类型。身份证、护照、军人证", required = false)
+    private String idType;
+    /**
+     * 身份证号
+     */
+    @Column(name = "id_no")
+    @ApiModelProperty(value = "身份证号", required = false)
+    private String idNo;
+    /**
+     * 病人编号
+     */
+    @Column(name = "card_no")
+    @ApiModelProperty(value = "病人编号", required = false)
+    private String cardNo;
+    /**
+     * 状态。
+     */
+    @Column(name = "status")
+    @ApiModelProperty(value = "状态。", required = false)
+    private Boolean status;
+    /**
+     * 入院时间
+     */
+    @Column(name = "in_date")
+    @ApiModelProperty(value = "入院时间", required = false)
+    private Long inDate;
+    /**
+     * 出院时间
+     */
+    @Column(name = "out_date")
+    @ApiModelProperty(value = "出院时间", required = false)
+    private Long outDate;
+    /**
+     * 病情描述
+     */
+    @Column(name = "illness_desc")
+    @ApiModelProperty(value = "病情描述", required = false)
+    private String illnessDesc;
+    /**
+     * null
+     */
+    @Column(name = "member_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer memberId;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public String getHisPartKeyval() {
+        return hisPartKeyval;
+    }
+
+    public void setHisPartKeyval(String hisPartKeyval) {
+        this.hisPartKeyval = hisPartKeyval;
+    }
+
+
+    public String getHisKeyval() {
+        return hisKeyval;
+    }
+
+    public void setHisKeyval(String hisKeyval) {
+        this.hisKeyval = hisKeyval;
+    }
+
+
+    public String getNamed() {
+        return named;
+    }
+
+    public void setNamed(String named) {
+        this.named = named;
+    }
+
+
+    public Integer getAge() {
+        return age;
+    }
+
+    public void setAge(Integer age) {
+        this.age = age;
+    }
+
+
+    public String getAgeUnit() {
+        return ageUnit;
+    }
+
+    public void setAgeUnit(String ageUnit) {
+        this.ageUnit = ageUnit;
+    }
+
+
+    public String getIdType() {
+        return idType;
+    }
+
+    public void setIdType(String idType) {
+        this.idType = idType;
+    }
+
+
+    public String getIdNo() {
+        return idNo;
+    }
+
+    public void setIdNo(String idNo) {
+        this.idNo = idNo;
+    }
+
+
+    public String getCardNo() {
+        return cardNo;
+    }
+
+    public void setCardNo(String cardNo) {
+        this.cardNo = cardNo;
+    }
+
+
+    public Boolean getStatus() {
+        return status;
+    }
+
+    public void setStatus(Boolean status) {
+        this.status = status;
+    }
+
+
+    public Long getInDate() {
+        return inDate;
+    }
+
+    public void setInDate(Long inDate) {
+        this.inDate = inDate;
+    }
+
+
+    public Long getOutDate() {
+        return outDate;
+    }
+
+    public void setOutDate(Long outDate) {
+        this.outDate = outDate;
+    }
+
+
+    public String getIllnessDesc() {
+        return illnessDesc;
+    }
+
+    public void setIllnessDesc(String illnessDesc) {
+        this.illnessDesc = illnessDesc;
+    }
+
+
+    public Integer getMemberId() {
+        return memberId;
+    }
+
+    public void setMemberId(Integer memberId) {
+        this.memberId = memberId;
+    }
+}

+ 157 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CustomerExaminationConfigDO.java

@@ -0,0 +1,157 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_customer_examination_config")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class CustomerExaminationConfigDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * 体检项组名
+     */
+    @Column(name = "group_name")
+    @ApiModelProperty(value = "体检项组名", required = false)
+    private String groupName;
+    /**
+     * 体检编码
+     */
+    @Column(name = "key_code")
+    @ApiModelProperty(value = "体检编码", required = false)
+    private String keyCode;
+    /**
+     * 体检名称
+     */
+    @Column(name = "key_name")
+    @ApiModelProperty(value = "体检名称", required = false)
+    private String keyName;
+    /**
+     * 描述
+     */
+    @Column(name = "description")
+    @ApiModelProperty(value = "描述", required = false)
+    private String description;
+    /**
+     * 参数类型
+     */
+    @Column(name = "key_type")
+    @ApiModelProperty(value = "参数类型", required = false)
+    private String keyType;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public String getGroupName() {
+        return groupName;
+    }
+
+    public void setGroupName(String groupName) {
+        this.groupName = groupName;
+    }
+
+
+    public String getKeyCode() {
+        return keyCode;
+    }
+
+    public void setKeyCode(String keyCode) {
+        this.keyCode = keyCode;
+    }
+
+
+    public String getKeyName() {
+        return keyName;
+    }
+
+    public void setKeyName(String keyName) {
+        this.keyName = keyName;
+    }
+
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+
+    public String getKeyType() {
+        return keyType;
+    }
+
+    public void setKeyType(String keyType) {
+        this.keyType = keyType;
+    }
+
+}

+ 172 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CustomerFeeConfigDO.java

@@ -0,0 +1,172 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_customer_fee_config")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class CustomerFeeConfigDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * 费用项组名
+     */
+    @Column(name = "group_name")
+    @ApiModelProperty(value = "费用项组名", required = false)
+    private String groupName;
+    /**
+     * 费用编码
+     */
+    @Column(name = "key_code")
+    @ApiModelProperty(value = "费用编码", required = false)
+    private String keyCode;
+    /**
+     * 费用名称
+     */
+    @Column(name = "key_name")
+    @ApiModelProperty(value = "费用名称", required = false)
+    private String keyName;
+    /**
+     * 描述
+     */
+    @Column(name = "description")
+    @ApiModelProperty(value = "描述", required = false)
+    private String description;
+    /**
+     * 参数类型
+     */
+    @Column(name = "key_type")
+    @ApiModelProperty(value = "参数类型", required = false)
+    private String keyType;
+    /**
+     * null
+     */
+    @Column(name = "index")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer index;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public String getGroupName() {
+        return groupName;
+    }
+
+    public void setGroupName(String groupName) {
+        this.groupName = groupName;
+    }
+
+
+    public String getKeyCode() {
+        return keyCode;
+    }
+
+    public void setKeyCode(String keyCode) {
+        this.keyCode = keyCode;
+    }
+
+
+    public String getKeyName() {
+        return keyName;
+    }
+
+    public void setKeyName(String keyName) {
+        this.keyName = keyName;
+    }
+
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+
+    public String getKeyType() {
+        return keyType;
+    }
+
+    public void setKeyType(String keyType) {
+        this.keyType = keyType;
+    }
+
+
+    public Integer getIndex() {
+        return index;
+    }
+
+    public void setIndex(Integer index) {
+        this.index = index;
+    }
+
+}

+ 217 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/CustomerMappingDO.java

@@ -0,0 +1,217 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_customer_mapping")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class CustomerMappingDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "sync_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long syncTime;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     * 病人ID
+     */
+    @Column(name = "customer_id")
+    @ApiModelProperty(value = "病人ID", required = false)
+    private Integer customerId;
+    /**
+     * 关联表主键值
+     */
+    @Column(name = "nurse_config_option_id")
+    @ApiModelProperty(value = "关联表主键值", required = false)
+    private Integer nurseConfigOptionId;
+    /**
+     * null
+     */
+    @Column(name = "clerk_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer clerkId;
+    /**
+     * 关联费用配置项
+     */
+    @Column(name = "fee_config_id")
+    @ApiModelProperty(value = "关联费用配置项", required = false)
+    private Integer feeConfigId;
+    /**
+     * 不使用费用配置表时使用此字段
+     */
+    @Column(name = "fee_name")
+    @ApiModelProperty(value = "不使用费用配置表时使用此字段", required = false)
+    private String feeName;
+    /**
+     * null
+     */
+    @Column(name = "fee_value")
+    @ApiModelProperty(value = "null", required = false)
+    private Double feeValue;
+    /**
+     * null
+     */
+    @Column(name = "examination_config_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer examinationConfigId;
+    /**
+     * null
+     */
+    @Column(name = "examination_name")
+    @ApiModelProperty(value = "null", required = false)
+    private String examinationName;
+    /**
+     * null
+     */
+    @Column(name = "examination_value")
+    @ApiModelProperty(value = "null", required = false)
+    private String examinationValue;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getSyncTime() {
+        return syncTime;
+    }
+
+    public void setSyncTime(Long syncTime) {
+        this.syncTime = syncTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public Integer getCustomerId() {
+        return customerId;
+    }
+
+    public void setCustomerId(Integer customerId) {
+        this.customerId = customerId;
+    }
+
+
+    public Integer getNurseConfigOptionId() {
+        return nurseConfigOptionId;
+    }
+
+    public void setNurseConfigOptionId(Integer nurseConfigOptionId) {
+        this.nurseConfigOptionId = nurseConfigOptionId;
+    }
+
+
+    public Integer getClerkId() {
+        return clerkId;
+    }
+
+    public void setClerkId(Integer clerkId) {
+        this.clerkId = clerkId;
+    }
+
+
+    public Integer getFeeConfigId() {
+        return feeConfigId;
+    }
+
+    public void setFeeConfigId(Integer feeConfigId) {
+        this.feeConfigId = feeConfigId;
+    }
+
+
+    public String getFeeName() {
+        return feeName;
+    }
+
+    public void setFeeName(String feeName) {
+        this.feeName = feeName;
+    }
+
+
+    public Double getFeeValue() {
+        return feeValue;
+    }
+
+    public void setFeeValue(Double feeValue) {
+        this.feeValue = feeValue;
+    }
+
+
+    public Integer getExaminationConfigId() {
+        return examinationConfigId;
+    }
+
+    public void setExaminationConfigId(Integer examinationConfigId) {
+        this.examinationConfigId = examinationConfigId;
+    }
+
+
+    public String getExaminationName() {
+        return examinationName;
+    }
+
+    public void setExaminationName(String examinationName) {
+        this.examinationName = examinationName;
+    }
+
+
+    public String getExaminationValue() {
+        return examinationValue;
+    }
+
+    public void setExaminationValue(String examinationValue) {
+        this.examinationValue = examinationValue;
+    }
+
+}

+ 423 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/DeviceDO.java

@@ -0,0 +1,423 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_device")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class DeviceDO implements Serializable {
+
+    /**
+     * null
+     */
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     * 数据同步时间
+     */
+    @Column(name = "sync_time")
+    @ApiModelProperty(value = "数据同步时间", required = false)
+    private Long syncTime;
+    /**
+     * 医院结构id
+     */
+    @Column(name = "frame_id")
+    @ApiModelProperty(value = "医院结构id", required = false)
+    private Integer frameId;
+    /**
+     * 注册设备类型:1:护士主机  2:医生主机  3:门口机  4:病床分机 5:LCD走廊屏  6:LED点阵屏  7:护士腕表  8:护工腕表  9:病人腕表  10:手机App
+     */
+    @Column(name = "device_type")
+    @ApiModelProperty(value = "注册设备类型:1:护士主机  2:医生主机  3:门口机  4:病床分机 5:LCD走廊屏  6:LED点阵屏  7:护士腕表  8:护工腕表  9:病人腕表  10:手机App", required = false)
+    private Integer deviceType;
+    /**
+     * 注册设备出厂编号
+     */
+    @Column(name = "code")
+    @ApiModelProperty(value = "注册设备出厂编号", required = false)
+    private String code;
+    /**
+     * 设备型号
+     */
+    @Column(name = "model")
+    @ApiModelProperty(value = "设备型号", required = false)
+    private String model;
+    /**
+     * 设备软件版本信息
+     */
+    @Column(name = "soft_ver")
+    @ApiModelProperty(value = "设备软件版本信息", required = false)
+    private String softVer;
+    /**
+     * 设备硬件版本信息
+     */
+    @Column(name = "hard_ver")
+    @ApiModelProperty(value = "设备硬件版本信息", required = false)
+    private String hardVer;
+    /**
+     * 设备别名
+     */
+    @Column(name = "name")
+    @ApiModelProperty(value = "设备别名", required = false)
+    private String name;
+    /**
+     * 该设备的有线以太网卡MAC地址
+     */
+    @Column(name = "eth_mac")
+    @ApiModelProperty(value = "该设备的有线以太网卡MAC地址", required = false)
+    private String ethMac;
+    /**
+     * 该设备的有线以太网卡分配的IP地址
+     */
+    @Column(name = "eth_ip")
+    @ApiModelProperty(value = "该设备的有线以太网卡分配的IP地址", required = false)
+    private String ethIp;
+    /**
+     * 该设备的WIFI网卡MAC地址
+     */
+    @Column(name = "wifi_mac")
+    @ApiModelProperty(value = "该设备的WIFI网卡MAC地址", required = false)
+    private String wifiMac;
+    /**
+     * 该设备的WIFI网卡分配的IP地址
+     */
+    @Column(name = "wifi_ip")
+    @ApiModelProperty(value = "该设备的WIFI网卡分配的IP地址", required = false)
+    private String wifiIp;
+    /**
+     * 该设备的WIFI热点名称
+     */
+    @Column(name = "wifi_hostname")
+    @ApiModelProperty(value = "该设备的WIFI热点名称", required = false)
+    private String wifiHostname;
+    /**
+     * wifi密码
+     */
+    @Column(name = "wifi_password")
+    @ApiModelProperty(value = "wifi密码", required = false)
+    private String wifiPassword;
+    /**
+     * 该设备是否启用状态:false:表示未启用,设备不进入主界面。true:表示已开启正常使用。
+     */
+    @Column(name = "status")
+    @ApiModelProperty(value = "该设备是否启用状态:false:表示未启用,设备不进入主界面。true:表示已开启正常使用。", required = false)
+    private String status;
+    /**
+     * SIP服务器IP地址
+     */
+    @Column(name = "sip_ip")
+    @ApiModelProperty(value = "SIP服务器IP地址", required = false)
+    private String sipIp;
+    /**
+     * 分配给该设备的SIP账号
+     */
+    @Column(name = "sip_id")
+    @ApiModelProperty(value = "分配给该设备的SIP账号", required = false)
+    private String sipId;
+    /**
+     * 分配给该设备的SIP密码
+     */
+    @Column(name = "sip_password")
+    @ApiModelProperty(value = "分配给该设备的SIP密码", required = false)
+    private String sipPassword;
+    /**
+     * 表示SIP账号状态:true:可以使用   false:暂停使用
+     */
+    @Column(name = "sip_status")
+    @ApiModelProperty(value = "表示SIP账号状态:true:可以使用   false:暂停使用", required = false)
+    private String sipStatus;
+    /**
+     * null
+     */
+    @Column(name = "member_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer memberId;
+    /**
+     *	是否为后备,空或否时为并行
+     */	@Column(name = "bool_backup" )
+    @ApiModelProperty(value="是否为后备,空或否时为并行",required=false)
+    private String boolBackup;
+    /**
+     *	后备哪个设备,设备id
+     */	@Column(name = "backup_id" )
+    @ApiModelProperty(value="后备哪个设备,设备id",required=false)
+    private Integer backupId;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public Long getSyncTime() {
+        return syncTime;
+    }
+
+    public void setSyncTime(Long syncTime) {
+        this.syncTime = syncTime;
+    }
+
+
+    public Integer getFrameId() {
+        return frameId;
+    }
+
+    public void setFrameId(Integer frameId) {
+        this.frameId = frameId;
+    }
+
+
+    public Integer getDeviceType() {
+        return deviceType;
+    }
+
+    public void setDeviceType(Integer deviceType) {
+        this.deviceType = deviceType;
+    }
+
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+
+    public String getModel() {
+        return model;
+    }
+
+    public void setModel(String model) {
+        this.model = model;
+    }
+
+
+    public String getSoftVer() {
+        return softVer;
+    }
+
+    public void setSoftVer(String softVer) {
+        this.softVer = softVer;
+    }
+
+
+    public String getHardVer() {
+        return hardVer;
+    }
+
+    public void setHardVer(String hardVer) {
+        this.hardVer = hardVer;
+    }
+
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+
+    public String getEthMac() {
+        return ethMac;
+    }
+
+    public void setEthMac(String ethMac) {
+        this.ethMac = ethMac;
+    }
+
+
+    public String getEthIp() {
+        return ethIp;
+    }
+
+    public void setEthIp(String ethIp) {
+        this.ethIp = ethIp;
+    }
+
+
+    public String getWifiMac() {
+        return wifiMac;
+    }
+
+    public void setWifiMac(String wifiMac) {
+        this.wifiMac = wifiMac;
+    }
+
+
+    public String getWifiIp() {
+        return wifiIp;
+    }
+
+    public void setWifiIp(String wifiIp) {
+        this.wifiIp = wifiIp;
+    }
+
+
+    public String getWifiHostname() {
+        return wifiHostname;
+    }
+
+    public void setWifiHostname(String wifiHostname) {
+        this.wifiHostname = wifiHostname;
+    }
+
+
+    public String getWifiPassword() {
+        return wifiPassword;
+    }
+
+    public void setWifiPassword(String wifiPassword) {
+        this.wifiPassword = wifiPassword;
+    }
+
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
+
+    public String getSipIp() {
+        return sipIp;
+    }
+
+    public void setSipIp(String sipIp) {
+        this.sipIp = sipIp;
+    }
+
+
+    public String getSipId() {
+        return sipId;
+    }
+
+    public void setSipId(String sipId) {
+        this.sipId = sipId;
+    }
+
+
+    public String getSipPassword() {
+        return sipPassword;
+    }
+
+    public void setSipPassword(String sipPassword) {
+        this.sipPassword = sipPassword;
+    }
+
+
+    public String getSipStatus() {
+        return sipStatus;
+    }
+
+    public void setSipStatus(String sipStatus) {
+        this.sipStatus = sipStatus;
+    }
+
+
+    public Integer getMemberId() {
+        return memberId;
+    }
+
+    public void setMemberId(Integer memberId) {
+        this.memberId = memberId;
+    }
+
+
+    public String getBoolBackup() {
+        return boolBackup;
+    }
+
+    public void setBoolBackup(String boolBackup) {
+        this.boolBackup = boolBackup;
+    }
+
+
+    public Integer getBackupId() {
+        return backupId;
+    }
+
+    public void setBackupId(Integer backupId) {
+        this.backupId = backupId;
+    }
+}

+ 127 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/ErrorLogDO.java

@@ -0,0 +1,127 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_error_log")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class ErrorLogDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "class_name")
+    @ApiModelProperty(value = "null", required = false)
+    private String className;
+    /**
+     * null
+     */
+    @Column(name = "method_name")
+    @ApiModelProperty(value = "null", required = false)
+    private String methodName;
+    /**
+     * null
+     */
+    @Column(name = "exception_name")
+    @ApiModelProperty(value = "null", required = false)
+    private String exceptionName;
+    /**
+     * null
+     */
+    @Column(name = "err_msg")
+    @ApiModelProperty(value = "null", required = false)
+    private String errMsg;
+    /**
+     * null
+     */
+    @Column(name = "stackTrace")
+    @ApiModelProperty(value = "null", required = false)
+    private String stackTrace;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getClassName() {
+        return className;
+    }
+
+    public void setClassName(String className) {
+        this.className = className;
+    }
+
+
+    public String getMethodName() {
+        return methodName;
+    }
+
+    public void setMethodName(String methodName) {
+        this.methodName = methodName;
+    }
+
+
+    public String getExceptionName() {
+        return exceptionName;
+    }
+
+    public void setExceptionName(String exceptionName) {
+        this.exceptionName = exceptionName;
+    }
+
+
+    public String getErrMsg() {
+        return errMsg;
+    }
+
+    public void setErrMsg(String errMsg) {
+        this.errMsg = errMsg;
+    }
+
+
+    public String getStackTrace() {
+        return stackTrace;
+    }
+
+    public void setStackTrace(String stackTrace) {
+        this.stackTrace = stackTrace;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+}

+ 202 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/FrameDO.java

@@ -0,0 +1,202 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_frame")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class FrameDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     *	医院shop_id
+     */	@Column(name = "hospital_id" )
+    @ApiModelProperty(value="医院shop_id",required=false)
+    private Integer hospitalId;
+    /**
+     * 数据同步时间
+     */
+    @Column(name = "sync_time")
+    @ApiModelProperty(value = "数据同步时间", required = false)
+    private Long syncTime;
+    /**
+     * 类型:0楼、1病房、2床位
+     */
+    @Column(name = "type")
+    @ApiModelProperty(value = "类型:0楼、1病房、2床位", required = false)
+    private Integer type;
+    /**
+     * 名称
+     */
+    @Column(name = "name")
+    @ApiModelProperty(value = "名称", required = false)
+    private String name;
+    /**
+     * 别名
+     */
+    @Column(name = "alias")
+    @ApiModelProperty(value = "别名", required = false)
+    private String alias;
+    /**
+     * 父级id
+     */
+    @Column(name = "parent_id")
+    @ApiModelProperty(value = "父级id", required = false)
+    private Integer parentId;
+    /**
+     * null
+     */
+    @Column(name = "group_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer groupId;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public Integer getHospitalId() {
+        return hospitalId;
+    }
+
+    public void setHospitalId(Integer hostpitalId) {
+        this.hospitalId = hostpitalId;
+    }
+
+
+    public Long getSyncTime() {
+        return syncTime;
+    }
+
+    public void setSyncTime(Long syncTime) {
+        this.syncTime = syncTime;
+    }
+
+
+    public Integer getType() {
+        return type;
+    }
+
+    public void setType(Integer type) {
+        this.type = type;
+    }
+
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+
+    public String getAlias() {
+        return alias;
+    }
+
+    public void setAlias(String alias) {
+        this.alias = alias;
+    }
+
+
+    public Integer getParentId() {
+        return parentId;
+    }
+
+    public void setParentId(Integer parentId) {
+        this.parentId = parentId;
+    }
+
+
+    public Integer getGroupId() {
+        return groupId;
+    }
+
+    public void setGroupId(Integer groupId) {
+        this.groupId = groupId;
+    }
+
+}

+ 97 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/FrameGroupDO.java

@@ -0,0 +1,97 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_frame_group")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class FrameGroupDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * 组名
+     */
+    @Column(name = "group_name")
+    @ApiModelProperty(value = "组名", required = false)
+    private String groupName;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public String getGroupName() {
+        return groupName;
+    }
+
+    public void setGroupName(String groupName) {
+        this.groupName = groupName;
+    }
+
+}

+ 379 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/MemberDO.java

@@ -0,0 +1,379 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_member")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class MemberDO implements Serializable {
+
+    /**
+     * 会员ID
+     */
+    @Id(name = "member_id")
+    @ApiModelProperty(value = "会员ID", required = false)
+    private Integer memberId;
+    /**
+     * 会员登陆用户名
+     */
+    @Column(name = "uname")
+    @ApiModelProperty(value = "会员登陆用户名", required = false)
+    private String uname;
+    /**
+     * 会员登陆密码
+     */
+    @Column(name = "password")
+    @ApiModelProperty(value = "会员登陆密码", required = false)
+    private String password;
+    /**
+     * 会员注册时间
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "会员注册时间", required = false)
+    private Long createTime;
+    /**
+     * 会员性别,1为男,0为女
+     */
+    @Column(name = "sex")
+    @ApiModelProperty(value = "会员性别,1为男,0为女", required = false)
+    private Integer sex;
+    /**
+     * 会员生日
+     */
+    @Column(name = "birthday")
+    @ApiModelProperty(value = "会员生日", required = false)
+    private Long birthday;
+    /**
+     * 所属省份ID
+     */
+    @Column(name = "province_id")
+    @ApiModelProperty(value = "所属省份ID", required = false)
+    private Integer provinceId;
+    /**
+     * 所属城市ID
+     */
+    @Column(name = "city_id")
+    @ApiModelProperty(value = "所属城市ID", required = false)
+    private Integer cityId;
+    /**
+     * 所属县(区)ID
+     */
+    @Column(name = "county_id")
+    @ApiModelProperty(value = "所属县(区)ID", required = false)
+    private Integer countyId;
+    /**
+     * 所属城镇ID
+     */
+    @Column(name = "town_id")
+    @ApiModelProperty(value = "所属城镇ID", required = false)
+    private Integer townId;
+    /**
+     * 所属省份名称
+     */
+    @Column(name = "province")
+    @ApiModelProperty(value = "所属省份名称", required = false)
+    private String province;
+    /**
+     * 所属城市名称
+     */
+    @Column(name = "city")
+    @ApiModelProperty(value = "所属城市名称", required = false)
+    private String city;
+    /**
+     * 所属县(区)名称
+     */
+    @Column(name = "county")
+    @ApiModelProperty(value = "所属县(区)名称", required = false)
+    private String county;
+    /**
+     * 所属城镇名称
+     */
+    @Column(name = "town")
+    @ApiModelProperty(value = "所属城镇名称", required = false)
+    private String town;
+    /**
+     * 详细地址
+     */
+    @Column(name = "address")
+    @ApiModelProperty(value = "详细地址", required = false)
+    private String address;
+    /**
+     * 手机号码
+     */
+    @Column(name = "mobile")
+    @ApiModelProperty(value = "手机号码", required = false)
+    private String mobile;
+    /**
+     * 会员备注
+     */
+    @Column(name = "remark")
+    @ApiModelProperty(value = "会员备注", required = false)
+    private String remark;
+    /**
+     * 上次登陆时间
+     */
+    @Column(name = "last_login")
+    @ApiModelProperty(value = "上次登陆时间", required = false)
+    private Long lastLogin;
+    /**
+     * 登陆次数
+     */
+    @Column(name = "login_count")
+    @ApiModelProperty(value = "登陆次数", required = false)
+    private Integer loginCount;
+    /**
+     * 会员头像
+     */
+    @Column(name = "face")
+    @ApiModelProperty(value = "会员头像", required = false)
+    private String face;
+    /**
+     * 身份证号
+     */
+    @Column(name = "midentity")
+    @ApiModelProperty(value = "身份证号", required = false)
+    private String midentity;
+    /**
+     * 昵称
+     */
+    @Column(name = "nickname")
+    @ApiModelProperty(value = "昵称", required = false)
+    private String nickname;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+
+    /**
+     * 最后登录机构id
+     */
+    @Column(name = "last_login_shopid", allowNullUpdate = true)
+    @ApiModelProperty(name = "last_login_shopid", value = "最后登录机构id", required = false)
+    private Integer lastLoginShopid;
+
+    @PrimaryKeyField
+    public Integer getMemberId() {
+        return memberId;
+    }
+
+    public void setMemberId(Integer memberId) {
+        this.memberId = memberId;
+    }
+
+
+    public String getUname() {
+        return uname;
+    }
+
+    public void setUname(String uname) {
+        this.uname = uname;
+    }
+
+
+    public String getPassword() {
+        return password;
+    }
+
+    public void setPassword(String password) {
+        this.password = password;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Integer getSex() {
+        return sex;
+    }
+
+    public void setSex(Integer sex) {
+        this.sex = sex;
+    }
+
+
+    public Long getBirthday() {
+        return birthday;
+    }
+
+    public void setBirthday(Long birthday) {
+        this.birthday = birthday;
+    }
+
+
+    public Integer getProvinceId() {
+        return provinceId;
+    }
+
+    public void setProvinceId(Integer provinceId) {
+        this.provinceId = provinceId;
+    }
+
+
+    public Integer getCityId() {
+        return cityId;
+    }
+
+    public void setCityId(Integer cityId) {
+        this.cityId = cityId;
+    }
+
+
+    public Integer getCountyId() {
+        return countyId;
+    }
+
+    public void setCountyId(Integer countyId) {
+        this.countyId = countyId;
+    }
+
+
+    public Integer getTownId() {
+        return townId;
+    }
+
+    public void setTownId(Integer townId) {
+        this.townId = townId;
+    }
+
+
+    public String getProvince() {
+        return province;
+    }
+
+    public void setProvince(String province) {
+        this.province = province;
+    }
+
+
+    public String getCity() {
+        return city;
+    }
+
+    public void setCity(String city) {
+        this.city = city;
+    }
+
+
+    public String getCounty() {
+        return county;
+    }
+
+    public void setCounty(String county) {
+        this.county = county;
+    }
+
+
+    public String getTown() {
+        return town;
+    }
+
+    public void setTown(String town) {
+        this.town = town;
+    }
+
+
+    public String getAddress() {
+        return address;
+    }
+
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+
+    public String getMobile() {
+        return mobile;
+    }
+
+    public void setMobile(String mobile) {
+        this.mobile = mobile;
+    }
+
+
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+
+    public Long getLastLogin() {
+        return lastLogin;
+    }
+
+    public void setLastLogin(Long lastLogin) {
+        this.lastLogin = lastLogin;
+    }
+
+
+    public Integer getLoginCount() {
+        return loginCount;
+    }
+
+    public void setLoginCount(Integer loginCount) {
+        this.loginCount = loginCount;
+    }
+
+
+    public String getFace() {
+        return face;
+    }
+
+    public void setFace(String face) {
+        this.face = face;
+    }
+
+
+    public String getMidentity() {
+        return midentity;
+    }
+
+    public void setMidentity(String midentity) {
+        this.midentity = midentity;
+    }
+
+
+    public String getNickname() {
+        return nickname;
+    }
+
+    public void setNickname(String nickname) {
+        this.nickname = nickname;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+    public Integer getLastLoginShopid() {
+        return lastLoginShopid;
+    }
+
+    public void setLastLoginShopid(Integer lastLoginShopid) {
+        this.lastLoginShopid = lastLoginShopid;
+    }
+}

+ 172 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/MenuDO.java

@@ -0,0 +1,172 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_menu")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class MenuDO implements Serializable {
+
+    /**
+     * 店铺菜单id
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "店铺菜单id", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * 同步id
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "同步id", required = false)
+    private String unionId;
+    /**
+     * 菜单父id
+     */
+    @Column(name = "parent_id")
+    @ApiModelProperty(value = "菜单父id", required = false)
+    private Integer parentId;
+    /**
+     * 菜单标题
+     */
+    @Column(name = "title")
+    @ApiModelProperty(value = "菜单标题", required = false)
+    private String title;
+    /**
+     * 菜单唯一标识
+     */
+    @Column(name = "identifier")
+    @ApiModelProperty(value = "菜单唯一标识", required = false)
+    private String identifier;
+    /**
+     * 权限表达式
+     */
+    @Column(name = "auth_regular")
+    @ApiModelProperty(value = "权限表达式", required = false)
+    private String authRegular;
+    /**
+     * 删除标记
+     */
+    @Column(name = "delete_flag")
+    @ApiModelProperty(value = "删除标记", required = false)
+    private Integer deleteFlag;
+    /**
+     * 菜单级别标识
+     */
+    @Column(name = "path")
+    @ApiModelProperty(value = "菜单级别标识", required = false)
+    private String path;
+    /**
+     * 菜单级别
+     */
+    @Column(name = "grade")
+    @ApiModelProperty(value = "菜单级别", required = false)
+    private Integer grade;
+    /**
+     * 是否默认给医生角色,1是,0否
+     */
+    @Column(name = "doctor_default")
+    @ApiModelProperty(value = "是否默认给医生角色,1是,0否", required = false)
+    private Boolean doctorDefault;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Integer getParentId() {
+        return parentId;
+    }
+
+    public void setParentId(Integer parentId) {
+        this.parentId = parentId;
+    }
+
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+
+    public String getIdentifier() {
+        return identifier;
+    }
+
+    public void setIdentifier(String identifier) {
+        this.identifier = identifier;
+    }
+
+
+    public String getAuthRegular() {
+        return authRegular;
+    }
+
+    public void setAuthRegular(String authRegular) {
+        this.authRegular = authRegular;
+    }
+
+
+    public Integer getDeleteFlag() {
+        return deleteFlag;
+    }
+
+    public void setDeleteFlag(Integer deleteFlag) {
+        this.deleteFlag = deleteFlag;
+    }
+
+
+    public String getPath() {
+        return path;
+    }
+
+    public void setPath(String path) {
+        this.path = path;
+    }
+
+
+    public Integer getGrade() {
+        return grade;
+    }
+
+    public void setGrade(Integer grade) {
+        this.grade = grade;
+    }
+
+
+    public Boolean getDoctorDefault() {
+        return doctorDefault;
+    }
+
+    public void setDoctorDefault(Boolean doctorDefault) {
+        this.doctorDefault = doctorDefault;
+    }
+
+}

+ 142 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/NurseConfigDO.java

@@ -0,0 +1,142 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_nurse_config")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class NurseConfigDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "sync_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long syncTime;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     * HIS系统数据KEY
+     */
+    @Column(name = "his_keyval")
+    @ApiModelProperty(value = "HIS系统数据KEY", required = false)
+    private String hisKeyval;
+    /**
+     * HIS系统科室KEY
+     */
+    @Column(name = "his_part_keyval")
+    @ApiModelProperty(value = "HIS系统科室KEY", required = false)
+    private String hisPartKeyval;
+    /**
+     * null
+     */
+    @Column(name = "config_name")
+    @ApiModelProperty(value = "null", required = false)
+    private String configName;
+    /**
+     * null
+     */
+    @Column(name = "index_no")
+    @ApiModelProperty(value = "null", required = false)
+    private Boolean indexNo;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getSyncTime() {
+        return syncTime;
+    }
+
+    public void setSyncTime(Long syncTime) {
+        this.syncTime = syncTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public String getHisKeyval() {
+        return hisKeyval;
+    }
+
+    public void setHisKeyval(String hisKeyval) {
+        this.hisKeyval = hisKeyval;
+    }
+
+
+    public String getHisPartKeyval() {
+        return hisPartKeyval;
+    }
+
+    public void setHisPartKeyval(String hisPartKeyval) {
+        this.hisPartKeyval = hisPartKeyval;
+    }
+
+
+    public String getConfigName() {
+        return configName;
+    }
+
+    public void setConfigName(String configName) {
+        this.configName = configName;
+    }
+
+
+    public Boolean getIndexNo() {
+        return indexNo;
+    }
+
+    public void setIndexNo(Boolean indexNo) {
+        this.indexNo = indexNo;
+    }
+
+}

+ 232 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/NurseConfigOptionDO.java

@@ -0,0 +1,232 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_nurse_config_option")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class NurseConfigOptionDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * null
+     */
+    @Column(name = "sync_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long syncTime;
+    /**
+     * 为空时为全医院通用护理项
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "为空时为全医院通用护理项", required = false)
+    private Integer partId;
+    /**
+     * HIS系统数据KEY
+     */
+    @Column(name = "his_keyval")
+    @ApiModelProperty(value = "HIS系统数据KEY", required = false)
+    private String hisKeyval;
+    /**
+     * null
+     */
+    @Column(name = "his_ncfg_keyval")
+    @ApiModelProperty(value = "null", required = false)
+    private String hisNcfgKeyval;
+    /**
+     * HIS系统科室KEY
+     */
+    @Column(name = "his_part_keyval")
+    @ApiModelProperty(value = "HIS系统科室KEY", required = false)
+    private String hisPartKeyval;
+    /**
+     * 护理项名称
+     */
+    @Column(name = "option_name")
+    @ApiModelProperty(value = "护理项名称", required = false)
+    private String optionName;
+    /**
+     * 护理项显示的颜色,RGB格式
+     */
+    @Column(name = "color_rgb")
+    @ApiModelProperty(value = "护理项显示的颜色,RGB格式", required = false)
+    private String colorRgb;
+    /**
+     * 手动修改过的不进行同步
+     */
+    @Column(name = "modified")
+    @ApiModelProperty(value = "手动修改过的不进行同步", required = false)
+    private String modified;
+    /**
+     * null
+     */
+    @Column(name = "ncfg_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer ncfgId;
+    /**
+     * null
+     */
+    @Column(name = "type")
+    @ApiModelProperty(value = "null", required = false)
+    private String type;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public Long getSyncTime() {
+        return syncTime;
+    }
+
+    public void setSyncTime(Long syncTime) {
+        this.syncTime = syncTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public String getHisKeyval() {
+        return hisKeyval;
+    }
+
+    public void setHisKeyval(String hisKeyval) {
+        this.hisKeyval = hisKeyval;
+    }
+
+
+    public String getHisNcfgKeyval() {
+        return hisNcfgKeyval;
+    }
+
+    public void setHisNcfgKeyval(String hisNcfgKeyval) {
+        this.hisNcfgKeyval = hisNcfgKeyval;
+    }
+
+
+    public String getHisPartKeyval() {
+        return hisPartKeyval;
+    }
+
+    public void setHisPartKeyval(String hisPartKeyval) {
+        this.hisPartKeyval = hisPartKeyval;
+    }
+
+
+    public String getOptionName() {
+        return optionName;
+    }
+
+    public void setOptionName(String optionName) {
+        this.optionName = optionName;
+    }
+
+
+    public String getColorRgb() {
+        return colorRgb;
+    }
+
+    public void setColorRgb(String colorRgb) {
+        this.colorRgb = colorRgb;
+    }
+
+
+    public String getModified() {
+        return modified;
+    }
+
+    public void setModified(String modified) {
+        this.modified = modified;
+    }
+
+
+    public Integer getNcfgId() {
+        return ncfgId;
+    }
+
+    public void setNcfgId(Integer ncfgId) {
+        this.ncfgId = ncfgId;
+    }
+
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+}

+ 442 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/PartSettingDO.java

@@ -0,0 +1,442 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_part_setting")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class PartSettingDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * null
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer partId;
+    /**
+     * 白天开始时间
+     */
+    @Column(name = "day_start")
+    @ApiModelProperty(value = "白天开始时间", required = false)
+    private String dayStart;
+    /**
+     * 白天背光亮度
+     */
+    @Column(name = "day_light")
+    @ApiModelProperty(value = "白天背光亮度", required = false)
+    private Boolean dayLight;
+    /**
+     * 白天通话音量
+     */
+    @Column(name = "day_vol")
+    @ApiModelProperty(value = "白天通话音量", required = false)
+    private Boolean dayVol;
+    /**
+     * 白天响铃音量
+     */
+    @Column(name = "day_ring_vol")
+    @ApiModelProperty(value = "白天响铃音量", required = false)
+    private Boolean dayRingVol;
+    /**
+     * 白天响铃次数
+     */
+    @Column(name = "day_ring_times")
+    @ApiModelProperty(value = "白天响铃次数", required = false)
+    private Boolean dayRingTimes;
+    /**
+     * 白天护理灯亮度
+     */
+    @Column(name = "day_nurse_led")
+    @ApiModelProperty(value = "白天护理灯亮度", required = false)
+    private Boolean dayNurseLed;
+    /**
+     * 白天门口机通话音量
+     */
+    @Column(name = "day_door_vol")
+    @ApiModelProperty(value = "白天门口机通话音量", required = false)
+    private Boolean dayDoorVol;
+    /**
+     * 白天床头机通话音量
+     */
+    @Column(name = "day_bed_vol")
+    @ApiModelProperty(value = "白天床头机通话音量", required = false)
+    private Boolean dayBedVol;
+    /**
+     * 白天转换盒通话音量
+     */
+    @Column(name = "day_transfer_box_vol")
+    @ApiModelProperty(value = "白天转换盒通话音量", required = false)
+    private Boolean dayTransferBoxVol;
+    /**
+     * 白天转换盒系统音量
+     */
+    @Column(name = "day_transfer_box_system_vol")
+    @ApiModelProperty(value = "白天转换盒系统音量", required = false)
+    private Boolean dayTransferBoxSystemVol;
+    /**
+     * 夜晚开始时间
+     */
+    @Column(name = "night_start")
+    @ApiModelProperty(value = "夜晚开始时间", required = false)
+    private String nightStart;
+    /**
+     * 夜晚背光亮度
+     */
+    @Column(name = "night_light")
+    @ApiModelProperty(value = "夜晚背光亮度", required = false)
+    private Boolean nightLight;
+    /**
+     * 夜晚通话音量
+     */
+    @Column(name = "night_vol")
+    @ApiModelProperty(value = "夜晚通话音量", required = false)
+    private Boolean nightVol;
+    /**
+     * 夜晚响铃音量
+     */
+    @Column(name = "night_ring_vol")
+    @ApiModelProperty(value = "夜晚响铃音量", required = false)
+    private Boolean nightRingVol;
+    /**
+     * 夜晚响铃次数
+     */
+    @Column(name = "night_ring_times")
+    @ApiModelProperty(value = "夜晚响铃次数", required = false)
+    private Boolean nightRingTimes;
+    /**
+     * 夜晚护理灯亮度
+     */
+    @Column(name = "night_nurse_led")
+    @ApiModelProperty(value = "夜晚护理灯亮度", required = false)
+    private Boolean nightNurseLed;
+    /**
+     * 夜晚门口机通话音量
+     */
+    @Column(name = "night_door_vol")
+    @ApiModelProperty(value = "夜晚门口机通话音量", required = false)
+    private Boolean nightDoorVol;
+    /**
+     * 夜晚床头机通话音量
+     */
+    @Column(name = "night_bed_vol")
+    @ApiModelProperty(value = "夜晚床头机通话音量", required = false)
+    private Boolean nightBedVol;
+    /**
+     * 夜晚转换盒通话音量
+     */
+    @Column(name = "night_transfer_box_vol")
+    @ApiModelProperty(value = "夜晚转换盒通话音量", required = false)
+    private Boolean nightTransferBoxVol;
+    /**
+     * 夜晚转换盒系统音量
+     */
+    @Column(name = "night_transfer_box_system_vol")
+    @ApiModelProperty(value = "夜晚转换盒系统音量", required = false)
+    private Boolean nightTransferBoxSystemVol;
+    /**
+     * 护士机熄屏时间,单位:秒
+     */
+    @Column(name = "sleep_seconds_nurse")
+    @ApiModelProperty(value = "护士机熄屏时间,单位:秒", required = false)
+    private Boolean sleepSecondsNurse;
+    /**
+     * 门口机熄屏时间,单位:秒
+     */
+    @Column(name = "sleep_seconds_door")
+    @ApiModelProperty(value = "门口机熄屏时间,单位:秒", required = false)
+    private Boolean sleepSecondsDoor;
+    /**
+     * 病床分机熄屏时间,单位:秒
+     */
+    @Column(name = "sleep_seconds_bed")
+    @ApiModelProperty(value = "病床分机熄屏时间,单位:秒", required = false)
+    private Boolean sleepSecondsBed;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public String getDayStart() {
+        return dayStart;
+    }
+
+    public void setDayStart(String dayStart) {
+        this.dayStart = dayStart;
+    }
+
+
+    public Boolean getDayLight() {
+        return dayLight;
+    }
+
+    public void setDayLight(Boolean dayLight) {
+        this.dayLight = dayLight;
+    }
+
+
+    public Boolean getDayVol() {
+        return dayVol;
+    }
+
+    public void setDayVol(Boolean dayVol) {
+        this.dayVol = dayVol;
+    }
+
+
+    public Boolean getDayRingVol() {
+        return dayRingVol;
+    }
+
+    public void setDayRingVol(Boolean dayRingVol) {
+        this.dayRingVol = dayRingVol;
+    }
+
+
+    public Boolean getDayRingTimes() {
+        return dayRingTimes;
+    }
+
+    public void setDayRingTimes(Boolean dayRingTimes) {
+        this.dayRingTimes = dayRingTimes;
+    }
+
+
+    public Boolean getDayNurseLed() {
+        return dayNurseLed;
+    }
+
+    public void setDayNurseLed(Boolean dayNurseLed) {
+        this.dayNurseLed = dayNurseLed;
+    }
+
+
+    public Boolean getDayDoorVol() {
+        return dayDoorVol;
+    }
+
+    public void setDayDoorVol(Boolean dayDoorVol) {
+        this.dayDoorVol = dayDoorVol;
+    }
+
+
+    public Boolean getDayBedVol() {
+        return dayBedVol;
+    }
+
+    public void setDayBedVol(Boolean dayBedVol) {
+        this.dayBedVol = dayBedVol;
+    }
+
+
+    public Boolean getDayTransferBoxVol() {
+        return dayTransferBoxVol;
+    }
+
+    public void setDayTransferBoxVol(Boolean dayTransferBoxVol) {
+        this.dayTransferBoxVol = dayTransferBoxVol;
+    }
+
+
+    public Boolean getDayTransferBoxSystemVol() {
+        return dayTransferBoxSystemVol;
+    }
+
+    public void setDayTransferBoxSystemVol(Boolean dayTransferBoxSystemVol) {
+        this.dayTransferBoxSystemVol = dayTransferBoxSystemVol;
+    }
+
+
+    public String getNightStart() {
+        return nightStart;
+    }
+
+    public void setNightStart(String nightStart) {
+        this.nightStart = nightStart;
+    }
+
+
+    public Boolean getNightLight() {
+        return nightLight;
+    }
+
+    public void setNightLight(Boolean nightLight) {
+        this.nightLight = nightLight;
+    }
+
+
+    public Boolean getNightVol() {
+        return nightVol;
+    }
+
+    public void setNightVol(Boolean nightVol) {
+        this.nightVol = nightVol;
+    }
+
+
+    public Boolean getNightRingVol() {
+        return nightRingVol;
+    }
+
+    public void setNightRingVol(Boolean nightRingVol) {
+        this.nightRingVol = nightRingVol;
+    }
+
+
+    public Boolean getNightRingTimes() {
+        return nightRingTimes;
+    }
+
+    public void setNightRingTimes(Boolean nightRingTimes) {
+        this.nightRingTimes = nightRingTimes;
+    }
+
+
+    public Boolean getNightNurseLed() {
+        return nightNurseLed;
+    }
+
+    public void setNightNurseLed(Boolean nightNurseLed) {
+        this.nightNurseLed = nightNurseLed;
+    }
+
+
+    public Boolean getNightDoorVol() {
+        return nightDoorVol;
+    }
+
+    public void setNightDoorVol(Boolean nightDoorVol) {
+        this.nightDoorVol = nightDoorVol;
+    }
+
+
+    public Boolean getNightBedVol() {
+        return nightBedVol;
+    }
+
+    public void setNightBedVol(Boolean nightBedVol) {
+        this.nightBedVol = nightBedVol;
+    }
+
+
+    public Boolean getNightTransferBoxVol() {
+        return nightTransferBoxVol;
+    }
+
+    public void setNightTransferBoxVol(Boolean nightTransferBoxVol) {
+        this.nightTransferBoxVol = nightTransferBoxVol;
+    }
+
+
+    public Boolean getNightTransferBoxSystemVol() {
+        return nightTransferBoxSystemVol;
+    }
+
+    public void setNightTransferBoxSystemVol(Boolean nightTransferBoxSystemVol) {
+        this.nightTransferBoxSystemVol = nightTransferBoxSystemVol;
+    }
+
+
+    public Boolean getSleepSecondsNurse() {
+        return sleepSecondsNurse;
+    }
+
+    public void setSleepSecondsNurse(Boolean sleepSecondsNurse) {
+        this.sleepSecondsNurse = sleepSecondsNurse;
+    }
+
+
+    public Boolean getSleepSecondsDoor() {
+        return sleepSecondsDoor;
+    }
+
+    public void setSleepSecondsDoor(Boolean sleepSecondsDoor) {
+        this.sleepSecondsDoor = sleepSecondsDoor;
+    }
+
+
+    public Boolean getSleepSecondsBed() {
+        return sleepSecondsBed;
+    }
+
+    public void setSleepSecondsBed(Boolean sleepSecondsBed) {
+        this.sleepSecondsBed = sleepSecondsBed;
+    }
+
+}

+ 172 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/RemarkDO.java

@@ -0,0 +1,172 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_remark")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class RemarkDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * 科室id,便签时不能为空
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "科室id,便签时不能为空", required = false)
+    private Integer partId;
+    /**
+     * 备注类型。1,用户备注;2,便签
+     */
+    @Column(name = "type")
+    @ApiModelProperty(value = "备注类型。1,用户备注;2,便签", required = false)
+    private Boolean type;
+    /**
+     * 用户id。用户备注时不能为空
+     */
+    @Column(name = "member_id")
+    @ApiModelProperty(value = "用户id。用户备注时不能为空", required = false)
+    private Integer memberId;
+    /**
+     * 创建人
+     */
+    @Column(name = "create_name")
+    @ApiModelProperty(value = "创建人", required = false)
+    private String createName;
+    /**
+     * 备注内容
+     */
+    @Column(name = "content")
+    @ApiModelProperty(value = "备注内容", required = false)
+    private String content;
+    /**
+     * 附件名称
+     */
+    @Column(name = "file_name")
+    @ApiModelProperty(value = "附件名称", required = false)
+    private String fileName;
+    /**
+     * 附件路径
+     */
+    @Column(name = "file_path")
+    @ApiModelProperty(value = "附件路径", required = false)
+    private String filePath;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public Boolean getType() {
+        return type;
+    }
+
+    public void setType(Boolean type) {
+        this.type = type;
+    }
+
+
+    public Integer getMemberId() {
+        return memberId;
+    }
+
+    public void setMemberId(Integer memberId) {
+        this.memberId = memberId;
+    }
+
+
+    public String getCreateName() {
+        return createName;
+    }
+
+    public void setCreateName(String createName) {
+        this.createName = createName;
+    }
+
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+
+    public String getFileName() {
+        return fileName;
+    }
+
+    public void setFileName(String fileName) {
+        this.fileName = fileName;
+    }
+
+
+    public String getFilePath() {
+        return filePath;
+    }
+
+    public void setFilePath(String filePath) {
+        this.filePath = filePath;
+    }
+
+}

+ 126 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/RoleDO.java

@@ -0,0 +1,126 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_role")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class RoleDO implements Serializable {
+
+    /**
+     * 角色主键
+     */
+    @Column(name = "role_id")
+    @ApiModelProperty(value = "角色主键", required = false)
+    private Integer roleId;
+    /**
+     * 同步id
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "同步id", required = false)
+    private String unionId;
+    /**
+     * 角色名称
+     */
+    @Column(name = "role_name")
+    @ApiModelProperty(value = "角色名称", required = false)
+    private String roleName;
+    /**
+     * 角色
+     */
+    @Column(name = "auth_ids")
+    @ApiModelProperty(value = "角色 ", required = false)
+    private String authIds;
+    /**
+     * 角色描述
+     */
+    @Column(name = "role_describe")
+    @ApiModelProperty(value = "角色描述", required = false)
+    private String roleDescribe;
+    /**
+     * 科室id
+     */
+    @Column(name = "shop_id")
+    @ApiModelProperty(value = "科室id", required = false)
+    private Integer shopId;
+    /**
+     * 是否为隐藏角色,不可见,管理端可见
+     */
+    @Column(name = "hidden_in_seller")
+    @ApiModelProperty(value = "是否为隐藏角色,不可见,管理端可见", required = false)
+    private Boolean hiddenInSeller;
+
+
+    @PrimaryKeyField
+    public Integer getRoleId() {
+        return roleId;
+    }
+
+    public void setRoleId(Integer roleId) {
+        this.roleId = roleId;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public String getRoleName() {
+        return roleName;
+    }
+
+    public void setRoleName(String roleName) {
+        this.roleName = roleName;
+    }
+
+
+    public String getAuthIds() {
+        return authIds;
+    }
+
+    public void setAuthIds(String authIds) {
+        this.authIds = authIds;
+    }
+
+
+    public String getRoleDescribe() {
+        return roleDescribe;
+    }
+
+    public void setRoleDescribe(String roleDescribe) {
+        this.roleDescribe = roleDescribe;
+    }
+
+
+    public Integer getShopId() {
+        return shopId;
+    }
+
+    public void setShopId(Integer shopId) {
+        this.shopId = shopId;
+    }
+
+
+    public Boolean getHiddenInSeller() {
+        return hiddenInSeller;
+    }
+
+    public void setHiddenInSeller(Boolean hiddenInSeller) {
+        this.hiddenInSeller = hiddenInSeller;
+    }
+
+}

+ 141 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/ShopDO.java

@@ -0,0 +1,141 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_shop")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class ShopDO implements Serializable {
+
+    /**
+     * 机构Id
+     */
+    @Column(name = "shop_id")
+    @ApiModelProperty(value = "机构Id", required = false)
+    private Integer shopId;
+    /**
+     * 同步id
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "同步id", required = false)
+    private String unionId;
+    /**
+     * 会员Id
+     */
+    @Column(name = "member_id")
+    @ApiModelProperty(value = "会员Id", required = false)
+    private Integer memberId;
+    /**
+     * 会员名称
+     */
+    @Column(name = "member_name")
+    @ApiModelProperty(value = "会员名称", required = false)
+    private String memberName;
+    /**
+     * 机构名称
+     */
+    @Column(name = "shop_name")
+    @ApiModelProperty(value = "机构名称", required = false)
+    private String shopName;
+    /**
+     * 店铺类型:0机构注册店铺 1个人注册店铺 2普通商家 3o2o店铺 4代理 5科室
+     */
+    @Column(name = "shop_type")
+    @ApiModelProperty(value = "店铺类型:0机构注册店铺 1个人注册店铺 2普通商家 3o2o店铺 4代理 5科室", required = false)
+    private String shopType;
+    /**
+     * 父结点
+     */
+    @Column(name = "parent_id")
+    @ApiModelProperty(value = "父结点", required = false)
+    private Integer parentId;
+    /**
+     * 全名
+     */
+    @Column(name = "full_name")
+    @ApiModelProperty(value = "全名", required = false)
+    private String fullName;
+
+
+    @PrimaryKeyField
+    public Integer getShopId() {
+        return shopId;
+    }
+
+    public void setShopId(Integer shopId) {
+        this.shopId = shopId;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Integer getMemberId() {
+        return memberId;
+    }
+
+    public void setMemberId(Integer memberId) {
+        this.memberId = memberId;
+    }
+
+
+    public String getMemberName() {
+        return memberName;
+    }
+
+    public void setMemberName(String memberName) {
+        this.memberName = memberName;
+    }
+
+
+    public String getShopName() {
+        return shopName;
+    }
+
+    public void setShopName(String shopName) {
+        this.shopName = shopName;
+    }
+
+
+    public String getShopType() {
+        return shopType;
+    }
+
+    public void setShopType(String shopType) {
+        this.shopType = shopType;
+    }
+
+
+    public Integer getParentId() {
+        return parentId;
+    }
+
+    public void setParentId(Integer parentId) {
+        this.parentId = parentId;
+    }
+
+
+    public String getFullName() {
+        return fullName;
+    }
+
+    public void setFullName(String fullName) {
+        this.fullName = fullName;
+    }
+
+}

+ 172 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/SystemConfigDO.java

@@ -0,0 +1,172 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_system_config")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class SystemConfigDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "update_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long updateTime;
+    /**
+     * 参数组名
+     */
+    @Column(name = "group_name")
+    @ApiModelProperty(value = "参数组名", required = false)
+    private String groupName;
+    /**
+     * 参数编码
+     */
+    @Column(name = "key_code")
+    @ApiModelProperty(value = "参数编码", required = false)
+    private String keyCode;
+    /**
+     * 参数名称
+     */
+    @Column(name = "key_name")
+    @ApiModelProperty(value = "参数名称", required = false)
+    private String keyName;
+    /**
+     * 参数值
+     */
+    @Column(name = "key_val")
+    @ApiModelProperty(value = "参数值", required = false)
+    private String keyVal;
+    /**
+     * 描述
+     */
+    @Column(name = "description")
+    @ApiModelProperty(value = "描述", required = false)
+    private String description;
+    /**
+     * 参数类型
+     */
+    @Column(name = "key_type")
+    @ApiModelProperty(value = "参数类型", required = false)
+    private String keyType;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Long getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Long updateTime) {
+        this.updateTime = updateTime;
+    }
+
+
+    public String getGroupName() {
+        return groupName;
+    }
+
+    public void setGroupName(String groupName) {
+        this.groupName = groupName;
+    }
+
+
+    public String getKeyCode() {
+        return keyCode;
+    }
+
+    public void setKeyCode(String keyCode) {
+        this.keyCode = keyCode;
+    }
+
+
+    public String getKeyName() {
+        return keyName;
+    }
+
+    public void setKeyName(String keyName) {
+        this.keyName = keyName;
+    }
+
+
+    public String getKeyVal() {
+        return keyVal;
+    }
+
+    public void setKeyVal(String keyVal) {
+        this.keyVal = keyVal;
+    }
+
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+
+    public String getKeyType() {
+        return keyType;
+    }
+
+    public void setKeyType(String keyType) {
+        this.keyType = keyType;
+    }
+
+}

+ 172 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/TaskDO.java

@@ -0,0 +1,172 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "ncs_task")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class TaskDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * 科室id
+     */
+    @Column(name = "part_id")
+    @ApiModelProperty(value = "科室id", required = false)
+    private Integer partId;
+    /**
+     * 预计任务时间
+     */
+    @Column(name = "task_plan_time")
+    @ApiModelProperty(value = "预计任务时间", required = false)
+    private Long taskPlanTime;
+    /**
+     * 实际任务时间
+     */
+    @Column(name = "task_do_time")
+    @ApiModelProperty(value = "实际任务时间", required = false)
+    private Long taskDoTime;
+    /**
+     * 任务成功?
+     */
+    @Column(name = "task_success")
+    @ApiModelProperty(value = "任务成功?", required = false)
+    private Boolean taskSuccess;
+    /**
+     * 任务结果
+     */
+    @Column(name = "task_result")
+    @ApiModelProperty(value = "任务结果", required = false)
+    private String taskResult;
+    /**
+     * 任务操作人
+     */
+    @Column(name = "task_do_member_id")
+    @ApiModelProperty(value = "任务操作人", required = false)
+    private Integer taskDoMemberId;
+    /**
+     * 任务添加人。系统添加时为0
+     */
+    @Column(name = "create_id")
+    @ApiModelProperty(value = "任务添加人。系统添加时为0", required = false)
+    private Integer createId;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Integer getPartId() {
+        return partId;
+    }
+
+    public void setPartId(Integer partId) {
+        this.partId = partId;
+    }
+
+
+    public Long getTaskPlanTime() {
+        return taskPlanTime;
+    }
+
+    public void setTaskPlanTime(Long taskPlanTime) {
+        this.taskPlanTime = taskPlanTime;
+    }
+
+
+    public Long getTaskDoTime() {
+        return taskDoTime;
+    }
+
+    public void setTaskDoTime(Long taskDoTime) {
+        this.taskDoTime = taskDoTime;
+    }
+
+
+    public Boolean getTaskSuccess() {
+        return taskSuccess;
+    }
+
+    public void setTaskSuccess(Boolean taskSuccess) {
+        this.taskSuccess = taskSuccess;
+    }
+
+
+    public String getTaskResult() {
+        return taskResult;
+    }
+
+    public void setTaskResult(String taskResult) {
+        this.taskResult = taskResult;
+    }
+
+
+    public Integer getTaskDoMemberId() {
+        return taskDoMemberId;
+    }
+
+    public void setTaskDoMemberId(Integer taskDoMemberId) {
+        this.taskDoMemberId = taskDoMemberId;
+    }
+
+
+    public Integer getCreateId() {
+        return createId;
+    }
+
+    public void setCreateId(Integer createId) {
+        this.createId = createId;
+    }
+
+}

+ 112 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/VitalSignsGroupDO.java

@@ -0,0 +1,112 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "care_vital_signs_group")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class VitalSignsGroupDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * 数据创建时间
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "数据创建时间", required = false)
+    private Long createTime;
+    /**
+     * 体征名称
+     */
+    @Column(name = "vital_signs_name")
+    @ApiModelProperty(value = "体征名称", required = false)
+    private String vitalSignsName;
+    /**
+     * 排序
+     */
+    @Column(name = "sort")
+    @ApiModelProperty(value = "排序", required = false)
+    private Integer sort;
+    /**
+     * 单位
+     */
+    @Column(name = "unit")
+    @ApiModelProperty(value = "单位", required = false)
+    private String unit;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public String getVitalSignsName() {
+        return vitalSignsName;
+    }
+
+    public void setVitalSignsName(String vitalSignsName) {
+        this.vitalSignsName = vitalSignsName;
+    }
+
+
+    public Integer getSort() {
+        return sort;
+    }
+
+    public void setSort(Integer sort) {
+        this.sort = sort;
+    }
+
+
+    public String getUnit() {
+        return unit;
+    }
+
+    public void setUnit(String unit) {
+        this.unit = unit;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+}

+ 247 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/VitalSignsLogDO.java

@@ -0,0 +1,247 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "care_vital_signs_log")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class VitalSignsLogDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "member_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer memberId;
+    /**
+     * null
+     */
+    @Column(name = "member_nickname")
+    @ApiModelProperty(value = "null", required = false)
+    private String memberNickname;
+    /**
+     * 设备ID
+     */
+    @Column(name = "device_id")
+    @ApiModelProperty(value = "设备ID", required = false)
+    private Integer deviceId;
+    /**
+     * 设备IMEI
+     */
+    @Column(name = "imei")
+    @ApiModelProperty(value = "设备IMEI", required = false)
+    private String imei;
+    /**
+     * 日志时间
+     */
+    @Column(name = "log_time")
+    @ApiModelProperty(value = "日志时间", required = false)
+    private Long logTime;
+    /**
+     * 告警ID
+     */
+    @Column(name = "setting_id")
+    @ApiModelProperty(value = "告警ID", required = false)
+    private Integer settingId;
+    /**
+     * 体征值
+     */
+    @Column(name = "vs_value")
+    @ApiModelProperty(value = "体征值", required = false)
+    private Double vsValue;
+    /**
+     * 是否警告
+     */
+    @Column(name = "alarm")
+    @ApiModelProperty(value = "是否警告", required = false)
+    private Boolean alarm;
+    /**
+     * 组别id
+     */
+    @Column(name = "group_id")
+    @ApiModelProperty(value = "组别id", required = false)
+    private Integer groupId;
+    /**
+     * 参数id
+     */
+    @Column(name = "param_id")
+    @ApiModelProperty(value = "参数id", required = false)
+    private Integer paramId;
+    /**
+     * 日志组id
+     */
+    @Column(name = "log_group_id")
+    @ApiModelProperty(value = "日志组id", required = false)
+    private String logGroupId;
+    /**
+     * 来源设备:0手机端 1手表 2长桑h8
+     */
+    @Column(name = "device_type")
+    @ApiModelProperty(value = "来源设备:0手机端 1手表 2长桑h8", required = false)
+    private String deviceType;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Integer getMemberId() {
+        return memberId;
+    }
+
+    public void setMemberId(Integer memberId) {
+        this.memberId = memberId;
+    }
+
+
+    public String getMemberNickname() {
+        return memberNickname;
+    }
+
+    public void setMemberNickname(String memberNickname) {
+        this.memberNickname = memberNickname;
+    }
+
+
+    public Integer getDeviceId() {
+        return deviceId;
+    }
+
+    public void setDeviceId(Integer deviceId) {
+        this.deviceId = deviceId;
+    }
+
+
+    public String getImei() {
+        return imei;
+    }
+
+    public void setImei(String imei) {
+        this.imei = imei;
+    }
+
+
+    public Long getLogTime() {
+        return logTime;
+    }
+
+    public void setLogTime(Long logTime) {
+        this.logTime = logTime;
+    }
+
+
+    public Integer getSettingId() {
+        return settingId;
+    }
+
+    public void setSettingId(Integer settingId) {
+        this.settingId = settingId;
+    }
+
+
+    public Double getVsValue() {
+        return vsValue;
+    }
+
+    public void setVsValue(Double vsValue) {
+        this.vsValue = vsValue;
+    }
+
+
+    public Boolean getAlarm() {
+        return alarm;
+    }
+
+    public void setAlarm(Boolean alarm) {
+        this.alarm = alarm;
+    }
+
+
+    public Integer getGroupId() {
+        return groupId;
+    }
+
+    public void setGroupId(Integer groupId) {
+        this.groupId = groupId;
+    }
+
+
+    public Integer getParamId() {
+        return paramId;
+    }
+
+    public void setParamId(Integer paramId) {
+        this.paramId = paramId;
+    }
+
+
+    public String getLogGroupId() {
+        return logGroupId;
+    }
+
+    public void setLogGroupId(String logGroupId) {
+        this.logGroupId = logGroupId;
+    }
+
+
+    public String getDeviceType() {
+        return deviceType;
+    }
+
+    public void setDeviceType(String deviceType) {
+        this.deviceType = deviceType;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+}

+ 232 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/VitalSignsParamsDO.java

@@ -0,0 +1,232 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "care_vital_signs_params")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class VitalSignsParamsDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * care_vital_signs_groud表的主键
+     */
+    @Column(name = "group_id")
+    @ApiModelProperty(value = "care_vital_signs_groud表的主键", required = false)
+    private Integer groupId;
+    /**
+     * 冗余体征名称
+     */
+    @Column(name = "group_name")
+    @ApiModelProperty(value = "冗余体征名称", required = false)
+    private String groupName;
+    /**
+     * 参数名称。比如:收缩压、舒张压、餐前血糖等
+     */
+    @Column(name = "param_name")
+    @ApiModelProperty(value = "参数名称。比如:收缩压、舒张压、餐前血糖等", required = false)
+    private String paramName;
+    /**
+     * 输入类型。小数、整数
+     */
+    @Column(name = "input_type")
+    @ApiModelProperty(value = "输入类型。小数、整数", required = false)
+    private String inputType;
+    /**
+     * 输入小值限制的起始输入
+     */
+    @Column(name = "min_limit_start")
+    @ApiModelProperty(value = "输入小值限制的起始输入", required = false)
+    private Double minLimitStart;
+    /**
+     * 输入小值限制的标准输入
+     */
+    @Column(name = "min_limit_stand")
+    @ApiModelProperty(value = "输入小值限制的标准输入", required = false)
+    private Double minLimitStand;
+    /**
+     * 输入小值限制的结束输入
+     */
+    @Column(name = "min_limit_end")
+    @ApiModelProperty(value = "输入小值限制的结束输入", required = false)
+    private Double minLimitEnd;
+    /**
+     * 输入大值限制的起始输入
+     */
+    @Column(name = "max_limit_start")
+    @ApiModelProperty(value = "输入大值限制的起始输入", required = false)
+    private Double maxLimitStart;
+    /**
+     * 输入大值限制的标准输入
+     */
+    @Column(name = "max_limit_stand")
+    @ApiModelProperty(value = "输入大值限制的标准输入", required = false)
+    private Double maxLimitStand;
+    /**
+     * 输入大值限制的结束输入
+     */
+    @Column(name = "max_limit_end")
+    @ApiModelProperty(value = "输入大值限制的结束输入", required = false)
+    private Double maxLimitEnd;
+    /**
+     * 排序
+     */
+    @Column(name = "sort")
+    @ApiModelProperty(value = "排序", required = false)
+    private Integer sort;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Integer getGroupId() {
+        return groupId;
+    }
+
+    public void setGroupId(Integer groupId) {
+        this.groupId = groupId;
+    }
+
+
+    public String getGroupName() {
+        return groupName;
+    }
+
+    public void setGroupName(String groupName) {
+        this.groupName = groupName;
+    }
+
+
+    public String getParamName() {
+        return paramName;
+    }
+
+    public void setParamName(String paramName) {
+        this.paramName = paramName;
+    }
+
+
+    public String getInputType() {
+        return inputType;
+    }
+
+    public void setInputType(String inputType) {
+        this.inputType = inputType;
+    }
+
+
+    public Double getMinLimitStart() {
+        return minLimitStart;
+    }
+
+    public void setMinLimitStart(Double minLimitStart) {
+        this.minLimitStart = minLimitStart;
+    }
+
+
+    public Double getMinLimitStand() {
+        return minLimitStand;
+    }
+
+    public void setMinLimitStand(Double minLimitStand) {
+        this.minLimitStand = minLimitStand;
+    }
+
+
+    public Double getMinLimitEnd() {
+        return minLimitEnd;
+    }
+
+    public void setMinLimitEnd(Double minLimitEnd) {
+        this.minLimitEnd = minLimitEnd;
+    }
+
+
+    public Double getMaxLimitStart() {
+        return maxLimitStart;
+    }
+
+    public void setMaxLimitStart(Double maxLimitStart) {
+        this.maxLimitStart = maxLimitStart;
+    }
+
+
+    public Double getMaxLimitStand() {
+        return maxLimitStand;
+    }
+
+    public void setMaxLimitStand(Double maxLimitStand) {
+        this.maxLimitStand = maxLimitStand;
+    }
+
+
+    public Double getMaxLimitEnd() {
+        return maxLimitEnd;
+    }
+
+    public void setMaxLimitEnd(Double maxLimitEnd) {
+        this.maxLimitEnd = maxLimitEnd;
+    }
+
+
+    public Integer getSort() {
+        return sort;
+    }
+
+    public void setSort(Integer sort) {
+        this.sort = sort;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+}

+ 202 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/dos/VitalSignsSettingDO.java

@@ -0,0 +1,202 @@
+package com.wdkl.ncs.android.middleware.model.dos;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.wdkl.ncs.android.middleware.model.annotation.Column;
+import com.wdkl.ncs.android.middleware.model.annotation.Id;
+import com.wdkl.ncs.android.middleware.model.annotation.PrimaryKeyField;
+import com.wdkl.ncs.android.middleware.model.annotation.Table;
+
+import java.io.Serializable;
+
+@Table(name = "care_vital_signs_setting")
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class VitalSignsSettingDO implements Serializable {
+
+    /**
+     * null
+     */
+    @Column(name = "id")
+    @ApiModelProperty(value = "null", required = false)
+    @Id(name = "id")
+    private Integer id;
+    /**
+     * null
+     */
+    @Column(name = "create_time")
+    @ApiModelProperty(value = "null", required = false)
+    private Long createTime;
+    /**
+     * null
+     */
+    @Column(name = "member_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer memberId;
+    /**
+     * null
+     */
+    @Column(name = "member_nickname")
+    @ApiModelProperty(value = "null", required = false)
+    private String memberNickname;
+    /**
+     * null
+     */
+    @Column(name = "group_id")
+    @ApiModelProperty(value = "null", required = false)
+    private Integer groupId;
+    /**
+     * 分组名称
+     */
+    @Column(name = "group_name")
+    @ApiModelProperty(value = "分组名称", required = false)
+    private String groupName;
+    /**
+     * 参数ID
+     */
+    @Column(name = "param_id")
+    @ApiModelProperty(value = "参数ID", required = false)
+    private Integer paramId;
+    /**
+     * 参数名称
+     */
+    @Column(name = "param_name")
+    @ApiModelProperty(value = "参数名称", required = false)
+    private String paramName;
+    /**
+     * 标准范围小值
+     */
+    @Column(name = "min_value")
+    @ApiModelProperty(value = "标准范围小值", required = false)
+    private Double minValue;
+    /**
+     * 标准范围大值
+     */
+    @Column(name = "max_value")
+    @ApiModelProperty(value = "标准范围大值", required = false)
+    private Double maxValue;
+    /**
+     * 逻辑删除:t删除 f没删除
+     */
+    @Column(name = "archived")
+    @ApiModelProperty(value = "逻辑删除:t删除 f没删除", required = false)
+    private Boolean archived;
+    /**
+     * null
+     */
+    @Column(name = "union_id")
+    @ApiModelProperty(value = "null", required = false)
+    private String unionId;
+
+
+    @PrimaryKeyField
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+
+    public Long getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Long createTime) {
+        this.createTime = createTime;
+    }
+
+
+    public Integer getMemberId() {
+        return memberId;
+    }
+
+    public void setMemberId(Integer memberId) {
+        this.memberId = memberId;
+    }
+
+
+    public String getMemberNickname() {
+        return memberNickname;
+    }
+
+    public void setMemberNickname(String memberNickname) {
+        this.memberNickname = memberNickname;
+    }
+
+
+    public Integer getGroupId() {
+        return groupId;
+    }
+
+    public void setGroupId(Integer groupId) {
+        this.groupId = groupId;
+    }
+
+
+    public String getGroupName() {
+        return groupName;
+    }
+
+    public void setGroupName(String groupName) {
+        this.groupName = groupName;
+    }
+
+
+    public Integer getParamId() {
+        return paramId;
+    }
+
+    public void setParamId(Integer paramId) {
+        this.paramId = paramId;
+    }
+
+
+    public String getParamName() {
+        return paramName;
+    }
+
+    public void setParamName(String paramName) {
+        this.paramName = paramName;
+    }
+
+
+    public Double getMinValue() {
+        return minValue;
+    }
+
+    public void setMinValue(Double minValue) {
+        this.minValue = minValue;
+    }
+
+
+    public Double getMaxValue() {
+        return maxValue;
+    }
+
+    public void setMaxValue(Double maxValue) {
+        this.maxValue = maxValue;
+    }
+
+
+    public Boolean getArchived() {
+        return archived;
+    }
+
+    public void setArchived(Boolean archived) {
+        this.archived = archived;
+    }
+
+
+    public String getUnionId() {
+        return unionId;
+    }
+
+    public void setUnionId(String unionId) {
+        this.unionId = unionId;
+    }
+
+}

+ 52 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/FrameBedVO.java

@@ -0,0 +1,52 @@
+package com.wdkl.ncs.android.middleware.model.vo;
+
+
+import com.wdkl.ncs.android.middleware.model.dos.FrameDO;
+
+/**
+ * @program nc
+ * @description: 病床空间结构
+ * @author: Vothin
+ * @create: 2021/03/03 12:01
+ */
+
+public class FrameBedVO{
+
+    private FrameDO frameBed;
+    private Integer deviceCount;
+    private String customerName;
+    private Integer customerMemberId;
+
+
+    public FrameDO getFrameBed() {
+        return frameBed;
+    }
+
+    public void setFrameBed(FrameDO frameBed) {
+        this.frameBed = frameBed;
+    }
+
+    public Integer getDeviceCount() {
+        return deviceCount;
+    }
+
+    public void setDeviceCount(Integer deviceCount) {
+        this.deviceCount = deviceCount;
+    }
+
+    public String getCustomerName() {
+        return customerName;
+    }
+
+    public void setCustomerName(String customerName) {
+        this.customerName = customerName;
+    }
+
+    public Integer getCustomerMemberId() {
+        return customerMemberId;
+    }
+
+    public void setCustomerMemberId(Integer customerMemberId) {
+        this.customerMemberId = customerMemberId;
+    }
+}

+ 47 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/FramePartVO.java

@@ -0,0 +1,47 @@
+package com.wdkl.ncs.android.middleware.model.vo;
+
+
+import com.wdkl.ncs.android.middleware.model.dos.FrameDO;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * @program nc
+ * @description: 科室空间结构
+ * @author: Vothin
+ * @create: 2021/03/03 11:51
+ */
+
+public class FramePartVO implements Serializable {
+
+
+    private FrameDO framePart;
+    private Integer deviceCount;
+    private List<FrameRoomVO> frameRoomVOs;
+
+
+    public FrameDO getFramePart() {
+        return framePart;
+    }
+
+    public void setFramePart(FrameDO framePart) {
+        this.framePart = framePart;
+    }
+
+    public Integer getDeviceCount() {
+        return deviceCount;
+    }
+
+    public void setDeviceCount(Integer deviceCount) {
+        this.deviceCount = deviceCount;
+    }
+
+    public List<FrameRoomVO> getFrameRoomVOs() {
+        return frameRoomVOs;
+    }
+
+    public void setFrameRoomVOs(List<FrameRoomVO> frameRoomVOs) {
+        this.frameRoomVOs = frameRoomVOs;
+    }
+}

+ 63 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/FrameRelationshipVO.java

@@ -0,0 +1,63 @@
+package com.wdkl.ncs.android.middleware.model.vo;
+
+import com.fasterxml.jackson.databind.PropertyNamingStrategy;
+import com.fasterxml.jackson.databind.annotation.JsonNaming;
+import com.wdkl.ncs.android.middleware.model.dos.FrameDO;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * @program nc
+ * @description: 医院空间上下级关系
+ * @author: Vothin
+ * @create: 2021/03/04 12:11
+ */
+
+@ApiModel
+@JsonNaming(value = PropertyNamingStrategy.SnakeCaseStrategy.class)
+public class FrameRelationshipVO extends FrameDO implements Serializable {
+
+    @ApiModelProperty(name = "parent_name", value = "父级名称", required = true)
+    private String parentName;
+
+    /**
+     * 子机构列表
+     */
+    private List<FrameDO> children;
+
+    /**
+     * 是否包含子机构
+     */
+//    @JsonIgnore
+    private Boolean hasChildren;
+
+    public String getParentName() {
+        return parentName;
+    }
+
+    public void setParentName(String parentName) {
+        this.parentName = parentName;
+    }
+
+    public List<FrameDO> getChildren() {
+        return children;
+    }
+
+    public void setChildren(List<FrameDO> children) {
+        this.children = children;
+    }
+
+    public Boolean getHasChildren() {
+        return hasChildren;
+    }
+
+    public void setHasChildren(Boolean hasChildren) {
+        this.hasChildren = hasChildren;
+    }
+
+
+}

+ 46 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/FrameRoomVO.java

@@ -0,0 +1,46 @@
+package com.wdkl.ncs.android.middleware.model.vo;
+
+
+import com.wdkl.ncs.android.middleware.model.dos.FrameDO;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * @program nc
+ * @description: 病房空间结构
+ * @author: Vothin
+ * @create: 2021/03/03 12:01
+ */
+
+public class FrameRoomVO implements Serializable {
+
+    private FrameDO frameRoom;
+    private Integer deviceCount;
+    private List<FrameBedVO> frameBedVOs;
+
+
+    public FrameDO getFrameRoom() {
+        return frameRoom;
+    }
+
+    public void setFrameRoom(FrameDO frameRoom) {
+        this.frameRoom = frameRoom;
+    }
+
+    public Integer getDeviceCount() {
+        return deviceCount;
+    }
+
+    public void setDeviceCount(Integer deviceCount) {
+        this.deviceCount = deviceCount;
+    }
+
+    public List<FrameBedVO> getFrameBedVOs() {
+        return frameBedVOs;
+    }
+
+    public void setFrameBedVOs(List<FrameBedVO> frameBedVOs) {
+        this.frameBedVOs = frameBedVOs;
+    }
+}

+ 181 - 0
middleware/src/main/code/com/wdkl/ncs/android/middleware/model/vo/MemberVO.java

@@ -0,0 +1,181 @@
+package com.wdkl.ncs.android.middleware.model.vo;
+
+
+import com.wdkl.ncs.android.middleware.model.dos.MemberDO;
+
+import io.swagger.annotations.ApiModel;
+
+
+/**
+ * 会员实体
+ *
+ * @author zh
+ * @version v7.0.0
+ * @since v7.0.0
+ * 2018-03-30 14:27:48
+ */
+@ApiModel
+public class MemberVO {
+
+    /**
+     * 会员ID
+     */
+    private Integer uid;
+    /**
+     * 会员登陆用户名
+     */
+    private String username;
+    /**
+     * 真实姓名
+     */
+    private String nickname;
+    /**
+     * 手机号码
+     */
+    private String mobile;
+    /**
+     * token令牌
+     */
+    private String accessToken;
+
+    private Integer accessTokenTimeout;
+
+    /**
+     * 刷新token
+     */
+    private String refreshToken;
+
+    private Integer refreshTokenTimeout;
+
+    /**
+     * 会员头像
+     */
+    private String face;
+
+
+    /**
+     * 最后登陆的店铺Id
+     */
+    private Integer lastLoginShopid;
+
+    /**
+     * 角色id
+     */
+    private Integer roleId;
+    /**
+     * 是否是店主
+     */
+    private Integer founder;
+
+    public MemberVO() {
+
+    }
+
+    public MemberVO(MemberDO member, String accessToken, String refreshToken) {
+        this.uid = member.getMemberId();
+        this.face = member.getFace();
+        this.username = member.getUname();
+        this.nickname = member.getNickname();
+        this.accessToken = accessToken;
+        this.refreshToken = refreshToken;
+        this.mobile = member.getMobile();
+        this.lastLoginShopid=member.getLastLoginShopid();
+
+    }
+
+    public Integer getUid() {
+        return uid;
+    }
+
+    public void setUid(Integer uid) {
+        this.uid = uid;
+    }
+
+    public String getUsername() {
+        return username;
+    }
+
+    public void setUsername(String username) {
+        this.username = username;
+    }
+
+    public String getNickname() {
+        return nickname;
+    }
+
+    public void setNickname(String nickname) {
+        this.nickname = nickname;
+    }
+
+    public String getAccessToken() {
+        return accessToken;
+    }
+
+    public void setAccessToken(String accessToken) {
+        this.accessToken = accessToken;
+    }
+
+    public String getRefreshToken() {
+        return refreshToken;
+    }
+
+    public void setRefreshToken(String refreshToken) {
+        this.refreshToken = refreshToken;
+    }
+
+    public String getFace() {
+        return face;
+    }
+
+    public void setFace(String face) {
+        this.face = face;
+    }
+
+    public String getMobile() {
+        return mobile;
+    }
+
+    public void setMobile(String mobile) {
+        this.mobile = mobile;
+    }
+
+    public Integer getLastLoginShopid() {
+        return lastLoginShopid;
+    }
+
+    public void setLastLoginShopid(Integer lastLoginShopid) {
+        this.lastLoginShopid = lastLoginShopid;
+    }
+
+    public Integer getAccessTokenTimeout() {
+        return accessTokenTimeout;
+    }
+
+    public void setAccessTokenTimeout(Integer accessTokenTimeout) {
+        this.accessTokenTimeout = accessTokenTimeout;
+    }
+
+    public Integer getRefreshTokenTimeout() {
+        return refreshTokenTimeout;
+    }
+
+    public void setRefreshTokenTimeout(Integer refreshTokenTimeout) {
+        this.refreshTokenTimeout = refreshTokenTimeout;
+    }
+
+    public Integer getRoleId() {
+        return roleId;
+    }
+
+    public void setRoleId(Integer roleId) {
+        this.roleId = roleId;
+    }
+
+    public Integer getFounder() {
+        return founder;
+    }
+
+    public void setFounder(Integer founder) {
+        this.founder = founder;
+    }
+}