Commit 665bedba authored by wuzhilong's avatar wuzhilong

数据核验报表 单位代码表使用受理库字典表

parent 313eca5d
......@@ -33,21 +33,23 @@ public interface DataAuditingMapper {
public List<Map<String, Object>> selectDataAuditingEntity(@Param("groupNo") String groupNo);
@Select("<script>" +
"select nvl(GAJG_DM.GAJG_MC,'000000000') GAJG_MC,DATA_AUDITING.POLICE_SUBSTATION,sum(DATA_AUDITING.VALID_COUNT) VALID_COUNT,\n" +
"sum(DATA_AUDITING.INVALID_COUNT) inVALID_COUNT,to_char(DATA_AUDITING.SUBMIT_DATE,'yyyyMMdd') SUBMIT_DATE,CARD_TYPE_DIC.CARD_TYPE,\n" +
"CARD_TYPE_DIC.CARD_TYPE_ID, 1-(sum(DATA_AUDITING.VALID_COUNT)/(sum(DATA_AUDITING.VALID_COUNT)+sum(DATA_AUDITING.inVALID_COUNT))) Failure_rate from DATA_AUDITING \n" +
"left join TASK on TASK.TASK_ID = DATA_AUDITING.TASK_ID\n" +
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = TASK.CARD_TYPE " +
"left join GAJG_DM on GAJG_DM.GAJG_DM = DATA_AUDITING.POLICE_SUBSTATION\n" +
"select nvl(DIC.unit_name,'000000000') GAJG_MC,DATA_AUDITING.POLICE_SUBSTATION,\n" +
"sum(DATA_AUDITING.VALID_COUNT) VALID_COUNT, sum(DATA_AUDITING.INVALID_COUNT) inVALID_COUNT,\n" +
"to_char(DATA_AUDITING.SUBMIT_DATE,'yyyyMMdd') SUBMIT_DATE,CARD_TYPE_DIC.CARD_TYPE, \n" +
"CARD_TYPE_DIC.CARD_TYPE_ID, 1-(sum(DATA_AUDITING.VALID_COUNT)/(sum(DATA_AUDITING.VALID_COUNT)+sum(DATA_AUDITING.inVALID_COUNT))) Failure_rate\n" +
"from DATA_AUDITING left join TASK on TASK.TASK_ID = DATA_AUDITING.TASK_ID left join CARD_TYPE_DIC \n" +
"on CARD_TYPE_DIC.CARD_TYPE_ID = TASK.CARD_TYPE\n" +
"left join DIC_UPLOAD_UNIT_t@ACCuYD_LINK DIC\n" +
"on substr(DIC.upload_unit_no,1,9) = substr(DATA_AUDITING.POLICE_SUBSTATION,1,9) \n" +
"where 1=1 " +
" <if test = 'policeName != null' >" +
" and GAJG_DM.GAJG_MC like ${policeName}" +
" and DIC.unit_name like ${policeName}" +
"</if>\n" +
" <if test = 'policeCode != null' >" +
" and DATA_AUDITING.POLICE_SUBSTATION like ${policeCode}" +
"</if> " +
" and to_char(DATA_AUDITING.SUBMIT_DATE,'yyyyMMdd') BETWEEN ${startDate} and ${endDate} \n" +
"group by nvl(GAJG_DM.GAJG_MC,'000000000'),DATA_AUDITING.POLICE_SUBSTATION, to_char(DATA_AUDITING.SUBMIT_DATE,'yyyyMMdd'), CARD_TYPE_DIC.CARD_TYPE, CARD_TYPE_DIC.CARD_TYPE_ID\n" +
"group by nvl(DIC.unit_name,'000000000'),DATA_AUDITING.POLICE_SUBSTATION, to_char(DATA_AUDITING.SUBMIT_DATE,'yyyyMMdd'), CARD_TYPE_DIC.CARD_TYPE, CARD_TYPE_DIC.CARD_TYPE_ID\n" +
"order by DATA_AUDITING.POLICE_SUBSTATION" +
"</script>")
public List<Map<String, Object>> selectDataAuditingReport(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("policeName") String policeName, @Param("policeCode") String policeCode);
......
......@@ -140,7 +140,7 @@ public interface FailedCardMapper {
public boolean updateFailedState3(FailedCardEntity failedCardEntity);
@Update("update FAILED_CARD set FINISH_DATE =sysdate ,state =#{state} where FAILED_CARD_ID = #{failedCardId}")
// public boolean updateFailedState4(FailedCardEntity failedCardEntity);
public boolean updateFailedState4(FailedCardEntity failedCardEntity);
// @Update("update FAILED_CARD set FINISH_DATE =sysdate ,state =#{state} where FAILED_CARD_ID = #{failedCardId}")
// public boolean updateFailedState5(FailedCardEntity failedCardEntity);
......
......@@ -1573,10 +1573,10 @@ public interface TaskListMapper {
"left join PROD_CARD_T@prodyd_link on SPECIAL_CARD.ACCEPT_NO = prod_card_t.ACCEPT_NO " +
"left join task on task.task_id =SPECIAL_CARD.task_id " +
"left join TASK_STATE_DIC ON TASK_STATE_DIC.TASK_STATE_ID = task.TASK_STATE_ID\n" +
"where to_char(SPECIAL_CARD.FILL_IN_DATE,'yyyyMMdd') = #{date} \n" +
"where to_char(SPECIAL_CARD.FILL_IN_DATE,'yyyyMMdd') = ${date} \n" +
"and SPECIAL_CARD.SPECIAL_TYPE=1 and SPECIAL_CARD.INITIATOR =#{name} " +
"order by SPECIAL_CARD.accept_no")
public List<Map<String, Object>> selectRemainderCardInfo(String date, String name);
public List<Map<String, Object>> selectRemainderCardInfo(@Param("date")String date, @Param("name")String name);
@Update("update failed_card set work_group = ${workGroup} where failed_card_ID = ${taskId}")
public boolean updateFailedCardWorkGroup(@Param("taskId")String taskId,@Param("workGroup") long workGroup);
......
......@@ -134,7 +134,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="item in failedInfo | orderBy:FAILED_CARD_ID">
<tr ng-repeat="item in failedInfo | orderBy:'FAILED_CARD_ID'">
<td>{{$index+1}}</td>
<th>{{item.ACCEPT_NO}}</th>
<td>{{item.CARD_NAME}}</td>
......
......@@ -26,9 +26,9 @@
<thead>
<tr>
<th>打印日期</th>
<th>大批</th>
<th>邮寄证</th>
<th>军人证</th>
<th>普通</th>
<th>港澳</th>
<th>台湾</th>
<th>快证</th>
<th>废证</th>
<th>合计</th>
......@@ -37,9 +37,9 @@
<tbody ng-repeat="item in reportData | orderBy:date">
<tr>
<td>{{item.date}}</td>
<td>{{item.pu}}</td>
<td>{{item.you}}</td>
<td>{{item.jun}}</td>
<td>{{item.yi}}</td>
<td>{{item.gangao}}</td>
<td>{{item.tai}}</td>
<td>{{item.kuai}}</td>
<td>{{item.fei}}</td>
<td style="color: #3c8dbc">{{item.total}}</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment