Browse Source

接收网格化平台推送的难点堵点---log

feature/dangjian
wanggongfeng 3 years ago
parent
commit
33f495f286
  1. 2
      esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/form/AcceptItemDifficultyFormDTO.java
  2. 3
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java
  3. 2
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

2
esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/form/AcceptItemDifficultyFormDTO.java

@ -36,7 +36,7 @@ public class AcceptItemDifficultyFormDTO implements Serializable {
* 发展诉求为FZ2022090418yyyyMMddhh+3位流水号 * 发展诉求为FZ2022090418yyyyMMddhh+3位流水号
* 执法诉求为ZF2022090418yyyyMMddhh+3位流水号 * 执法诉求为ZF2022090418yyyyMMddhh+3位流水号
*/ */
@NotBlank(message = "唯一标识不可为空") @NotBlank(message = "编码不可为空")
private String serialNum; private String serialNum;

3
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java

@ -4016,12 +4016,11 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem
try { try {
baseDao.updateBatchBySerialNum(updateList); baseDao.updateBatchBySerialNum(updateList);
}catch (Exception e){ }catch (Exception e){
logger.info("+++++++++++++++++++++++++++");
logger.info(e); logger.info(e);
// 保存接口调用日志 // 保存接口调用日志
this.saveInterfaceLog("", InterfaceLogBusinessTypeEnum.ACCEPT_ITEM_PROCESS.getValue(), this.saveInterfaceLog("", InterfaceLogBusinessTypeEnum.ACCEPT_ITEM_PROCESS.getValue(),
ApiConstants.acceptItemDifficulty, YesOrNoEnum.NO.value(), formDto.toString(), returnMsgBody); ApiConstants.acceptItemDifficulty, YesOrNoEnum.NO.value(), formDto.toString(), returnMsgBody);
return new Result().error("失败"); return new Result().error("推送失败");
} }
} }

2
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

@ -2448,7 +2448,7 @@
SET IS_DIFFICULTY = '1', SET IS_DIFFICULTY = '1',
UPDATED_TIME = NOW() UPDATED_TIME = NOW()
WHERE SERIAL_NUM in WHERE SERIAL_NUM in
<foreach collection="updateList" index="serialNum" item="deptId" open="(" separator="," close=")"> <foreach collection="updateList" index="index" item="serialNum" open="(" separator="," close=")">
#{serialNum} #{serialNum}
</foreach> </foreach>
</update> </update>

Loading…
Cancel
Save