| | |
| | | import com.fzzy.api.entity.Api1210; |
| | | import com.fzzy.api.entity.ApiLog; |
| | | import com.fzzy.api.service.ApiCommonService; |
| | | import com.fzzy.api.service.ApiTriggerService; |
| | | import com.fzzy.api.utils.ContextUtil; |
| | | import com.fzzy.api.view.repository.Api1209Rep; |
| | | import com.fzzy.api.view.repository.Api1210Rep; |
| | |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1209Rep; |
| | | import com.fzzy.async.fzzy40.repository.Fzzy40Sync1210Rep; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | private Api1210Rep api1210Rep; |
| | | @Autowired |
| | | private ApiCommonService commonService; |
| | | @Autowired |
| | | private ApiTriggerService apiTriggerService; |
| | | @Autowired |
| | | private ApiLogRep apiLogRep; |
| | | |
| | |
| | | apiData.setLssl(sysData.getNumber()); |
| | | apiData.setHzsl(sysData.getChangeNumber()); |
| | | apiData.setBzwh(sysData.getApprovalId()); |
| | | apiData.setLspzdm(sysData.getFoodVariety()); |
| | | apiData.setHzqlsxzdm(sysData.getFoodType()); |
| | | apiData.setHzhlsxzdm(sysData.getNewFoodType()); |
| | | String mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSPZ, sysData.getFoodVariety().substring(0, 3)); |
| | | apiData.setLspzdm(mappingCode); |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, sysData.getFoodType()); |
| | | apiData.setHzqlsxzdm(mappingCode); |
| | | mappingCode = apiTriggerService.getMappingCode(Constant.TRIGGER_P_LSXZ, sysData.getFoodType()); |
| | | apiData.setHzhlsxzdm(mappingCode); |
| | | apiData.setHzrq(sysData.getChangeTime()); |
| | | apiData.setCcshr(sysData.getCcshr()); |
| | | apiData.setZjshr(sysData.getZjshr()); |