作者 xiaohu thinkpad

统计学时问题修复

@@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
3 <component name="ChangeListManager"> 3 <component name="ChangeListManager">
4 <list default="true" id="03b59864-5835-4588-bfae-54004809f199" name="Default" comment=""> 4 <list default="true" id="03b59864-5835-4588-bfae-54004809f199" name="Default" comment="">
5 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> 5 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6 - <change beforePath="$PROJECT_DIR$/app/user/controller/ProfileController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/user/controller/ProfileController.php" afterDir="false" />  
7 <change beforePath="$PROJECT_DIR$/simplewind/cmf/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/simplewind/cmf/common.php" afterDir="false" /> 6 <change beforePath="$PROJECT_DIR$/simplewind/cmf/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/simplewind/cmf/common.php" afterDir="false" />
8 </list> 7 </list>
9 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -103,11 +102,11 @@ @@ -103,11 +102,11 @@
103 </provider> 102 </provider>
104 </entry> 103 </entry>
105 </file> 104 </file>
106 - <file leaf-file-name="ProfileController.php" pinned="false" current-in-tab="true"> 105 + <file leaf-file-name="ProfileController.php" pinned="false" current-in-tab="false">
107 <entry file="file://$PROJECT_DIR$/app/user/controller/ProfileController.php"> 106 <entry file="file://$PROJECT_DIR$/app/user/controller/ProfileController.php">
108 <provider selected="true" editor-type-id="text-editor"> 107 <provider selected="true" editor-type-id="text-editor">
109 - <state relative-caret-position="378">  
110 - <caret line="38" column="38" selection-start-line="38" selection-start-column="38" selection-end-line="38" selection-end-column="38" /> 108 + <state relative-caret-position="588">
  109 + <caret line="48" column="11" lean-forward="true" selection-start-line="48" selection-start-column="11" selection-end-line="48" selection-end-column="11" />
111 </state> 110 </state>
112 </provider> 111 </provider>
113 </entry> 112 </entry>
@@ -121,11 +120,11 @@ @@ -121,11 +120,11 @@
121 </provider> 120 </provider>
122 </entry> 121 </entry>
123 </file> 122 </file>
124 - <file leaf-file-name="common.php" pinned="false" current-in-tab="false"> 123 + <file leaf-file-name="common.php" pinned="false" current-in-tab="true">
125 <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php"> 124 <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php">
126 <provider selected="true" editor-type-id="text-editor"> 125 <provider selected="true" editor-type-id="text-editor">
127 - <state relative-caret-position="775">  
128 - <caret line="2102" column="30" selection-start-line="2102" selection-start-column="30" selection-end-line="2102" selection-end-column="30" /> 126 + <state relative-caret-position="607">
  127 + <caret line="2094" column="22" selection-start-line="2094" selection-start-column="22" selection-end-line="2094" selection-end-column="22" />
129 </state> 128 </state>
130 </provider> 129 </provider>
131 </entry> 130 </entry>
@@ -233,8 +232,8 @@ @@ -233,8 +232,8 @@
233 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/ProfileController [4].php" /> 232 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/ProfileController [4].php" />
234 <option value="$USER_HOME$/Desktop/开发资料/temp/22.html" /> 233 <option value="$USER_HOME$/Desktop/开发资料/temp/22.html" />
235 <option value="$PROJECT_DIR$/public/index.php" /> 234 <option value="$PROJECT_DIR$/public/index.php" />
236 - <option value="$PROJECT_DIR$/simplewind/cmf/common.php" />  
237 <option value="$PROJECT_DIR$/app/user/controller/ProfileController.php" /> 235 <option value="$PROJECT_DIR$/app/user/controller/ProfileController.php" />
  236 + <option value="$PROJECT_DIR$/simplewind/cmf/common.php" />
