CZT
2023-08-14 3b4b16061d0373e3eb5c6473586c6c6edd9393de
src/main/java/com/fzzy/async/fzzy35/impl/Fzzy35Sync1403.java
@@ -4,7 +4,6 @@
import com.fzzy.api.entity.*;
import com.fzzy.api.utils.ContextUtil;
import com.fzzy.api.view.repository.*;
import com.fzzy.async.fzzy35.entity.Fz35CheckItem;
import com.fzzy.async.fzzy35.entity.Fz35Plan;
import com.fzzy.async.fzzy35.repository.Fzzy35Sync1403Rep;
import lombok.extern.slf4j.Slf4j;
@@ -16,7 +15,7 @@
/**
 * 轮换计划同步
 *
 * @author chen
 * @author czt
 * @date 2023-05-14 19:51
 */
@Slf4j
@@ -57,9 +56,10 @@
            Api1403 api1403;
            List<Api1101> api1101List;
            List<Api1403> api1403List;
            for (Fz35Plan fz35Plan : list) {
                api1403 = new Api1403();
                api1403.setLhjhdh(fz35Plan.getId());
                api1403.setLhjhdh(kqdm.substring(0, 18) + fz35Plan.getId().split("_")[1] + fz35Plan.getId().split("_")[2]);
                api1403.setJhwh(fz35Plan.getReferenceNumber());
                api1403.setJhmc(fz35Plan.getName());
                api1403.setJhnd(fz35Plan.getYear());
@@ -70,10 +70,16 @@
                    api1403.setJhxddw(api1101List.get(0).getDwdm());
                }
                api1403.setJhxdsj(fz35Plan.getCreateTime());
                api1403.setCzbz(Constant.CZBZ_I);
                api1403.setZhgxsj(new Date());
                api1403.setKqdm(kqdm);
                api1403.setBizId(fz35Plan.getId());
                api1403List = api1403Rep.getDataByLhjhdh(api1403.getLhjhdh());
                if(null == api1403List || api1403List.isEmpty()){
                    api1403.setCzbz(Constant.CZBZ_I);
                }else {
                    api1403.setCzbz(api1403List.get(0).getCzbz());
                }
                api1403Rep.save(api1403);
            }
        } catch (Exception e) {