问卷调查页面开发

master
xiaochanghai 4 months ago
parent 37d35bf3d7
commit e745d9854e
  1. 212
      Model/Tiobon.Web.pdm
  2. 31
      Tiobon.Core.Api/Controllers/Ghre/Ghre_SurveyController.cs
  3. 10
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  4. 8
      Tiobon.Core.Api/Tiobon.Core.xml
  5. 7
      Tiobon.Core.IServices/Ghre/IGhre_SurveyServices.cs
  6. 8
      Tiobon.Core.Model/Base/Ghre/Ghre_Survey.Dto.Base.cs
  7. 2
      Tiobon.Core.Model/Insert/Ghre/Ghre_Survey.Dto.InsertInput.cs
  8. 8
      Tiobon.Core.Model/Models/Ghre/Ghre_Survey.cs
  9. 87
      Tiobon.Core.Services/Ghre/Ghre_SurveyServices.cs
  10. 2
      Tiobon.Core.Services/Ghre/Ghre_UshioPlanServices.cs
  11. 10
      Tiobon.Core/Tiobon.Core.Model.xml
  12. 8
      Tiobon.Core/Tiobon.Core.xml

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<?PowerDesigner AppLocale="UTF16" ID="{C294868A-C3F3-41AD-98CC-78B6D4E0CC40}" Label="" LastModificationDate="1741224657" Name="Tiobon" Objects="3324" Symbols="124" Target="Microsoft SQL Server 2008" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.0.0.2613"?>
<?PowerDesigner AppLocale="UTF16" ID="{C294868A-C3F3-41AD-98CC-78B6D4E0CC40}" Label="" LastModificationDate="1741227403" Name="Tiobon" Objects="3325" Symbols="124" Target="Microsoft SQL Server 2008" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.0.0.2613"?>
<!-- do not edit this file -->
<Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@ -53040,7 +53040,7 @@ Ghra_staff_InsureBase
<a:Code>Ghre_Survey</a:Code>
<a:CreationDate>1741165477</a:CreationDate>
<a:Creator>Administrator</a:Creator>
<a:ModificationDate>1741165786</a:ModificationDate>
<a:ModificationDate>1741227390</a:ModificationDate>
<a:Modifier>Administrator</a:Modifier>
<a:Comment>问卷调查</a:Comment>
<c:Columns>
@ -53238,6 +53238,18 @@ Ghra_staff_InsureBase
<a:DataType>int</a:DataType>
</o:Column>
<o:Column Id="o3356">
<a:ObjectID>63FCD180-CEC3-4CC1-923A-E941719101B2</a:ObjectID>
<a:Name>状态</a:Name>
<a:Code>Status</a:Code>
<a:CreationDate>1741227291</a:CreationDate>
<a:Creator>Administrator</a:Creator>
<a:ModificationDate>1741227403</a:ModificationDate>
<a:Modifier>Administrator</a:Modifier>
<a:Comment>状态</a:Comment>
<a:DataType>nvarchar(32)</a:DataType>
<a:Length>32</a:Length>
</o:Column>
<o:Column Id="o3357">
<a:ObjectID>415121D3-7A37-467D-B284-10C892DE6410</a:ObjectID>
<a:Name>备注</a:Name>
<a:Code>RemarkSz</a:Code>
@ -53252,7 +53264,7 @@ Ghra_staff_InsureBase
<o:PhysicalDomain Ref="o279"/>
</c:Domain>
</o:Column>
<o:Column Id="o3357">
<o:Column Id="o3358">
<a:ObjectID>5444AA0A-E823-4B3B-B4E7-41325D041C8C</a:ObjectID>
<a:Name>默认标志</a:Name>
<a:Code>IsDefault</a:Code>
@ -53267,7 +53279,7 @@ Ghra_staff_InsureBase
<o:PhysicalDomain Ref="o281"/>
</c:Domain>
</o:Column>
<o:Column Id="o3358">
<o:Column Id="o3359">
<a:ObjectID>D2683402-2136-4A60-9EE2-F4715633ADE3</a:ObjectID>
<a:Name>删除标志</a:Name>
<a:Code>IsEnable</a:Code>
@ -53282,7 +53294,7 @@ Ghra_staff_InsureBase
<o:PhysicalDomain Ref="o281"/>
</c:Domain>
</o:Column>
<o:Column Id="o3359">
<o:Column Id="o3360">
<a:ObjectID>34B4A2B4-C827-40F7-BACC-C731A5E5FA1B</a:ObjectID>
<a:Name>预留字段1</a:Name>
<a:Code>Reverse1</a:Code>
@ -53294,7 +53306,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3360">
<o:Column Id="o3361">
<a:ObjectID>A287E537-9278-4259-9CCA-4FA964980688</a:ObjectID>
<a:Name>预留字段2</a:Name>
<a:Code>Reverse2</a:Code>
@ -53306,7 +53318,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3361">
<o:Column Id="o3362">
<a:ObjectID>4C650F84-1178-4B33-9F8D-DA3DF6E0EC4B</a:ObjectID>
<a:Name>预留字段3</a:Name>
<a:Code>Reverse3</a:Code>
@ -53318,7 +53330,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3362">
<o:Column Id="o3363">
<a:ObjectID>7E4BBF27-8254-42F9-901D-C2419D50A85E</a:ObjectID>
<a:Name>预留字段4</a:Name>
<a:Code>Reverse4</a:Code>
@ -53330,7 +53342,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3363">
<o:Column Id="o3364">
<a:ObjectID>1D420085-F39D-47B8-9EDC-FC35C6BF5BD9</a:ObjectID>
<a:Name>预留字段5</a:Name>
<a:Code>Reverse5</a:Code>
@ -53342,7 +53354,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3364">
<o:Column Id="o3365">
<a:ObjectID>1EDCC3F3-7B99-4A33-B4CA-26090F12BE0F</a:ObjectID>
<a:Name>预留字段6</a:Name>
<a:Code>Reverse6</a:Code>
@ -53354,7 +53366,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3365">
<o:Column Id="o3366">
<a:ObjectID>5DCF521C-80F3-4C89-8A04-5359C5B621D1</a:ObjectID>
<a:Name>预留字段7</a:Name>
<a:Code>Reverse7</a:Code>
@ -53366,7 +53378,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3366">
<o:Column Id="o3367">
<a:ObjectID>2C24C8F1-72A6-42E2-AF49-558AFAE4DEF9</a:ObjectID>
<a:Name>预留字段8</a:Name>
<a:Code>Reverse8</a:Code>
@ -53378,7 +53390,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3367">
<o:Column Id="o3368">
<a:ObjectID>DE7F61F5-70FD-41DD-B41E-9DA977F3CC23</a:ObjectID>
<a:Name>预留字段9</a:Name>
<a:Code>Reverse9</a:Code>
@ -53390,7 +53402,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3368">
<o:Column Id="o3369">
<a:ObjectID>EA00D525-532D-46F8-81A8-1ED66D516791</a:ObjectID>
<a:Name>预留字段10</a:Name>
<a:Code>Reverse10</a:Code>
@ -53402,7 +53414,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(1000)</a:DataType>
<a:Length>1000</a:Length>
</o:Column>
<o:Column Id="o3369">
<o:Column Id="o3370">
<a:ObjectID>A0554CC1-B3B4-4269-BCFB-4B51B73F68D6</a:ObjectID>
<a:Name>预留字段I1</a:Name>
<a:Code>ReverseI1</a:Code>
@ -53414,7 +53426,7 @@ Ghra_staff_InsureBase
<a:DefaultValue>0</a:DefaultValue>
<a:DataType>int</a:DataType>
</o:Column>
<o:Column Id="o3370">
<o:Column Id="o3371">
<a:ObjectID>11256DFB-928D-4E85-9D18-FB1678AEAC3D</a:ObjectID>
<a:Name>预留字段I2</a:Name>
<a:Code>ReverseI2</a:Code>
@ -53428,7 +53440,7 @@ Ghra_staff_InsureBase
</o:Column>
</c:Columns>
<c:Keys>
<o:Key Id="o3371">
<o:Key Id="o3372">
<a:ObjectID>5911C7C6-F151-42A4-A4DD-5E014FA9BC96</a:ObjectID>
<a:Name>Key_1</a:Name>
<a:Code>Key_1</a:Code>
@ -53442,10 +53454,10 @@ Ghra_staff_InsureBase
</o:Key>
</c:Keys>
<c:PrimaryKey>
<o:Key Ref="o3371"/>
<o:Key Ref="o3372"/>
</c:PrimaryKey>
<c:ClusterObject>
<o:Key Ref="o3371"/>
<o:Key Ref="o3372"/>
</c:ClusterObject>
</o:Table>
</c:Tables>
@ -53469,7 +53481,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o324"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3372">
<o:ReferenceJoin Id="o3373">
<a:ObjectID>7F0DCA7C-274D-48A8-B3D8-0FD7B707AFC2</a:ObjectID>
<a:CreationDate>1714101292</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53503,7 +53515,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o295"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3373">
<o:ReferenceJoin Id="o3374">
<a:ObjectID>D23C452C-4BB6-4C2A-AB2E-E8434D958A77</a:ObjectID>
<a:CreationDate>1714101335</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53518,7 +53530,7 @@ Ghra_staff_InsureBase
</o:ReferenceJoin>
</c:Joins>
</o:Reference>
<o:Reference Id="o3374">
<o:Reference Id="o3375">
<a:ObjectID>55EBFC84-83AC-4EDF-BADD-29FA719652D1</a:ObjectID>
<a:Name>Reference_13</a:Name>
<a:Code>Reference_13</a:Code>
@ -53537,7 +53549,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o295"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3375">
<o:ReferenceJoin Id="o3376">
<a:ObjectID>D4016F9D-5631-4F9E-A70D-D42133A4EBB7</a:ObjectID>
<a:CreationDate>1714107872</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53571,7 +53583,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o587"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3376">
<o:ReferenceJoin Id="o3377">
<a:ObjectID>BEBA3346-CCC6-41D9-B95B-12B8F81188BF</a:ObjectID>
<a:CreationDate>1714108449</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53605,7 +53617,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o670"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3377">
<o:ReferenceJoin Id="o3378">
<a:ObjectID>FC69BEF9-F863-4A65-903E-CB2850197526</a:ObjectID>
<a:CreationDate>1714109221</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53639,7 +53651,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o711"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3378">
<o:ReferenceJoin Id="o3379">
<a:ObjectID>ACE0AB02-0D27-4F1C-BF71-738C20DF96C2</a:ObjectID>
<a:CreationDate>1714120556</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53673,7 +53685,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o536"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3379">
<o:ReferenceJoin Id="o3380">
<a:ObjectID>B95672ED-9976-4742-9FFC-52B326620682</a:ObjectID>
<a:CreationDate>1715565535</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53707,7 +53719,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o536"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3380">
<o:ReferenceJoin Id="o3381">
<a:ObjectID>B6E89235-A6E0-460D-9228-DCA8C58EE2AD</a:ObjectID>
<a:CreationDate>1715570661</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53741,7 +53753,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o846"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3381">
<o:ReferenceJoin Id="o3382">
<a:ObjectID>5D4938F3-7934-4F74-891C-97DC9DC47B1B</a:ObjectID>
<a:CreationDate>1716798640</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53775,7 +53787,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o670"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3382">
<o:ReferenceJoin Id="o3383">
<a:ObjectID>179079CB-7169-4B19-A07A-A61C331F59CD</a:ObjectID>
<a:CreationDate>1716876897</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53809,7 +53821,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o670"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3383">
<o:ReferenceJoin Id="o3384">
<a:ObjectID>DD965546-2361-4301-82D7-446B823BDCFD</a:ObjectID>
<a:CreationDate>1717481682</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53843,7 +53855,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o974"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3384">
<o:ReferenceJoin Id="o3385">
<a:ObjectID>E78B14FB-C2C3-4DCA-A3B4-CA471817B9FC</a:ObjectID>
<a:CreationDate>1717726229</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53877,7 +53889,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o974"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3385">
<o:ReferenceJoin Id="o3386">
<a:ObjectID>8C71D6B9-780B-4547-ADFD-986E619F4DCD</a:ObjectID>
<a:CreationDate>1719381914</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53911,7 +53923,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1031"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3386">
<o:ReferenceJoin Id="o3387">
<a:ObjectID>EB9D1A5A-99AB-44AD-9B1A-D45E66C0CFDE</a:ObjectID>
<a:CreationDate>1719468257</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53945,7 +53957,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o622"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3387">
<o:ReferenceJoin Id="o3388">
<a:ObjectID>ACF1454B-2C3F-40E5-ADC5-4A48787EB937</a:ObjectID>
<a:CreationDate>1720488320</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53979,7 +53991,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1410"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3388">
<o:ReferenceJoin Id="o3389">
<a:ObjectID>55351100-6B8C-411A-838F-ADF17D7249C7</a:ObjectID>
<a:CreationDate>1721372650</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -53994,7 +54006,7 @@ Ghra_staff_InsureBase
</o:ReferenceJoin>
</c:Joins>
</o:Reference>
<o:Reference Id="o3389">
<o:Reference Id="o3390">
<a:ObjectID>465DBD55-7683-4A4B-91D3-B7019ED619F0</a:ObjectID>
<a:Name>Reference_114</a:Name>
<a:Code>Reference_114</a:Code>
@ -54013,7 +54025,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1336"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3390">
<o:ReferenceJoin Id="o3391">
<a:ObjectID>CE1833FA-A783-4FAC-87BF-AA0FF8008532</a:ObjectID>
<a:CreationDate>1721280283</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54047,7 +54059,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1410"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3391">
<o:ReferenceJoin Id="o3392">
<a:ObjectID>18F2EFF3-BD41-4F96-96C8-D8B15C7E2644</a:ObjectID>
<a:CreationDate>1721372603</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54081,7 +54093,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1410"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3392">
<o:ReferenceJoin Id="o3393">
<a:ObjectID>F7ECB7BC-BA8B-4606-B521-999C20FD5C43</a:ObjectID>
<a:CreationDate>1722318917</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54115,7 +54127,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1031"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3393">
<o:ReferenceJoin Id="o3394">
<a:ObjectID>6764C448-6B6B-4DD7-AED9-8E74CDD1261A</a:ObjectID>
<a:CreationDate>1727335554</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54149,7 +54161,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o381"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3394">
<o:ReferenceJoin Id="o3395">
<a:ObjectID>C8D69BA0-B62F-4A3E-981C-59D5FC0C2A03</a:ObjectID>
<a:CreationDate>1727336760</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54183,7 +54195,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1450"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3395">
<o:ReferenceJoin Id="o3396">
<a:ObjectID>09B3F4FA-149B-4BB2-8D4C-CB9E05153125</a:ObjectID>
<a:CreationDate>1727336895</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54217,7 +54229,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1672"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3396">
<o:ReferenceJoin Id="o3397">
<a:ObjectID>D0D47F43-60D2-4012-A1C6-7EE1F23B2B48</a:ObjectID>
<a:CreationDate>1727337857</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54232,7 +54244,7 @@ Ghra_staff_InsureBase
</o:ReferenceJoin>
</c:Joins>
</o:Reference>
<o:Reference Id="o3397">
<o:Reference Id="o3398">
<a:ObjectID>E261580B-7706-444D-9E7B-6A1A5968579B</a:ObjectID>
<a:Name>Reference_24</a:Name>
<a:Code>Reference_24</a:Code>
@ -54251,7 +54263,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1768"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3398">
<o:ReferenceJoin Id="o3399">
<a:ObjectID>A9F8F17E-368A-42BA-B603-19B2CAF61361</a:ObjectID>
<a:CreationDate>1728532955</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54285,7 +54297,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1736"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3399">
<o:ReferenceJoin Id="o3400">
<a:ObjectID>88DE8617-23F2-4075-A9EB-3AEA05F12872</a:ObjectID>
<a:CreationDate>1728532977</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54319,7 +54331,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1804"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3400">
<o:ReferenceJoin Id="o3401">
<a:ObjectID>36AE3FE2-B4E5-4FF7-ADD1-93D1ABD487CD</a:ObjectID>
<a:CreationDate>1728533087</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54334,7 +54346,7 @@ Ghra_staff_InsureBase
</o:ReferenceJoin>
</c:Joins>
</o:Reference>
<o:Reference Id="o3401">
<o:Reference Id="o3402">
<a:ObjectID>AB9D9DC4-987C-4E4B-9BD3-35091CDBA380</a:ObjectID>
<a:Name>Reference_27</a:Name>
<a:Code>Reference_27</a:Code>
@ -54353,7 +54365,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1842"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3402">
<o:ReferenceJoin Id="o3403">
<a:ObjectID>E2D02611-09C9-42E2-AA43-22E820AF219C</a:ObjectID>
<a:CreationDate>1728626387</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54387,7 +54399,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1768"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3403">
<o:ReferenceJoin Id="o3404">
<a:ObjectID>62F35C8E-87DA-43C4-AAE9-A47D112F8E0A</a:ObjectID>
<a:CreationDate>1728540045</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54421,7 +54433,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1804"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3404">
<o:ReferenceJoin Id="o3405">
<a:ObjectID>3759DC14-1A7D-4121-AAE1-58CE6813A0AA</a:ObjectID>
<a:CreationDate>1728541044</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54455,7 +54467,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2027"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3405">
<o:ReferenceJoin Id="o3406">
<a:ObjectID>1791558D-852F-437C-97F6-7F9D11EE26DB</a:ObjectID>
<a:CreationDate>1729662916</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54489,7 +54501,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2027"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3406">
<o:ReferenceJoin Id="o3407">
<a:ObjectID>00049FDC-8297-463E-9347-A571E3AB9C9E</a:ObjectID>
<a:CreationDate>1729663415</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54523,7 +54535,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2027"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3407">
<o:ReferenceJoin Id="o3408">
<a:ObjectID>B7B6FBF6-DC05-4490-8656-A5DEAF831781</a:ObjectID>
<a:CreationDate>1730250294</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54557,7 +54569,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2027"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3408">
<o:ReferenceJoin Id="o3409">
<a:ObjectID>A0C97DD9-1C72-4A18-9FEE-EE6A9AEF21F8</a:ObjectID>
<a:CreationDate>1730336852</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54591,7 +54603,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2027"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3409">
<o:ReferenceJoin Id="o3410">
<a:ObjectID>39FD6B5F-C473-44DF-969E-D851D388EBAE</a:ObjectID>
<a:CreationDate>1730340808</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54625,7 +54637,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2027"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3410">
<o:ReferenceJoin Id="o3411">
<a:ObjectID>C4EECAD7-F267-4702-A253-CA499692A254</a:ObjectID>
<a:CreationDate>1730346502</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54659,7 +54671,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2475"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3411">
<o:ReferenceJoin Id="o3412">
<a:ObjectID>3EBD04DF-C924-4032-982C-CA9EF3B72E39</a:ObjectID>
<a:CreationDate>1731478017</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54693,7 +54705,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2475"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3412">
<o:ReferenceJoin Id="o3413">
<a:ObjectID>DE13B6DD-B49E-4F3E-8AF7-BEB535EE3CC6</a:ObjectID>
<a:CreationDate>1731478076</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54727,7 +54739,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2475"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3413">
<o:ReferenceJoin Id="o3414">
<a:ObjectID>28C77E11-7423-4D63-9053-A5D40E7940AF</a:ObjectID>
<a:CreationDate>1731491451</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54761,7 +54773,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2538"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3414">
<o:ReferenceJoin Id="o3415">
<a:ObjectID>76F5B648-63C3-466C-B313-B38E0519B3BA</a:ObjectID>
<a:CreationDate>1733211832</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54795,7 +54807,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2778"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3415">
<o:ReferenceJoin Id="o3416">
<a:ObjectID>D2B7DF8F-ACF7-4237-B814-FA662272F871</a:ObjectID>
<a:CreationDate>1733369860</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54829,7 +54841,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2852"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3416">
<o:ReferenceJoin Id="o3417">
<a:ObjectID>F4431A85-1466-4A29-9D1B-A82B70F2F5D5</a:ObjectID>
<a:CreationDate>1733909650</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54863,7 +54875,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2423"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3417">
<o:ReferenceJoin Id="o3418">
<a:ObjectID>3C15C987-A6E8-4FAA-AFB6-1CCBC250460D</a:ObjectID>
<a:CreationDate>1734490374</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54897,7 +54909,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o1300"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3418">
<o:ReferenceJoin Id="o3419">
<a:ObjectID>9B53094C-D4A4-4269-A8F0-B03AC9CEA70F</a:ObjectID>
<a:CreationDate>1737080391</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54912,7 +54924,7 @@ Ghra_staff_InsureBase
</o:ReferenceJoin>
</c:Joins>
</o:Reference>
<o:Reference Id="o3419">
<o:Reference Id="o3420">
<a:ObjectID>C4514A46-AF20-4937-902F-A02C91F50231</a:ObjectID>
<a:Name>Reference_44</a:Name>
<a:Code>Reference_44</a:Code>
@ -54931,7 +54943,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2623"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3420">
<o:ReferenceJoin Id="o3421">
<a:ObjectID>22844E1B-552F-4914-8997-D9056E9D9574</a:ObjectID>
<a:CreationDate>1737085753</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54965,7 +54977,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o2969"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3421">
<o:ReferenceJoin Id="o3422">
<a:ObjectID>0457880B-22F4-48EC-84E0-13C055FDBA46</a:ObjectID>
<a:CreationDate>1737086327</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -54999,7 +55011,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o3031"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3422">
<o:ReferenceJoin Id="o3423">
<a:ObjectID>5A235CB8-FEFB-41E2-B379-421F28BC171B</a:ObjectID>
<a:CreationDate>1738913762</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -55033,7 +55045,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o3031"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3423">
<o:ReferenceJoin Id="o3424">
<a:ObjectID>1D7919EA-4B45-4026-8981-20ABBE3392A1</a:ObjectID>
<a:CreationDate>1738915647</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -55067,7 +55079,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o3031"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3424">
<o:ReferenceJoin Id="o3425">
<a:ObjectID>33416204-3836-40D1-AEA9-BF78C4576311</a:ObjectID>
<a:CreationDate>1738915648</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -55101,7 +55113,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o3031"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3425">
<o:ReferenceJoin Id="o3426">
<a:ObjectID>F631F0DE-0C6E-4534-8868-FFB7A5CE94B9</a:ObjectID>
<a:CreationDate>1738916095</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -55135,7 +55147,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o3031"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3426">
<o:ReferenceJoin Id="o3427">
<a:ObjectID>F5085F08-E406-43D8-A1A8-81A9189C0250</a:ObjectID>
<a:CreationDate>1738916098</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -55150,7 +55162,7 @@ Ghra_staff_InsureBase
</o:ReferenceJoin>
</c:Joins>
</o:Reference>
<o:Reference Id="o3427">
<o:Reference Id="o3428">
<a:ObjectID>34714A40-5F9A-4B8C-90C8-33DA4909C40F</a:ObjectID>
<a:Name>Reference_51</a:Name>
<a:Code>Reference_51</a:Code>
@ -55169,7 +55181,7 @@ Ghra_staff_InsureBase
<o:Key Ref="o3215"/>
</c:ParentKey>
<c:Joins>
<o:ReferenceJoin Id="o3428">
<o:ReferenceJoin Id="o3429">
<a:ObjectID>B20D9464-D8C0-404D-9C55-6A16F6CB04BB</a:ObjectID>
<a:CreationDate>1738977084</a:CreationDate>
<a:Creator>Administrator</a:Creator>
@ -55191,7 +55203,7 @@ Ghra_staff_InsureBase
<o:PhysicalDiagram Ref="o4"/>
</c:DefaultDiagram>
<c:Users>
<o:User Id="o3429">
<o:User Id="o3430">
<a:ObjectID>A1DD77B6-E48E-4C9D-947D-D42E3C5240C2</a:ObjectID>
<a:Name>dbo</a:Name>
<a:Code>dbo</a:Code>
@ -55204,7 +55216,7 @@ Ghra_staff_InsureBase
</a:ExtendedAttributesText>
<c:ExtendedCollections>
<o:ExtendedCollection Id="o3430">
<o:ExtendedCollection Id="o3431">
<a:ObjectID>C012A467-0031-4F3C-9D9D-13408491E147</a:ObjectID>
<a:ExtendedBaseCollection.CollectionName>DefaultSchema</a:ExtendedBaseCollection.CollectionName>
<a:CreationDate>1597196432</a:CreationDate>
@ -55212,12 +55224,12 @@ Ghra_staff_InsureBase
<a:ModificationDate>1597196433</a:ModificationDate>
<a:Modifier>ttsoftxch</a:Modifier>
<c:Content>
<o:User Ref="o3431"/>
<o:User Ref="o3432"/>
</c:Content>
</o:ExtendedCollection>
</c:ExtendedCollections>
</o:User>
<o:User Id="o3431">
<o:User Id="o3432">
<a:ObjectID>41D2B655-5319-49C5-9BA6-133BB8B097CA</a:ObjectID>
<a:Name>dbo</a:Name>
<a:Code>dbo</a:Code>
@ -55229,7 +55241,7 @@ Ghra_staff_InsureBase
</o:User>
</c:Users>
<c:Domains>
<o:PhysicalDomain Id="o3432">
<o:PhysicalDomain Id="o3433">
<a:ObjectID>2153E033-C4DC-4F90-B2F4-3B0F44BD33D5</a:ObjectID>
<a:Name>文本</a:Name>
<a:Code>TEXT</a:Code>
@ -55239,7 +55251,7 @@ Ghra_staff_InsureBase
<a:Modifier>ttsoftxch</a:Modifier>
<a:DataType>text</a:DataType>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3433">
<o:PhysicalDomain Id="o3434">
<a:ObjectID>AC8799D0-82CA-4B70-ADAC-18D8797720A9</a:ObjectID>
<a:Name>图片</a:Name>
<a:Code>IMAGE</a:Code>
@ -55249,7 +55261,7 @@ Ghra_staff_InsureBase
<a:Modifier>Administrator</a:Modifier>
<a:DataType>image</a:DataType>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3434">
<o:PhysicalDomain Id="o3435">
<a:ObjectID>DEC04470-B84A-413E-9B2A-C265C5506182</a:ObjectID>
<a:Name>加密</a:Name>
<a:Code>ENCRYPT_STRING</a:Code>
@ -55260,7 +55272,7 @@ Ghra_staff_InsureBase
<a:DataType>nvarchar(256)</a:DataType>
<a:Length>256</a:Length>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3435">
<o:PhysicalDomain Id="o3436">
<a:ObjectID>538C6297-7080-43C1-9455-AD6516B6FBB2</a:ObjectID>
<a:Name>数字</a:Name>
<a:Code>NUMBER</a:Code>
@ -55272,7 +55284,7 @@ Ghra_staff_InsureBase
<a:Length>20</a:Length>
<a:Precision>6</a:Precision>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3436">
<o:PhysicalDomain Id="o3437">
<a:ObjectID>AF15A9FA-052F-43E5-9102-57F195CBCFDE</a:ObjectID>
<a:Name>类别</a:Name>
<a:Code>TYPE</a:Code>
@ -55283,7 +55295,7 @@ Ghra_staff_InsureBase
<a:DataType>varchar(32)</a:DataType>
<a:Length>32</a:Length>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3437">
<o:PhysicalDomain Id="o3438">
<a:ObjectID>D0936140-81BD-463E-B0ED-FE3F86828A2C</a:ObjectID>
<a:Name>特长字符串</a:Name>
<a:Code>LONG_LONG_STRING</a:Code>
@ -55294,7 +55306,7 @@ Ghra_staff_InsureBase
<a:DataType>varchar(256)</a:DataType>
<a:Length>256</a:Length>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3438">
<o:PhysicalDomain Id="o3439">
<a:ObjectID>5FBDAFFC-EA04-407B-877F-58752C2E736C</a:ObjectID>
<a:Name>金额</a:Name>
<a:Code>AMOUNT</a:Code>
@ -55306,7 +55318,7 @@ Ghra_staff_InsureBase
<a:Length>20</a:Length>
<a:Precision>6</a:Precision>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3439">
<o:PhysicalDomain Id="o3440">
<a:ObjectID>F461E3FD-0A64-4712-BC09-C0BA3C248E5B</a:ObjectID>
<a:Name>描述</a:Name>
<a:Code>DESCRIPTION</a:Code>
@ -55317,7 +55329,7 @@ Ghra_staff_InsureBase
<a:DataType>varchar(4000)</a:DataType>
<a:Length>4000</a:Length>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3440">
<o:PhysicalDomain Id="o3441">
<a:ObjectID>703A2917-B6C4-4BC6-B2CB-6AB8E2B49D30</a:ObjectID>
<a:Name>短字符串</a:Name>
<a:Code>SHORT_STRING</a:Code>
@ -55328,7 +55340,7 @@ Ghra_staff_InsureBase
<a:DataType>varchar(64)</a:DataType>
<a:Length>64</a:Length>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3441">
<o:PhysicalDomain Id="o3442">
<a:ObjectID>89A476D2-A1C0-428C-9875-26A50B7AFE1A</a:ObjectID>
<a:Name>长字符串</a:Name>
<a:Code>LONG_STRING</a:Code>
@ -55350,7 +55362,7 @@ Ghra_staff_InsureBase
<a:DataType>varchar(2000)</a:DataType>
<a:Length>2000</a:Length>
<c:PhysicalDomain.Owner>
<o:User Ref="o3431"/>
<o:User Ref="o3432"/>
</c:PhysicalDomain.Owner>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o281">
@ -55364,7 +55376,7 @@ Ghra_staff_InsureBase
<a:DataType>char(1)</a:DataType>
<a:Length>1</a:Length>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3442">
<o:PhysicalDomain Id="o3443">
<a:ObjectID>82662C91-618F-4022-B9CD-1A431DC84A0A</a:ObjectID>
<a:Name>名称</a:Name>
<a:Code>NAME</a:Code>
@ -55385,7 +55397,7 @@ Ghra_staff_InsureBase
<a:Modifier>Administrator</a:Modifier>
<a:DataType>int</a:DataType>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3443">
<o:PhysicalDomain Id="o3444">
<a:ObjectID>77F6BD58-5A9D-44F7-988C-76608A3F38B5</a:ObjectID>
<a:Name>代码</a:Name>
<a:Code>CODE</a:Code>
@ -55417,7 +55429,7 @@ Ghra_staff_InsureBase
<a:DataType>varchar(32)</a:DataType>
<a:Length>32</a:Length>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3444">
<o:PhysicalDomain Id="o3445">
<a:ObjectID>DA200725-BFB0-4351-9C3E-DC30C036538E</a:ObjectID>
<a:Name>STATUS</a:Name>
<a:Code>STATUS</a:Code>
@ -55428,7 +55440,7 @@ Ghra_staff_InsureBase
<a:DataType>varchar(32)</a:DataType>
<a:Length>32</a:Length>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3445">
<o:PhysicalDomain Id="o3446">
<a:ObjectID>CB2F08D6-BE17-4046-B94A-4FD00EDA9015</a:ObjectID>
<a:Name>文件</a:Name>
<a:Code>FILE</a:Code>
@ -55438,7 +55450,7 @@ Ghra_staff_InsureBase
<a:Modifier>feipeng</a:Modifier>
<a:DataType>image</a:DataType>
</o:PhysicalDomain>
<o:PhysicalDomain Id="o3446">
<o:PhysicalDomain Id="o3447">
<a:ObjectID>7CC45A5C-15C8-4CA8-BBEB-66FE3DAB482F</a:ObjectID>
<a:Name>字符串512</a:Name>
<a:Code>STRING_512</a:Code>
@ -55451,7 +55463,7 @@ Ghra_staff_InsureBase
</o:PhysicalDomain>
</c:Domains>
<c:DefaultGroups>
<o:Group Id="o3447">
<o:Group Id="o3448">
<a:ObjectID>B41C21E8-76E9-4031-8EF0-34743E5525C5</a:ObjectID>
<a:Name>PUBLIC</a:Name>
<a:Code>PUBLIC</a:Code>
@ -55460,13 +55472,13 @@ Ghra_staff_InsureBase
<a:ModificationDate>1597196433</a:ModificationDate>
<a:Modifier>ttsoftxch</a:Modifier>
<c:Group.Users>
<o:User Ref="o3429"/>
<o:User Ref="o3431"/>
<o:User Ref="o3430"/>
<o:User Ref="o3432"/>
</c:Group.Users>
</o:Group>
</c:DefaultGroups>
<c:TargetModels>
<o:TargetModel Id="o3448">
<o:TargetModel Id="o3449">
<a:ObjectID>02EF92C9-49BF-45C7-934A-23BA290D5595</a:ObjectID>
<a:Name>Microsoft SQL Server 2008</a:Name>
<a:Code>MSSQLSRV2008</a:Code>

