提交 ecac129d authored 作者: 邓砥奕's avatar 邓砥奕

更新

上级 b2cf3f6d
...@@ -10,6 +10,7 @@ import com.tykj.dev.device.allot.service.AllotBackBillService; ...@@ -10,6 +10,7 @@ import com.tykj.dev.device.allot.service.AllotBackBillService;
import com.tykj.dev.device.allot.subject.domin.AllotBackBill; import com.tykj.dev.device.allot.subject.domin.AllotBackBill;
import com.tykj.dev.device.allot.subject.vo.AllotBillSelectVo; import com.tykj.dev.device.allot.subject.vo.AllotBillSelectVo;
import com.tykj.dev.device.user.subject.service.UserPublicService; import com.tykj.dev.device.user.subject.service.UserPublicService;
import com.tykj.dev.device.user.util.UserUtils;
import com.tykj.dev.misc.exception.ApiException; import com.tykj.dev.misc.exception.ApiException;
import com.tykj.dev.misc.utils.JacksonUtil; import com.tykj.dev.misc.utils.JacksonUtil;
import com.tykj.dev.misc.utils.ResultUtil; import com.tykj.dev.misc.utils.ResultUtil;
...@@ -41,6 +42,9 @@ public class AllotBackBillServiceImpl implements AllotBackBillService { ...@@ -41,6 +42,9 @@ public class AllotBackBillServiceImpl implements AllotBackBillService {
@Autowired @Autowired
private UserPublicService userPublicService; private UserPublicService userPublicService;
@Autowired
private UserUtils userUtils;
@Override @Override
public AllotBackBill addEntity(AllotBackBill allotBackBill) { public AllotBackBill addEntity(AllotBackBill allotBackBill) {
AllotBackBill allotBackBill1 = allotBackBillDao.save(allotBackBill); AllotBackBill allotBackBill1 = allotBackBillDao.save(allotBackBill);
...@@ -103,6 +107,10 @@ public class AllotBackBillServiceImpl implements AllotBackBillService { ...@@ -103,6 +107,10 @@ public class AllotBackBillServiceImpl implements AllotBackBillService {
private Specification<AllotBackBill> getSelectSpecification(AllotBillSelectVo allotBillSelectVo) { private Specification<AllotBackBill> getSelectSpecification(AllotBillSelectVo allotBillSelectVo) {
PredicateBuilder<AllotBackBill> predicateBuilder = Specifications.and(); PredicateBuilder<AllotBackBill> predicateBuilder = Specifications.and();
PredicateBuilder<AllotBackBill> predicateBuilder1 = Specifications.or();
predicateBuilder1.eq("sendUnit", userUtils.getCurrentUserUnitName());
predicateBuilder1.eq("receiveUnit", userUtils.getCurrentUserUnitName());
predicateBuilder.predicate(predicateBuilder1.build());
if (allotBillSelectVo != null) { if (allotBillSelectVo != null) {
if (allotBillSelectVo.getReplayNumber() != null) { if (allotBillSelectVo.getReplayNumber() != null) {
predicateBuilder.eq("replayNumber", allotBillSelectVo.getReplayNumber()); predicateBuilder.eq("replayNumber", allotBillSelectVo.getReplayNumber());
......
...@@ -10,6 +10,7 @@ import com.tykj.dev.device.allot.service.AllotBillService; ...@@ -10,6 +10,7 @@ import com.tykj.dev.device.allot.service.AllotBillService;
import com.tykj.dev.device.allot.subject.domin.AllotBill; import com.tykj.dev.device.allot.subject.domin.AllotBill;
import com.tykj.dev.device.allot.subject.vo.AllotBillSelectVo; import com.tykj.dev.device.allot.subject.vo.AllotBillSelectVo;
import com.tykj.dev.device.user.subject.service.UserPublicService; import com.tykj.dev.device.user.subject.service.UserPublicService;
import com.tykj.dev.device.user.util.UserUtils;
import com.tykj.dev.misc.utils.JacksonUtil; import com.tykj.dev.misc.utils.JacksonUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
...@@ -39,6 +40,9 @@ public class AllotBillServiceImpl implements AllotBillService { ...@@ -39,6 +40,9 @@ public class AllotBillServiceImpl implements AllotBillService {
@Autowired @Autowired
private BlockChainUtil blockChainUtil; private BlockChainUtil blockChainUtil;
@Autowired
private UserUtils userUtils;
@Override @Override
public AllotBill addEntity(AllotBill allotBillEntity) { public AllotBill addEntity(AllotBill allotBillEntity) {
AllotBill allotBill = allotBillDao.save(allotBillEntity); AllotBill allotBill = allotBillDao.save(allotBillEntity);
...@@ -108,6 +112,10 @@ public class AllotBillServiceImpl implements AllotBillService { ...@@ -108,6 +112,10 @@ public class AllotBillServiceImpl implements AllotBillService {
private Specification<AllotBill> getSelectSpecification(AllotBillSelectVo allotBillSelectVo) { private Specification<AllotBill> getSelectSpecification(AllotBillSelectVo allotBillSelectVo) {
PredicateBuilder<AllotBill> predicateBuilder = Specifications.and(); PredicateBuilder<AllotBill> predicateBuilder = Specifications.and();
PredicateBuilder<AllotBill> predicateBuilder1 = Specifications.or();
predicateBuilder1.eq("sendUnit", userUtils.getCurrentUserUnitName());
predicateBuilder1.eq("receiveUnit", userUtils.getCurrentUserUnitName());
predicateBuilder.predicate(predicateBuilder1.build());
if (allotBillSelectVo != null) { if (allotBillSelectVo != null) {
if (allotBillSelectVo.getReplayNumber() != null) { if (allotBillSelectVo.getReplayNumber() != null) {
predicateBuilder.eq("replayNumber", allotBillSelectVo.getReplayNumber()); predicateBuilder.eq("replayNumber", allotBillSelectVo.getReplayNumber());
......
...@@ -34,7 +34,7 @@ public class DeviceInLibVo { ...@@ -34,7 +34,7 @@ public class DeviceInLibVo {
*/ */
private int proofResult; private int proofResult;
private int applyType; private int invisibleRange;
private int style; private int style;
......
...@@ -35,7 +35,7 @@ public class DeviceNotInLibVo { ...@@ -35,7 +35,7 @@ public class DeviceNotInLibVo {
private int status; private int status;
private int applyType; private int invisibleRange;;
private int style; private int style;
......
...@@ -318,7 +318,7 @@ public class ObjTransUtil { ...@@ -318,7 +318,7 @@ public class ObjTransUtil {
device.getRfidSurfaceId(), device.getRfidSurfaceId(),
device.getRfidCardId(), device.getRfidCardId(),
proofResult, proofResult,
packingLibrary.getApplyType(), device.getInvisibleRange(),
packingLibrary.getStyle(), packingLibrary.getStyle(),
device.getSecretLevel() device.getSecretLevel()
); );
...@@ -337,7 +337,7 @@ public class ObjTransUtil { ...@@ -337,7 +337,7 @@ public class ObjTransUtil {
device.getLocationUnit(), device.getLocationUnit(),
device.getOwnUnit(), device.getOwnUnit(),
device.getLifeStatus(), device.getLifeStatus(),
packingLibrary.getApplyType(), device.getInvisibleRange(),
packingLibrary.getStyle(), packingLibrary.getStyle(),
device.getSecretLevel() device.getSecretLevel()
); );
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论