| | |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1102Rep; |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.fzzy35.entity.DefaultDept; |
| | | import com.fzzy.async.fzzy35.entity.Fz35DefaultDept; |
| | | import com.fzzy.async.fzzy35.repository.Fzzy35Sync1101Rep; |
| | | import com.fzzy.async.fzzy35.repository.Fzzy35Sync1102Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | public class Fzzy35Sync1102 { |
| | | |
| | | @Autowired |
| | | private Fzzy35Sync1101Rep fzzy35Sync1101Rep; |
| | | private Fzzy35Sync1102Rep fzzy35Sync1102Rep; |
| | | @Autowired |
| | | private Api1102Rep api1102Rep; |
| | | @Autowired |
| | |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | | List<DefaultDept> list = fzzy35Sync1101Rep.listDept(deptId); |
| | | List<Fz35DefaultDept> list = fzzy35Sync1102Rep.listApi1102(deptId); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | log.info("-------------没有获取到库区信息------------------"); |
| | | return; |
| | | } |
| | | Api1102 apiData; |
| | | for (DefaultDept sysData : list) { |
| | | for (Fz35DefaultDept sysData : list) { |
| | | |
| | | //TODO |
| | | // apiData = new Api1101(); |