package com.zy.nc.task.handler; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.zy.asrs.task.AbstractHandler; import com.zy.asrs.task.core.ReturnT; import com.zy.nc.entity.NccBdCustomerWms; import com.zy.nc.entity.NccSaleDbckmxb; import com.zy.nc.service.NccBdCustomerWmsService; import com.zy.nc.service.NccCgCgdhdWmsService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service @Slf4j public class BaseDataHandler extends AbstractHandler { @Autowired private NccBdCustomerWmsService nccBdCustomerWmsService; @Autowired private NccCgCgdhdWmsService nccCgCgdhdWmsService; /** * * * @return */ public ReturnT start1() { nccBdCustomerWmsService.selectList(new EntityWrapper().ne("wms_flag",1)) log.info("shuju:{}", JSONObject.toJSON(nccSaleXsckmx)); return SUCCESS; } /** * * * @return */ public ReturnT start2() { NccSaleDbckmxb nccSaleDbckmxb = NccCgCgdhdWmsService.selectById("1001A1100000000H9KKJ"); log.info("shuju:{}", JSONObject.toJSON(nccSaleDbckmxb)); return SUCCESS; } }