Sfoglia il codice sorgente

带出上期填报数据 只查询已推送的数据

pull/1/head
yulin 8 mesi fa
parent
commit
f2ce707564
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.java

+ 2
- 2
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillHandler.java Vedi File

@@ -108,11 +108,11 @@ public class PartyDataFillHandler {

// bean.setUser(us.getUserId());
if(params.readString("outOldData").equals("1")) { // 如果带出上期数据,并且能找到最近的数据 就不执行初始化
// 通过填报类型 找到当前机构最近填报的一条数据,
// 通过填报类型 已推送 找到当前机构最近填报的一条数据,
int state = params.readInt("type") == 1 ? 1 : 2;
String foIdStr = instance.queryString("select fo_id from "
+ EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME)
+ " where fo_type = ? and fo_party_id=? order by fo_date desc limit 1",state,params.readLong("CUR_PARTY_ID"));
+ " where fo_type = ? and fo_state = 2 and fo_party_id=? order by fo_date desc limit 1",state,params.readLong("CUR_PARTY_ID"));
// 查询 关联表的数据
if(StringUtil.isEmpty(foIdStr)) { // 如果未找到同类型的填报数据 直接构建初始化数据
initPageDateset();


Caricamento…
Annulla
Salva