作者 xiaohu thinkpad

统计学时问题修复

@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
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$/public/index.php" beforeDir="false" afterPath="$PROJECT_DIR$/public/index.php" afterDir="false" /> 6 + <change beforePath="$PROJECT_DIR$/simplewind/cmf/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/simplewind/cmf/common.php" afterDir="false" />
7 </list> 7 </list>
8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9 <option name="TRACKING_ENABLED" value="true" /> 9 <option name="TRACKING_ENABLED" value="true" />
@@ -120,11 +120,11 @@ @@ -120,11 +120,11 @@
120 </provider> 120 </provider>
121 </entry> 121 </entry>
122 </file> 122 </file>
123 - <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">
124 <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php"> 124 <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php">
125 <provider selected="true" editor-type-id="text-editor"> 125 <provider selected="true" editor-type-id="text-editor">
126 - <state relative-caret-position="775">  
127 - <caret line="2102" column="17" selection-start-line="2102" selection-start-column="17" selection-end-line="2102" selection-end-column="17" /> 126 + <state relative-caret-position="565">
  127 + <caret line="2092" column="19" lean-forward="true" selection-start-line="2092" selection-start-column="19" selection-end-line="2092" selection-end-column="19" />
128 </state> 128 </state>
129 </provider> 129 </provider>
130 </entry> 130 </entry>
@@ -143,7 +143,7 @@ @@ -143,7 +143,7 @@
143 </provider> 143 </provider>
144 </entry> 144 </entry>
145 </file> 145 </file>
146 - <file leaf-file-name="index.php" pinned="false" current-in-tab="true"> 146 + <file leaf-file-name="index.php" pinned="false" current-in-tab="false">
147 <entry file="file://$PROJECT_DIR$/public/index.php"> 147 <entry file="file://$PROJECT_DIR$/public/index.php">
148 <provider selected="true" editor-type-id="text-editor"> 148 <provider selected="true" editor-type-id="text-editor">
149 <state relative-caret-position="126"> 149 <state relative-caret-position="126">
@@ -232,8 +232,8 @@ @@ -232,8 +232,8 @@
232 <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" />
233 <option value="$USER_HOME$/Desktop/开发资料/temp/22.html" /> 233 <option value="$USER_HOME$/Desktop/开发资料/temp/22.html" />
234 <option value="$PROJECT_DIR$/app/user/controller/ProfileController.php" /> 234 <option value="$PROJECT_DIR$/app/user/controller/ProfileController.php" />
235 - <option value="$PROJECT_DIR$/simplewind/cmf/common.php" />  
236 <option value="$PROJECT_DIR$/public/index.php" /> 235 <option value="$PROJECT_DIR$/public/index.php" />
  236 + <option value="$PROJECT_DIR$/simplewind/cmf/common.php" />
237 </list> 237 </list>
238 </option> 238 </option>
239 </component> 239 </component>
@@ -376,21 +376,7 @@ @@ -376,21 +376,7 @@
376 <workItem from="1536326693570" duration="30018000" /> 376 <workItem from="1536326693570" duration="30018000" />
377 <workItem from="1536496471879" duration="16852000" /> 377 <workItem from="1536496471879" duration="16852000" />
378 <workItem from="1536677895835" duration="7811000" /> 378 <workItem from="1536677895835" duration="7811000" />
379 - <workItem from="1536940132237" duration="3578000" />  
380 - </task>  
381 - <task id="LOCAL-00018" summary="ceshi wode jiaolian">  
382 - <created>1535548842017</created>  
383 - <option name="number" value="00018" />  
384 - <option name="presentableId" value="LOCAL-00018" />  
385 - <option name="project" value="LOCAL" />  
386 - <updated>1535548842017</updated>  
387 - </task>  
388 - <task id="LOCAL-00019" summary="测试获取当前时段的老师">  
389 - <created>1535559377550</created>  
390 - <option name="number" value="00019" />  
391 - <option name="presentableId" value="LOCAL-00019" />  
392 - <option name="project" value="LOCAL" />  
393 - <updated>1535559377550</updated> 379 + <workItem from="1536940132237" duration="4396000" />
394 </task> 380 </task>
395 <task id="LOCAL-00020" summary="测试获取当前时段的老师"> 381 <task id="LOCAL-00020" summary="测试获取当前时段的老师">
396 <created>1535559508443</created> 382 <created>1535559508443</created>
@@ -721,11 +707,25 @@ @@ -721,11 +707,25 @@
721 <option name="project" value="LOCAL" /> 707 <option name="project" value="LOCAL" />
722 <updated>1536977008226</updated> 708 <updated>1536977008226</updated>
723 </task> 709 </task>
724 - <option name="localTasksCounter" value="67" /> 710 + <task id="LOCAL-00067" summary="统计学时问题修复">
  711 + <created>1536977579249</created>
  712 + <option name="number" value="00067" />
  713 + <option name="presentableId" value="LOCAL-00067" />
  714 + <option name="project" value="LOCAL" />
  715 + <updated>1536977579249</updated>
  716 + </task>
  717 + <task id="LOCAL-00068" summary="统计学时问题修复">
  718 + <created>1536977777123</created>
  719 + <option name="number" value="00068" />
  720 + <option name="presentableId" value="LOCAL-00068" />
  721 + <option name="project" value="LOCAL" />
  722 + <updated>1536977777123</updated>
  723 + </task>
  724 + <option name="localTasksCounter" value="69" />
