Explorar el Código

朝阳统计系统汇总

master
杨旭东 hace 3 meses
padre
commit
658aa7e675
Se han modificado 4 ficheros con 26 adiciones y 9 borrados
  1. +11
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.java
  2. +1
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.java
  3. +14
    -9
      mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillList.js
  4. BIN
      mztb/target/classes/cc/smtweb/biz/mztb/web/MztbStartedListener.class

+ 11
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataCustomHandler.java Ver fichero

@@ -52,6 +52,17 @@ public class PartyDataCustomHandler extends AbstractHandler {
if(cur_party_id != 0) {
return R.error("当前机构已有该任务的填报数据:"+params.readString("task_text"));
}
int outOldData = params.readInt("outOldData");
if (outOldData == 1){
String sql ="select fo_id,fo_task\n" +
"from "+EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME)+" a\n" +
"where a.fo_task = (select max(fo_task) from "+EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME)+" where fo_party_id=?)\n" +
"and fo_party_id=? and fo_state <>-1";
FillOut fillOut = DbEngine.getInstance().queryEntity(sql, FillOut.class, us.getPartyId(),us.getPartyId());
if (EntityHelper.isEmpty(fillOut)) return R.error("未查询到上期填报数据");

}

return R.success();
}
}

+ 1
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/base/partyDataFill/PartyDataFillService.java Ver fichero

@@ -83,6 +83,7 @@ public class PartyDataFillService extends LCMsService {
"where a.fo_task = (select max(fo_task) from "+EntityHelper.getSchemaTableName(FillOut.ENTITY_NAME)+" where fo_party_id=?)\n" +
"and fo_party_id=? and fo_state <>-1";
FillOut fillOut = DbEngine.getInstance().queryEntity(sql, FillOut.class, us.getPartyId(),us.getPartyId());
if (EntityHelper.isEmpty(fillOut)) return R.error("未查询到上期填报数据");
BusinessInfo businessInfo = DbEngine.getInstance().findDao(BusinessInfo.class).queryEntityWhere("bi_fo_id=?",fillOut.getId());
if (EntityHelper.isEmpty(businessInfo)) throw new BizException("未查询到相关的业务信息!");
businessInfo.put("bi_type_text", DictsCache.getInstance().getItemName("tbBusinessType",businessInfo.getType()));


+ 14
- 9
mztb/src/main/resources/static/event/mztb/base/partyDataFill/partyDataFillList.js Ver fichero

@@ -27,16 +27,21 @@ window.$swEvent.setup("mztb.base.partyDataFill.partyDataFillList", {
return false
}
// 检查当前机构是否重复推送
const rt = await $$http.post("mztb/partyDataFill/checkRepetition", {task: $model.ds_1.data.form.task,task_text : $model.ds_1.data.form.task_text})
$api.closeDialog("tb_dialog")
$api.toPage("mztb.partyDataFillCard", {
$fromAction: 'button:add'
, task: $model.ds_1.data.form.task
, type: $model.ds_1.data.form.month
, task_text: $model.ds_1.data.form.task_text
, outOldData: $model.ds_1.data.form.outOldData,
year : $model.ds_1.data.form.year
const rt = await $$http.post("mztb/partyDataFill/checkRepetition", {task: $model.ds_1.data.form.task,
task_text : $model.ds_1.data.form.task_text,
outOldData: $model.ds_1.data.form.outOldData,}).then((res)=>{
if (res.code === 0){
$api.toPage("mztb.partyDataFillCard", {
$fromAction: 'button:add'
, task: $model.ds_1.data.form.task
, type: $model.ds_1.data.form.month
, task_text: $model.ds_1.data.form.task_text
, outOldData: $model.ds_1.data.form.outOldData,
year : $model.ds_1.data.form.year
})
}
})
$api.closeDialog("tb_dialog")
}

const selectHide =(data) => {


BIN
mztb/target/classes/cc/smtweb/biz/mztb/web/MztbStartedListener.class Ver fichero


Cargando…
Cancelar
Guardar