|
|
@@ -102,7 +102,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.eq(PjOrder::getBsType, "XS")
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) ) " +
|
|
|
"OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- "OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.apply("FIND_IN_SET( status, '已发货,已收货' ) and busines_date = CURDATE()"));
|
|
|
if (!pjOrderListD.isEmpty()) {
|
|
|
@@ -136,7 +135,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.eq(PjOrder::getBsType, "XS")
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) ) " +
|
|
|
"OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- "OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.apply("FIND_IN_SET( status, '已发货,已收货' ) and DATE_FORMAT(busines_date, '%Y-%m') = DATE_FORMAT(CURRENT_DATE(), '%Y-%m')"));
|
|
|
if (!pjOrderListM.isEmpty()) {
|
|
|
@@ -188,7 +186,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.apply("find_in_set(status,'录入,待确认')")
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) ) " +
|
|
|
"OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- "OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.ge(!quer.getDateList().isEmpty(), PjOrder::getBusinesDate, quer.getDateList().get(0))
|
|
|
.le(!quer.getDateList().isEmpty(), PjOrder::getBusinesDate, quer.getDateList().get(1)));
|
|
|
@@ -328,7 +325,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.eq(PjOrder::getBsType, "XS")
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) ) " +
|
|
|
"OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- "OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.apply("status = '已发货' and busines_date = CURDATE()"));
|
|
|
if (!pjOrderList.isEmpty()) {
|
|
|
@@ -362,7 +358,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.le(PjOrder::getBusinesDate, endDate)
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) ) " +
|
|
|
"OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- "OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.apply("status = '已发货'"));
|
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
|
@@ -412,7 +407,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.le(PjOrder::getBusinesDate, endDate)
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) ) " +
|
|
|
"OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- "OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.apply("status = '已发货'"));
|
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
|
@@ -462,7 +456,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.le(PjOrder::getBusinesDate, endDate)
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3' ) ) " +
|
|
|
"OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- "OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
"OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3' )))")
|
|
|
.apply("status = '已发货'"));
|
|
|
List<Map<String, Object>> mapList = new ArrayList<>();
|
|
|
@@ -519,7 +512,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.le(PjOrder::getBusinesDate, endDate)
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) ) " +
|
|
|
"OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- "OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
"OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.apply("status = '已发货'"));
|
|
|
//销售
|
|
|
@@ -1533,7 +1525,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.eq(PjOrder::getBsType, "XS")
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) )" +
|
|
|
" OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- " OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.eq(ObjectUtils.isNotNull(corpBuySingular.getBusinessSource()), PjOrder::getBusinessSource, corpBuySingular.getBusinessSource())
|
|
|
.like(ObjectUtils.isNotNull(corpBuySingular.getSalerName()), PjOrder::getSalerName, corpBuySingular.getSalerName())
|
|
|
@@ -1591,7 +1582,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.eq(PjOrder::getBsType, "XS")
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) )" +
|
|
|
" OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- " OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.eq(ObjectUtils.isNotNull(corpBuySingular.getBusinessSource()), PjOrder::getBusinessSource, corpBuySingular.getBusinessSource())
|
|
|
.like(ObjectUtils.isNotNull(corpBuySingular.getSalerName()), PjOrder::getSalerName, corpBuySingular.getSalerName())
|
|
|
@@ -1649,7 +1639,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.eq(PjOrder::getBsType, "XS")
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) )" +
|
|
|
" OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- " OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.eq(ObjectUtils.isNotNull(corpBuySingular.getBusinessSource()), PjOrder::getBusinessSource, corpBuySingular.getBusinessSource())
|
|
|
.like(ObjectUtils.isNotNull(corpBuySingular.getSalerName()), PjOrder::getSalerName, corpBuySingular.getSalerName())
|
|
|
@@ -1702,7 +1691,6 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
.eq(PjOrder::getBsType, "XS")
|
|
|
.apply("(( business_source = '外部销售' AND FIND_IN_SET( actual_payment_status, '2,3,4' ) )" +
|
|
|
" OR (business_source = '内部销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
- " OR (business_source = '共享销售' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' ))" +
|
|
|
" OR (business_source = '额度支付' AND FIND_IN_SET( actual_payment_status, '0,1,2,3,4' )))")
|
|
|
.eq(ObjectUtils.isNotNull(corpBuySingular.getBusinessSource()), PjOrder::getBusinessSource, corpBuySingular.getBusinessSource())
|
|
|
.like(ObjectUtils.isNotNull(corpBuySingular.getSalerName()), PjOrder::getSalerName, corpBuySingular.getSalerName())
|