238 </list> 237 </list>
239 </option> 238 </option>
240 </component> 239 </component>
@@ -377,21 +376,7 @@ @@ -377,21 +376,7 @@
377 <workItem from="1536326693570" duration="30018000" /> 376 <workItem from="1536326693570" duration="30018000" />
378 <workItem from="1536496471879" duration="16852000" /> 377 <workItem from="1536496471879" duration="16852000" />
379 <workItem from="1536677895835" duration="7811000" /> 378 <workItem from="1536677895835" duration="7811000" />
380 - <workItem from="1536940132237" duration="4988000" />  
381 - </task>  
382 - <task id="LOCAL-00022" summary="测试获取当前时段的老师">  
383 - <created>1535559978125</created>  
384 - <option name="number" value="00022" />  
385 - <option name="presentableId" value="LOCAL-00022" />  
386 - <option name="project" value="LOCAL" />  
387 - <updated>1535559978125</updated>  
388 - </task>  
389 - <task id="LOCAL-00023" summary="测试获取当前时段的老师">  
390 - <created>1535560263207</created>  
391 - <option name="number" value="00023" />  
392 - <option name="presentableId" value="LOCAL-00023" />  
393 - <option name="project" value="LOCAL" />  
394 - <updated>1535560263207</updated> 379 + <workItem from="1536940132237" duration="5232000" />
395 </task> 380 </task>
396 <task id="LOCAL-00024" summary="测试获取当前时段的老师"> 381 <task id="LOCAL-00024" summary="测试获取当前时段的老师">
397 <created>1535560747816</created> 382 <created>1535560747816</created>
@@ -722,11 +707,25 @@ @@ -722,11 +707,25 @@
722 <option name="project" value="LOCAL" /> 707 <option name="project" value="LOCAL" />
723 <updated>1536979616129</updated> 708 <updated>1536979616129</updated>
724 </task> 709 </task>
725 - <option name="localTasksCounter" value="71" /> 710 + <task id="LOCAL-00071" summary="统计学时问题修复">
  711 + <created>1536979859742</created>
  712 + <option name="number" value="00071" />
  713 + <option name="presentableId" value="LOCAL-00071" />
  714 + <option name="project" value="LOCAL" />
  715 + <updated>1536979859742</updated>
  716 + </task>
  717 + <task id="LOCAL-00072" summary="统计学时问题修复">
  718 + <created>1536980014690</created>
  719 + <option name="number" value="00072" />
  720 + <option name="presentableId" value="LOCAL-00072" />
  721 + <option name="project" value="LOCAL" />
  722 + <updated>1536980014691</updated>
  723 + </task>
  724 + <option name="localTasksCounter" value="73" />
726 <servers /> 725 <servers />
727 </component> 726 </component>
728 <component name="TimeTrackingManager"> 727 <component name="TimeTrackingManager">
729 - <option name="totallyTimeSpent" value="144570000" /> 728 + <option name="totallyTimeSpent" value="144814000" />
730 </component> 729 </component>
731 <component name="ToolWindowManager"> 730 <component name="ToolWindowManager">
732 <frame x="1912" y="-152" width="1936" height="1056" extended-state="6" /> 731 <frame x="1912" y="-152" width="1936" height="1056" extended-state="6" />
@@ -956,17 +955,17 @@ @@ -956,17 +955,17 @@
956 </state> 955 </state>
957 </provider> 956 </provider>
958 </entry> 957 </entry>
959 - <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php"> 958 + <entry file="file://$PROJECT_DIR$/app/user/controller/ProfileController.php">
960 <provider selected="true" editor-type-id="text-editor"> 959 <provider selected="true" editor-type-id="text-editor">
961 - <state relative-caret-position="775">  
962 - <caret line="2102" column="30" selection-start-line="2102" selection-start-column="30" selection-end-line="2102" selection-end-column="30" /> 960 + <state relative-caret-position="588">
  961 + <caret line="48" column="11" lean-forward="true" selection-start-line="48" selection-start-column="11" selection-end-line="48" selection-end-column="11" />
963 </state> 962 </state>
964 </provider> 963 </provider>
965 </entry> 964 </entry>
966 - <entry file="file://$PROJECT_DIR$/app/user/controller/ProfileController.php"> 965 + <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php">
967 <provider selected="true" editor-type-id="text-editor"> 966 <provider selected="true" editor-type-id="text-editor">
968 - <state relative-caret-position="378">  
969 - <caret line="38" column="38" selection-start-line="38" selection-start-column="38" selection-end-line="38" selection-end-column="38" /> 967 + <state relative-caret-position="607">
  968 + <caret line="2094" column="22" selection-start-line="2094" selection-start-column="22" selection-end-line="2094" selection-end-column="22" />
970 </state> 969 </state>
971 </provider> 970 </provider>
972 </entry> 971 </entry>
@@ -2092,7 +2092,7 @@ function id_xueshi($id){ @@ -2092,7 +2092,7 @@ function id_xueshi($id){
2092 ->field(' SUM(yuyue_end - yuyue_begin) as yyxs ') 2092 ->field(' SUM(yuyue_end - yuyue_begin) as yyxs ')
2093 ->select()->toArray(); 2093 ->select()->toArray();
2094 // return Db::name('yuyue')->getLastSql(); 2094 // return Db::name('yuyue')->getLastSql();
2095 - return $name ; 2095 + return json($name) ;
2096 $yyxs = $name ? $name['yyxs'] : 0; 2096 $yyxs = $name ? $name['yyxs'] : 0;
2097 return $yyxs; 2097 return $yyxs;
2098 } 2098 }