Compare commits
No commits in common. "739976b1f97bb4d48ef1bf2bf37c72d85fe5155a" and "a8452e1f526d720119d173885db44210e38d6dd0" have entirely different histories.
739976b1f9
...
a8452e1f52
|
|
@ -10,9 +10,15 @@ import com.ghy.customer.domain.Customer;
|
||||||
import com.ghy.customer.domain.CustomerAddress;
|
import com.ghy.customer.domain.CustomerAddress;
|
||||||
import com.ghy.customer.service.CustomerAddressService;
|
import com.ghy.customer.service.CustomerAddressService;
|
||||||
import com.ghy.customer.service.CustomerService;
|
import com.ghy.customer.service.CustomerService;
|
||||||
import com.ghy.goods.domain.*;
|
import com.ghy.goods.domain.DeptGoodsCategory;
|
||||||
|
import com.ghy.goods.domain.Goods;
|
||||||
|
import com.ghy.goods.domain.GoodsImgs;
|
||||||
|
import com.ghy.goods.domain.GoodsStandard;
|
||||||
import com.ghy.goods.request.AppGoodsRequest;
|
import com.ghy.goods.request.AppGoodsRequest;
|
||||||
import com.ghy.goods.service.*;
|
import com.ghy.goods.service.DeptGoodsCategoryService;
|
||||||
|
import com.ghy.goods.service.GoodsImgsService;
|
||||||
|
import com.ghy.goods.service.GoodsService;
|
||||||
|
import com.ghy.goods.service.GoodsStandardService;
|
||||||
import com.ghy.order.domain.*;
|
import com.ghy.order.domain.*;
|
||||||
import com.ghy.order.request.AppOrderAssignRequest;
|
import com.ghy.order.request.AppOrderAssignRequest;
|
||||||
import com.ghy.order.request.AppOrderRequest;
|
import com.ghy.order.request.AppOrderRequest;
|
||||||
|
|
@ -105,9 +111,6 @@ public class OrderController extends BaseController {
|
||||||
@Resource
|
@Resource
|
||||||
private GoodsImgsService goodsImgsService;
|
private GoodsImgsService goodsImgsService;
|
||||||
|
|
||||||
@Resource
|
|
||||||
private GoodsCategoryService goodsCategoryService;
|
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/imgs")
|
@GetMapping("/imgs")
|
||||||
public String orderImgs(Long orderId, ModelMap mmap){
|
public String orderImgs(Long orderId, ModelMap mmap){
|
||||||
|
|
@ -263,9 +266,6 @@ public class OrderController extends BaseController {
|
||||||
orderMaster.setGoodsBrand(request.getGoodsBrand());
|
orderMaster.setGoodsBrand(request.getGoodsBrand());
|
||||||
orderMaster.setGoodsSpecification(request.getGoodsSpecification());
|
orderMaster.setGoodsSpecification(request.getGoodsSpecification());
|
||||||
orderMaster.setConsultMode(request.getConsultMode());
|
orderMaster.setConsultMode(request.getConsultMode());
|
||||||
if("01".equalsIgnoreCase(orderMaster.getConsultMode())){
|
|
||||||
orderMaster.setOrderMode("02");
|
|
||||||
}
|
|
||||||
// 存在登陆用户的情况下
|
// 存在登陆用户的情况下
|
||||||
if(getSysUser() != null){
|
if(getSysUser() != null){
|
||||||
orderMaster.setCreateBy(getSysUser().getUserId().toString());
|
orderMaster.setCreateBy(getSysUser().getUserId().toString());
|
||||||
|
|
@ -390,7 +390,7 @@ public class OrderController extends BaseController {
|
||||||
return AjaxResult.error("派单金额不能大于订单总金额");
|
return AjaxResult.error("派单金额不能大于订单总金额");
|
||||||
}
|
}
|
||||||
boolean checkInTeam = workerService.checkInTeam(assignWorker.getWorkerId(), acceptWorker.getWorkerId());
|
boolean checkInTeam = workerService.checkInTeam(assignWorker.getWorkerId(), acceptWorker.getWorkerId());
|
||||||
// Assert.isTrue(checkInTeam, "接单师傅不在本团队");
|
Assert.isTrue(checkInTeam, "接单师傅不在本团队");
|
||||||
}
|
}
|
||||||
// 创建子订单
|
// 创建子订单
|
||||||
OrderDetail od = new OrderDetail();
|
OrderDetail od = new OrderDetail();
|
||||||
|
|
@ -1389,36 +1389,6 @@ public class OrderController extends BaseController {
|
||||||
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
||||||
|
|
||||||
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
||||||
// 填充商品三级类目
|
|
||||||
if(goods.getDeptGoodsCategoryId() != null){
|
|
||||||
Long categoryId = null;
|
|
||||||
// 前端发单和后台派单
|
|
||||||
if(com.ghy.common.utils.StringUtils.isEmpty(orderMaster.getOrderMode())){
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(categoryId != null){
|
|
||||||
GoodsCategory one = goodsCategoryService.selectById(categoryId);
|
|
||||||
if(one != null && one.getParentCategoryId() != null){
|
|
||||||
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
|
||||||
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
|
||||||
if(three != null){
|
|
||||||
goods.setGoodsName(three.getGoodsCategoryName()
|
|
||||||
+ "-" + two.getGoodsCategoryName()
|
|
||||||
+ "-" + one.getGoodsCategoryName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 财务信息
|
// 财务信息
|
||||||
FinancialMaster financialMaster = financialMasterService.selectByOrderMasterId(master.getId());
|
FinancialMaster financialMaster = financialMasterService.selectByOrderMasterId(master.getId());
|
||||||
|
|
@ -1522,36 +1492,6 @@ public class OrderController extends BaseController {
|
||||||
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
||||||
|
|
||||||
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
||||||
// 填充商品三级类目
|
|
||||||
if(goods.getDeptGoodsCategoryId() != null){
|
|
||||||
Long categoryId = null;
|
|
||||||
// 前端发单和后台派单
|
|
||||||
if(com.ghy.common.utils.StringUtils.isEmpty(orderMaster.getOrderMode())){
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(categoryId != null){
|
|
||||||
GoodsCategory one = goodsCategoryService.selectById(categoryId);
|
|
||||||
if(one != null && one.getParentCategoryId() != null){
|
|
||||||
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
|
||||||
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
|
||||||
if(three != null){
|
|
||||||
goods.setGoodsName(three.getGoodsCategoryName()
|
|
||||||
+ "-" + two.getGoodsCategoryName()
|
|
||||||
+ "-" + one.getGoodsCategoryName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 财务信息
|
// 财务信息
|
||||||
FinancialDetail financialDetail = financialDetailService.selectByOrderDetailId(detail.getId());
|
FinancialDetail financialDetail = financialDetailService.selectByOrderDetailId(detail.getId());
|
||||||
|
|
|
||||||
|
|
@ -205,21 +205,13 @@ public class OrderDetailController extends BaseController {
|
||||||
detail.setGoods(good);
|
detail.setGoods(good);
|
||||||
// 填充商品三级类目
|
// 填充商品三级类目
|
||||||
if(good.getDeptGoodsCategoryId() != null){
|
if(good.getDeptGoodsCategoryId() != null){
|
||||||
Long categoryId = null;
|
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(good.getDeptGoodsCategoryId());
|
||||||
// 前端发单和后台派单
|
if(deptGoodsCategory == null){
|
||||||
if(StringUtils.isEmpty(orderMaster.getOrderMode())){
|
deptGoodsCategory = new DeptGoodsCategory();
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(good.getDeptGoodsCategoryId());
|
deptGoodsCategory.setGoodsCategoryId(good.getDeptGoodsCategoryId());
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(good.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(categoryId != null){
|
if(deptGoodsCategory != null){
|
||||||
GoodsCategory one = goodsCategoryService.selectById(categoryId);
|
GoodsCategory one = goodsCategoryService.selectById(deptGoodsCategory.getGoodsCategoryId());
|
||||||
if(one != null && one.getParentCategoryId() != null){
|
if(one != null && one.getParentCategoryId() != null){
|
||||||
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
if(two != null && two.getParentCategoryId() != null){
|
||||||
|
|
@ -325,34 +317,21 @@ public class OrderDetailController extends BaseController {
|
||||||
// 商品信息
|
// 商品信息
|
||||||
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
||||||
|
|
||||||
Goods goods = goodsService.selectById(orderMaster.getGoodsId());
|
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
||||||
if (goods != null) {
|
if (goods != null) {
|
||||||
// 填充商品三级类目
|
// 填充商品三级类目
|
||||||
if(goods.getDeptGoodsCategoryId() != null){
|
if(goods.getDeptGoodsCategoryId() != null){
|
||||||
Long categoryId = null;
|
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
||||||
// 前端发单和后台派单
|
if(deptGoodsCategory != null){
|
||||||
if(StringUtils.isEmpty(orderMaster.getOrderMode())){
|
GoodsCategory one = goodsCategoryService.selectById(deptGoodsCategory.getGoodsCategoryId());
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(categoryId != null){
|
|
||||||
GoodsCategory one = goodsCategoryService.selectById(categoryId);
|
|
||||||
if(one != null && one.getParentCategoryId() != null){
|
if(one != null && one.getParentCategoryId() != null){
|
||||||
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
if(two != null && two.getParentCategoryId() != null){
|
||||||
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
||||||
if(three != null){
|
if(three != null){
|
||||||
goods.setGoodsName(three.getGoodsCategoryName()
|
orderListResponse.setTotalName(three.getGoodsCategoryName()
|
||||||
+ "-" + two.getGoodsCategoryName()
|
+ "-" + two.getGoodsCategoryName()
|
||||||
+ "-" + one.getGoodsCategoryName());
|
+ "-" + one.getGoodsCategoryName());
|
||||||
orderListResponse.setTotalName(goods.getGoodsName());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -564,37 +543,8 @@ public class OrderDetailController extends BaseController {
|
||||||
// 商品信息
|
// 商品信息
|
||||||
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
||||||
|
|
||||||
Goods goods = goodsService.selectById(orderMaster.getGoodsId());
|
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
||||||
// 填充商品三级类目
|
|
||||||
if(goods.getDeptGoodsCategoryId() != null){
|
|
||||||
Long categoryId = null;
|
|
||||||
// 前端发单和后台派单
|
|
||||||
if(StringUtils.isEmpty(orderMaster.getOrderMode())){
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(categoryId != null){
|
|
||||||
GoodsCategory one = goodsCategoryService.selectById(categoryId);
|
|
||||||
if(one != null && one.getParentCategoryId() != null){
|
|
||||||
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
|
||||||
GoodsCategory three = goodsCategoryService.selectById(two.getParentCategoryId());
|
|
||||||
if(three != null){
|
|
||||||
goods.setGoodsName(three.getGoodsCategoryName()
|
|
||||||
+ "-" + two.getGoodsCategoryName()
|
|
||||||
+ "-" + one.getGoodsCategoryName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// 财务信息
|
// 财务信息
|
||||||
FinancialDetail financialDetail = financialDetailService.selectByOrderDetailId(detail.getId());
|
FinancialDetail financialDetail = financialDetailService.selectByOrderDetailId(detail.getId());
|
||||||
BigDecimal detailPayMoney = financialDetail.getPayMoney();
|
BigDecimal detailPayMoney = financialDetail.getPayMoney();
|
||||||
|
|
@ -684,7 +634,6 @@ public class OrderDetailController extends BaseController {
|
||||||
orderListResponse.setDrawCashTime(detail.getDrawCashTime());
|
orderListResponse.setDrawCashTime(detail.getDrawCashTime());
|
||||||
orderListResponse.setDrawCashStatus(detail.getDrawCashStatus());
|
orderListResponse.setDrawCashStatus(detail.getDrawCashStatus());
|
||||||
orderListResponse.setArrivalTime(detail.getArrivalTime());
|
orderListResponse.setArrivalTime(detail.getArrivalTime());
|
||||||
orderListResponse.setConsultMode(orderMaster.getConsultMode());
|
|
||||||
orderListResponses.add(orderListResponse);
|
orderListResponses.add(orderListResponse);
|
||||||
});
|
});
|
||||||
return voDataTable(orderListResponses, list);
|
return voDataTable(orderListResponses, list);
|
||||||
|
|
|
||||||
|
|
@ -639,21 +639,13 @@ public class OrderMasterController extends BaseController {
|
||||||
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
Goods goods = goodsService.selectById(goodsStandard.getGoodsId());
|
||||||
// 填充商品三级类目
|
// 填充商品三级类目
|
||||||
if(goods.getDeptGoodsCategoryId() != null){
|
if(goods.getDeptGoodsCategoryId() != null){
|
||||||
Long categoryId = null;
|
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
||||||
// 前端发单和后台派单
|
if(deptGoodsCategory == null){
|
||||||
if(com.ghy.common.utils.StringUtils.isEmpty(master.getOrderMode())){
|
deptGoodsCategory = new DeptGoodsCategory();
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
deptGoodsCategory.setGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(categoryId != null){
|
if(deptGoodsCategory != null){
|
||||||
GoodsCategory one = goodsCategoryService.selectById(categoryId);
|
GoodsCategory one = goodsCategoryService.selectById(deptGoodsCategory.getGoodsCategoryId());
|
||||||
if(one != null && one.getParentCategoryId() != null){
|
if(one != null && one.getParentCategoryId() != null){
|
||||||
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
if(two != null && two.getParentCategoryId() != null){
|
||||||
|
|
@ -1062,21 +1054,9 @@ public class OrderMasterController extends BaseController {
|
||||||
if (goods != null) {
|
if (goods != null) {
|
||||||
// 填充商品三级类目
|
// 填充商品三级类目
|
||||||
if(goods.getDeptGoodsCategoryId() != null){
|
if(goods.getDeptGoodsCategoryId() != null){
|
||||||
Long categoryId = null;
|
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
||||||
// 前端发单和后台派单
|
if(deptGoodsCategory != null){
|
||||||
if(com.ghy.common.utils.StringUtils.isEmpty(orderMaster.getOrderMode())){
|
GoodsCategory one = goodsCategoryService.selectById(deptGoodsCategory.getGoodsCategoryId());
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goods.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(categoryId != null){
|
|
||||||
GoodsCategory one = goodsCategoryService.selectById(categoryId);
|
|
||||||
if(one != null && one.getParentCategoryId() != null){
|
if(one != null && one.getParentCategoryId() != null){
|
||||||
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
if(two != null && two.getParentCategoryId() != null){
|
||||||
|
|
@ -1231,21 +1211,13 @@ public class OrderMasterController extends BaseController {
|
||||||
master.setGoods(good);
|
master.setGoods(good);
|
||||||
// 填充商品三级类目
|
// 填充商品三级类目
|
||||||
if(good.getDeptGoodsCategoryId() != null){
|
if(good.getDeptGoodsCategoryId() != null){
|
||||||
Long categoryId = null;
|
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(good.getDeptGoodsCategoryId());
|
||||||
// 前端发单和后台派单
|
if(deptGoodsCategory == null){
|
||||||
if(com.ghy.common.utils.StringUtils.isEmpty(master.getOrderMode())){
|
deptGoodsCategory = new DeptGoodsCategory();
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(good.getDeptGoodsCategoryId());
|
deptGoodsCategory.setGoodsCategoryId(good.getDeptGoodsCategoryId());
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}else {
|
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(good.getDeptGoodsCategoryId());
|
|
||||||
if(deptGoodsCategory != null){
|
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(categoryId != null){
|
if(deptGoodsCategory != null){
|
||||||
GoodsCategory one = goodsCategoryService.selectById(categoryId);
|
GoodsCategory one = goodsCategoryService.selectById(deptGoodsCategory.getGoodsCategoryId());
|
||||||
if(one != null && one.getParentCategoryId() != null){
|
if(one != null && one.getParentCategoryId() != null){
|
||||||
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
GoodsCategory two = goodsCategoryService.selectById(one.getParentCategoryId());
|
||||||
if(two != null && two.getParentCategoryId() != null){
|
if(two != null && two.getParentCategoryId() != null){
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ public class WorkerController extends BaseController {
|
||||||
startPage();
|
startPage();
|
||||||
Worker worker = new Worker();
|
Worker worker = new Worker();
|
||||||
worker.setWorkerIds(CollectionUtils.isNotEmpty(resWorkerIds) ? resWorkerIds : null);
|
worker.setWorkerIds(CollectionUtils.isNotEmpty(resWorkerIds) ? resWorkerIds : null);
|
||||||
worker.setKeyWords(workerListRequest.getWorkerName());
|
worker.setName(workerListRequest.getWorkerName());
|
||||||
if(this.getSysUser().getDept().getParentId() != 101){
|
if(this.getSysUser().getDept().getParentId() != 101){
|
||||||
worker.setDeptId(this.getSysUser().getDept().getParentId());
|
worker.setDeptId(this.getSysUser().getDept().getParentId());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,4 @@ public class WorkerListRequest {
|
||||||
private Long exceptParentAreaId;
|
private Long exceptParentAreaId;
|
||||||
|
|
||||||
private boolean justShowCurWorkerArea;
|
private boolean justShowCurWorkerArea;
|
||||||
|
|
||||||
private String keyWords;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-board input-content m-t">
|
<div class="flex-board input-content m-t">
|
||||||
<label class="form-control-label">名称/手机号:</label>
|
<label class="form-control-label">人员名称:</label>
|
||||||
<input name="keyWords" type="text" class="form-control normal-input m-r">
|
<input name="workerName" type="text" class="form-control normal-input m-r">
|
||||||
</div>
|
</div>
|
||||||
<div class="m-t">
|
<div class="m-t">
|
||||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search('workerForm')"><i
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search('workerForm')"><i
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,4 @@ public class Worker extends BaseEntity {
|
||||||
private List<Long> goodsCategoryIds;
|
private List<Long> goodsCategoryIds;
|
||||||
|
|
||||||
private Long exceptParentAreaId;
|
private Long exceptParentAreaId;
|
||||||
|
|
||||||
private String keyWords;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,10 +66,6 @@
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="keyWords != null and keyWords != ''">
|
|
||||||
AND (w.name LIKE '%${keyWords}%'
|
|
||||||
OR w.phone LIKE '%${keyWords}%')
|
|
||||||
</if>
|
|
||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
AND w.name LIKE '%${name}%'
|
AND w.name LIKE '%${name}%'
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue