yangys
2024-10-30 d51367b0fe1a062d3eae47e3f7555ab3e56e6a08
smart-man-boot/src/main/java/com/qianwen/smartman/modules/perf/service/impl/EmployeeSendServiceImpl.java
@@ -9,22 +9,24 @@
import com.qianwen.core.tool.utils.Func;
import com.qianwen.smartman.modules.smis.dto.MachineExtDTO;
import com.qianwen.smartman.modules.smis.service.IMachineService;
import com.qianwen.smartman.modules.perf.forestClient.PerfForestClient;
//import com.qianwen.smartman.modules.perf.forestClient.PerfForestClient;
import com.qianwen.smartman.modules.perf.service.IEmployeeSendService;
import com.qianwen.smartman.modules.sync.constant.QyWechatConstant;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
/**
 * 可能该类没有用了
 */
@Service
public class EmployeeSendServiceImpl implements IEmployeeSendService {
    private static final Logger log = LoggerFactory.getLogger(EmployeeSendServiceImpl.class);
    private final IMachineService machineService;
    private final PerfForestClient forestClient;
    //private final PerfForestClient forestClient;
    public EmployeeSendServiceImpl(final IMachineService machineService, final PerfForestClient forestClient) {
    public EmployeeSendServiceImpl(final IMachineService machineService) {//, final PerfForestClient forestClient
        this.machineService = machineService;
        this.forestClient = forestClient;
        //this.forestClient = forestClient;
    }
    
@@ -38,7 +40,7 @@
                String dmpId = this.machineService.queryDateTypeState(wId);
                if (Func.isNotBlank(dmpId)) {
                    try {
                        String employeeOnOff = this.forestClient.perfEmployeeOnOff(ext.getExtendId(), dmpId);
                        String employeeOnOff = "{}";//yangys 去掉了,241030this.forestClient.perfEmployeeOnOff(ext.getExtendId(), dmpId);
                        JSONObject jsonObject = JSON.parseObject(employeeOnOff);
                        Boolean success = jsonObject.getBoolean(QyWechatConstant.CALLBACK_RESULT);
                        if (Boolean.FALSE.equals(success)) {