Pārlūkot izejas kodu

朝阳统计系统汇总

master
杨旭东 pirms 3 mēnešiem
vecāks
revīzija
658aa7e675
4 mainītis faili ar 26 papildinājumiem un 9 dzēšanām
  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ārs
      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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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ārs
mztb/target/classes/cc/smtweb/biz/mztb/web/MztbStartedListener.class Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt