| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.ld.igds.log.service.InteStatusLogService; |
| | | import com.ld.igds.models.Building; |
| | | import com.ld.igds.models.DepotConf; |
| | | import com.ld.igds.models.InteStatusLog; |
| | | import com.ld.igds.sh.dto.ApiResponse; |
| | |
| | | import com.ld.igds.sh.param.BaseParam; |
| | | import com.ld.igds.sh.service.impl.HApiShServiceImpl; |
| | | import com.ld.igds.sh.util.ApiShConst; |
| | | import com.ld.igds.sh.util.ApiShUtil; |
| | | import com.ld.igds.sh.util.RespCodeEnum; |
| | | import com.ld.igds.sh.util.RespUtil; |
| | | import com.ld.igds.util.ContextUtil; |
| | |
| | | import org.apache.commons.lang3.time.DateFormatUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | //封装数据信息 |
| | | for (DepotConf depotConf : dataList) { |
| | | dto1402 = new Dto1402(); |
| | | dto1402.setNm(depotConf.getDepotId().substring(0, 21)); |
| | | dto1402.setZznm(depotConf.getDepotId().substring(0, 21)); |
| | | dto1402.setCfnm(depotConf.getDepotId()); |
| | | dto1402.setCfbh(depotConf.getDepotId()); |
| | | dto1402.setNm(ApiShUtil.getGbDepotId(depotConf.getDepotId()).substring(0, 21)); |
| | | dto1402.setZznm(ApiShUtil.getGbDepotId(depotConf.getDepotId()).substring(0, 21)); |
| | | dto1402.setCfnm(ApiShUtil.getGbDepotId(depotConf.getDepotId()).substring(0, 25)); |
| | | dto1402.setCfbh(ApiShUtil.getGbDepotId(depotConf.getDepotId())); |
| | | String cableRule = depotConf.getCableRule(); |
| | | String[] split = cableRule.split("-"); |
| | | dto1402.setDlcs(split[0]); |
| | |
| | | log = inteStatusLogService.getLogByBizId(companyId, ApiShConst.API_SH_1402 + "_" + depotConf.getCompanyId() + depotConf.getDepotId()); |
| | | if(null == log){ |
| | | addLog = new InteStatusLog(); |
| | | addLog.setBizId(ApiShConst.API_SH_1402 + "_" + depotConf.getCompanyId() + depotConf.getDepotId()); |
| | | addLog.setBizId(ApiShConst.API_SH_1402 + "_" + depotConf.getCompanyId() + ApiShUtil.getGbDepotId(depotConf.getDepotId())); |
| | | addLog.setCompanyId(companyId); |
| | | addLog.setBizType(ApiShConst.API_SH_TYPE_TASK); |
| | | addLog.setInterfaceId(ApiShConst.API_SH_1402); |