@ -11,4 +11,35 @@ public class Ghre_SurveyController : BaseController<IGhre_SurveyServices, Ghre_S
public Ghre_SurveyController(IGhre_SurveyServices service) : base(service)
{
}
#region 查询
/// <summary>
/// 根据条件查询数据
/// </summary>
/// <param name="body">条件</param>
/// <param name="status">status</param>
/// <returns></returns>
[HttpPost, Route("QueryList/{status}")]
public async Task<ServicePageResult<Ghre_SurveyDto>> QueryByStatus([FromBody] QueryBody body, string status)
{
return await _service.QueryFilterPage(body, $"Status ='{status}'");
}
#endregion
#region 状态修改
[HttpPost("UpdateStatus/{status}")]
public async Task<ServiceResult> UpdateStatus(string status, [FromBody] InsertGhre_SurveyInput input)
{
return await _service.UpdateStatus(input, status);
}
#endregion
#region 新增
[HttpPost("Insert/{status}")]
public async Task<ServiceResult<long>> InsertByStatus([FromBody] InsertGhre_SurveyInput insertModel, string status)
{
return await _service.InsertByStatus(insertModel, status);
}
#endregion
}

@ -7500,6 +7500,11 @@
排序
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_SurveyBase.Status">
<summary>
状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_SurveyBase.RemarkSz">
<summary>
备注
@ -22986,6 +22991,11 @@
排序
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_Survey.Status">
<summary>
状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_Survey.RemarkSz">
<summary>
备注

