|
|
|
@ -4,13 +4,11 @@ import com.galaxis.rcs.common.entity.LccBasExecutor; |
|
|
|
import com.galaxis.rcs.common.entity.LccBasLocation; |
|
|
|
import com.galaxis.rcs.common.entity.LccInvLedger; |
|
|
|
import com.querydsl.sql.SQLQuery; |
|
|
|
import com.yvan.workbench.model.request.QueryExecutorReq; |
|
|
|
import com.yvan.workbench.model.request.QueryInvLedgerReq; |
|
|
|
import com.yvan.workbench.model.request.QueryInvLpnReq; |
|
|
|
import com.yvan.workbench.model.request.QueryLocationReq; |
|
|
|
import com.yvan.workbench.model.request.*; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.clever.core.model.request.QueryByPage; |
|
|
|
import org.clever.core.model.request.page.Page; |
|
|
|
import org.clever.core.model.response.R; |
|
|
|
import org.clever.data.jdbc.DaoFactory; |
|
|
|
import org.clever.data.jdbc.QueryDSL; |
|
|
|
import org.clever.data.jdbc.querydsl.utils.QueryDslUtils; |
|
|
|
@ -82,4 +80,13 @@ public class DeviceManager { |
|
|
|
} |
|
|
|
return QueryDslUtils.queryByPage(query, QueryByPage.getCurrent()); |
|
|
|
} |
|
|
|
|
|
|
|
public static R<?> delInvLpn(DelInvLpnReq req) { |
|
|
|
long count = QUERY_DSL.delete(lccInvLpn) |
|
|
|
.where(lccInvLpn.envId.eq(req.getEnvId())) |
|
|
|
.where(lccInvLpn.locCode.eq(req.getLocCode())) |
|
|
|
.where(lccInvLpn.lpn.eq(req.getLpn())) |
|
|
|
.execute(); |
|
|
|
return R.success(count); |
|
|
|
} |
|
|
|
} |
|
|
|
|