税控优化
This commit is contained in:
parent
71370f9b85
commit
df2f744922
@ -2,6 +2,7 @@
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("Invoice_TJ_Gps");
|
||||
doTemp.appendJboWhere("O.liti_id is null");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("Invoice_TJ_Gps");
|
||||
doTemp.appendJboWhere("O.liti_id is not null");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
|
||||
@ -4388,6 +4388,7 @@
|
||||
<attribute name="fpdm" label="fpdm" type="STRING"/>
|
||||
<attribute name="fphm" label="fphm" type="STRING"/>
|
||||
<attribute name="hztzdh" label="hztzdh" type="STRING"/>
|
||||
<attribute name="liti_id" label="liti_id" type="STRING"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
|
||||
@ -129,7 +129,7 @@ public class IAutokpDo {
|
||||
IAutokpUtils.saveFile(responseParam, fpdm+"-"+fphm+"_rnt");
|
||||
Map<String,String> responseResult = IAutokpUtils.getResponseResult(responseParam);
|
||||
if("6011".equals(responseResult.get("fl"))){
|
||||
|
||||
invalidInvoice();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@ -299,8 +299,35 @@ public class IAutokpDo {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public void invalidInvoice(){
|
||||
Transaction Sqlca = null;
|
||||
Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
String usql = "update li_invoice_tj_info O set O.status='N' where fpdm='"+fpdm+"' and fphm='"+fphm+"'";
|
||||
SqlObject sql;
|
||||
try {
|
||||
sql = new SqlObject(usql);
|
||||
Sqlca.executeSQL(sql);
|
||||
} catch (SQLException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
public void redbackInvoice(Transaction Sqlca){
|
||||
String usql = "update li_invoice_tj_info O set O.status='R' where fpdm='"+fpdm+"' and fphm='"+fphm+"'";
|
||||
|
||||
try {
|
||||
SqlObject sql = new SqlObject(usql);
|
||||
Sqlca.executeSQL(sql);
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -85,4 +85,8 @@ public interface VI_LI_INVOICE_TJ_GPS{
|
||||
* hztzdh STRING(20)<br>
|
||||
*/
|
||||
public static final String hztzdh = "hztzdh";
|
||||
/**
|
||||
* liti_id STRING(20)<br>
|
||||
*/
|
||||
public static final String liti_id = "liti_id";
|
||||
}
|
||||
@ -28,7 +28,8 @@ CREATE VIEW `vi_li_invoice_tj_gps` AS
|
||||
`liti`.`status` AS `invoice_status`,
|
||||
`liti`.`FPDM` AS `FPDM`,
|
||||
`liti`.`FPHM` AS `FPHM`,
|
||||
liti.hztzdh AS hztzdh
|
||||
liti.hztzdh AS hztzdh,
|
||||
liti.mxxh AS mxxh
|
||||
FROM
|
||||
(
|
||||
(
|
||||
@ -39,7 +40,7 @@ CREATE VIEW `vi_li_invoice_tj_gps` AS
|
||||
LEFT JOIN `lb_contract_info` `lci`
|
||||
ON ((`lfi`.`CONTRACT_ID` = `lci`.`ID`))
|
||||
)
|
||||
LEFT JOIN li_invoice_tj_info liti ON liti.contract_no = lci.contract_no AND liti.plan_list='1' AND liti.tax_type='feetype24'
|
||||
LEFT JOIN (SELECT li.id,li.contract_no,li.status,li.FPDM,li.FPHM,li.hztzdh,li.mxxh FROM li_invoice_tj_info li WHERE li.tax_type='feetype24' AND li.status='Y') liti ON liti.contract_no = lci.contract_no
|
||||
LEFT JOIN `lb_union_lessee` `lul`
|
||||
ON ((`lul`.`CONTRACT_ID` = `lci`.`ID`))
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user