@ -1365,6 +1365,14 @@
问卷调查(Controller)
</summary>
</member>
<member name="M:Tiobon.Core.Api.Controllers.Ghre_SurveyController.QueryByStatus(Tiobon.Core.Common.QueryBody,System.String)">
<summary>
根据条件查询数据
</summary>
<param name="body">条件</param>
<param name="status">status</param>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghre_TeacherAttachmentController">
<summary>
Ghre_TeacherAttachment(Controller)

@ -1,8 +1,13 @@
namespace Tiobon.Core.IServices;
using Tiobon.Core.Model;
namespace Tiobon.Core.IServices;
/// <summary>
/// 问卷调查(自定义服务接口)
/// </summary>
public interface IGhre_SurveyServices : IBaseServices<Ghre_Survey, Ghre_SurveyDto, InsertGhre_SurveyInput, EditGhre_SurveyInput>
{
Task<ServiceResult<long>> InsertByStatus(InsertGhre_SurveyInput insertModel, string status);
Task<ServiceResult> UpdateStatus(InsertGhre_SurveyInput input, string status);
}

@ -6,7 +6,7 @@
*
* Ver
*
*V0.01 2025/3/5 17:20:04 SimonHsiao
*V0.01 2025/3/6 10:27:19 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
@ -52,6 +52,12 @@ public class Ghre_SurveyBase
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")]
public string Status { get; set; }
/// <summary>
/// 备注
/// </summary>

@ -23,4 +23,6 @@ namespace Tiobon.Core.Model.Models;
/// </summary>
public class InsertGhre_SurveyInput : Ghre_SurveyBase
{
public List<long> Ids { get; set; }
}

@ -6,7 +6,7 @@
*
* Ver
*
*V0.01 2025/3/5 17:20:04 SimonHsiao
*V0.01 2025/3/6 10:27:19 SimonHsiao
*
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
*
@ -53,6 +53,12 @@ public class Ghre_Survey : BasePoco
/// </summary>
public int? SortNo { get; set; }
/// <summary>
/// 状态
/// </summary>
[Display(Name = "Status"), Description("状态"), MaxLength(32, ErrorMessage = "状态 不能超过 32 个字符")]
public string Status { get; set; }
/// <summary>
/// 备注
/// </summary>

@ -12,4 +12,91 @@ public class Ghre_SurveyServices : BaseServices<Ghre_Survey, Ghre_SurveyDto, Ins
base.BaseDal = dal;
base._caching = caching;
}
public override async Task<ServicePageResult<Ghre_SurveyDto>> QueryFilterPage(QueryBody filter, string condition, bool? IsEnable = true)
{
var result = await base.QueryFilterPage(filter, condition, IsEnable);
int? year = null;
if (filter.jsonParam != null)
foreach (JProperty jProperty in filter.jsonParam.Properties())
{
var name = jProperty.Name;
var value = jProperty.Value.ToString();
if (name == "Year")
{
var jsonParam = JsonHelper.JsonToObj<JsonParam>(value);
year = jsonParam.columnValue.ObjToInt();
}
}
var DT_TableDataT1 = result.result.DT_TableDataT1;
return result;
}
public override async Task<long> Add(InsertGhre_SurveyInput entity)
{
var result = await base.Add(entity);
return result;
}
public override async Task<bool> Update(long Id, EditGhre_SurveyInput editModel)
{
var result = await base.Update(Id, editModel, null, ["Status"]);
return result;
}
public override async Task<ServiceFormResult<Ghre_SurveyDto>> QueryForm(QueryForm body)
{
var result = await base.QueryForm(body);
return result;
}
public async Task<ServiceResult<long>> InsertByStatus(InsertGhre_SurveyInput insertModel, string status)
{
var data = ServiceResult<long>.OprateSuccess("新增成功", 0);
insertModel.Status = status;
var id = await Add(insertModel);
data.Success = id > 0;
if (data.Success)
data.Data = id;
else
return ServiceResult<long>.OprateFailed("失败!");
return data;
}
public async Task<ServiceResult> UpdateStatus(InsertGhre_SurveyInput input, string status)
{
HttpRequest request = UserContext.Context.Request;
var api = request.Path.ObjToString().TrimEnd('/').ToLower();
var ip = GetUserIp(UserContext.Context);
var entities = new List<Ghre_Survey>();
foreach (var id in input.Ids)
{
if (!BaseDal.Any(id))
continue;
var entity = await BaseDal.QueryById(id);
entity.UpdateIP = ip;
entity.UpdateProg = api;
entity.Status = status;
entities.Add(entity);
}
var result = await BaseDal.Update(entities);
return ServiceResult.OprateSuccess("执行成功!");
}
}

@ -98,8 +98,6 @@ public class Ghre_UshioPlanServices : BaseServices<Ghre_UshioPlan, Ghre_UshioPla
return result;
}
public override async Task<long> Add(InsertGhre_UshioPlanInput entity)
{
if (entity.StaffId != null)

@ -7500,6 +7500,11 @@
排序
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_SurveyBase.Status">
<summary>
状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_SurveyBase.RemarkSz">
<summary>
备注
@ -22986,6 +22991,11 @@
排序
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_Survey.Status">
<summary>
状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghre_Survey.RemarkSz">
<summary>
备注

@ -1365,6 +1365,14 @@
问卷调查(Controller)
</summary>
</member>
<member name="M:Tiobon.Core.Api.Controllers.Ghre_SurveyController.QueryByStatus(Tiobon.Core.Common.QueryBody,System.String)">
<summary>
根据条件查询数据
</summary>
<param name="body">条件</param>
<param name="status">status</param>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghre_TeacherAttachmentController">
<summary>
Ghre_TeacherAttachment(Controller)

Loading…
Cancel
Save