| | |
| | | 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; |
| | | } |
| | | |
| | | |
| | |
| | | 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)) { |