725 <servers /> 725 <servers />
726 </component> 726 </component>
727 <component name="TimeTrackingManager"> 727 <component name="TimeTrackingManager">
728 - <option name="totallyTimeSpent" value="143160000" /> 728 + <option name="totallyTimeSpent" value="143978000" />
729 </component> 729 </component>
730 <component name="ToolWindowManager"> 730 <component name="ToolWindowManager">
731 <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" />
@@ -955,17 +955,17 @@ @@ -955,17 +955,17 @@
955 </state> 955 </state>
956 </provider> 956 </provider>
957 </entry> 957 </entry>
958 - <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php"> 958 + <entry file="file://$PROJECT_DIR$/public/index.php">
959 <provider selected="true" editor-type-id="text-editor"> 959 <provider selected="true" editor-type-id="text-editor">
960 - <state relative-caret-position="775">  
961 - <caret line="2102" column="17" selection-start-line="2102" selection-start-column="17" selection-end-line="2102" selection-end-column="17" /> 960 + <state relative-caret-position="126">
  961 + <caret line="12" column="21" selection-start-line="12" selection-start-column="21" selection-end-line="12" selection-end-column="21" />
962 </state> 962 </state>
963 </provider> 963 </provider>
964 </entry> 964 </entry>
965 - <entry file="file://$PROJECT_DIR$/public/index.php"> 965 + <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php">
966 <provider selected="true" editor-type-id="text-editor"> 966 <provider selected="true" editor-type-id="text-editor">
967 - <state relative-caret-position="126">  
968 - <caret line="12" column="21" selection-start-line="12" selection-start-column="21" selection-end-line="12" selection-end-column="21" /> 967 + <state relative-caret-position="565">
  968 + <caret line="2092" column="19" lean-forward="true" selection-start-line="2092" selection-start-column="19" selection-end-line="2092" selection-end-column="19" />
969 </state> 969 </state>
970 </provider> 970 </provider>
971 </entry> 971 </entry>
@@ -2091,7 +2091,7 @@ function id_xueshi($id){ @@ -2091,7 +2091,7 @@ function id_xueshi($id){
2091 ->where(['uid'=>$id,'status'=>'3']) 2091 ->where(['uid'=>$id,'status'=>'3'])
2092 ->field(' SUM(yuyue_end - yuyue_begin) as yyxs ') 2092 ->field(' SUM(yuyue_end - yuyue_begin) as yyxs ')
2093 ->select(); 2093 ->select();
2094 - echo Db::name('yuyue')->getLastSql(); 2094 + return Db::name('yuyue')->getLastSql();
2095 var_dump($name); 2095 var_dump($name);
2096 $yyxs = $name ? $name['yyxs'] : 0; 2096 $yyxs = $name ? $name['yyxs'] : 0;
2097 return $yyxs; 2097 return $yyxs;