| | |
| | | import com.fzzy.api.view.repository.ApiLogRep; |
| | | import com.fzzy.async.whhpjl.entity.Fz40WhjlDefaultDept; |
| | | import com.fzzy.async.whhpjl.repository.Fz40ToWhjlSync1101Rep; |
| | | import com.fzzy.whjl.WhjlConstant; |
| | | import com.fzzy.whjl.dto.WhjlApi1101; |
| | | import com.fzzy.otherview.whhpjl.WhjlConstant; |
| | | import com.fzzy.otherview.whhpjl.dto.WhjlApi1101; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | * |
| | | * @author: czt |
| | | * @update-time: 2023/08/04 |
| | | * |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | |
| | | apiLog.setType(ApiLog.TYPE_SYNC); |
| | | apiLog.setKqdm(deptId); |
| | | apiLog.setUploadTime(new Date()); |
| | | apiLog.setInteId(Constant.API_CODE_1111); |
| | | apiLog.setInteId(Constant.API_CODE_1101); |
| | | apiLog.setStatus(99); |
| | | apiLog.setId(ContextUtil.getUUID()); |
| | | try { |
| | |
| | | apiData.setQywd(sysData.getLat()); //企业纬度 |
| | | apiData.setQyxzqhmc(sysData.getCountry()); //企业行政区划名称 |
| | | apiData.setQyxzqhdm(sysData.getCountry()); //企业行政区划代码 |
| | | apiData.setSfyx("是"); //企业行政区划代码 |
| | | if(StringUtils.isNotEmpty(sysData.getVal()) && "0".equals(sysData.getVal())){ |
| | | apiData.setSfyx("是"); //是否启用 |
| | | if (StringUtils.isNotEmpty(sysData.getVal()) && "0".equals(sysData.getVal())) { |
| | | apiData.setSfyx("否"); |
| | | } |
| | | |