md
This commit is contained in:
parent
3fe4f3abf2
commit
53c19671be
@ -363,12 +363,7 @@ public class Oms2cWaybillController extends BaseController
|
|||||||
@GetMapping("/getCustOrderStatData")
|
@GetMapping("/getCustOrderStatData")
|
||||||
public AjaxResult getCustOrderStatData()
|
public AjaxResult getCustOrderStatData()
|
||||||
{
|
{
|
||||||
JSONObject jData = new JSONObject();
|
return AjaxResult.success("成功",emisWaybillService.selectUserSendAndReciveOrderCount(getLoginUser().getUser().getCustomerCode()));
|
||||||
jData.put("sendNum",0);
|
|
||||||
jData.put("recieveNum",0);
|
|
||||||
|
|
||||||
return AjaxResult.success("成功",jData);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -34,6 +34,21 @@ public interface EmisWaybillMapper extends BaseMapper<EmisWaybill>
|
|||||||
*/
|
*/
|
||||||
public List<EmisWaybill> selectUserOrderList(EmisWaybill emisWaybill);
|
public List<EmisWaybill> selectUserOrderList(EmisWaybill emisWaybill);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取寄件订单数量
|
||||||
|
* @param customerCode
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Long selectUserSendOrderCount(@Param("customerCode") String customerCode);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取收件订单数量
|
||||||
|
* @param customerCode
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Long selectUserRecieveOrderCount(@Param("customerCode") String customerCode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 专属业务员列表
|
* 专属业务员列表
|
||||||
* @param customerCode
|
* @param customerCode
|
||||||
@ -44,7 +59,6 @@ public interface EmisWaybillMapper extends BaseMapper<EmisWaybill>
|
|||||||
@Param("searchValue")String searchValue,
|
@Param("searchValue")String searchValue,
|
||||||
@Param("blDefaultFlag")String blDefaultFlag);
|
@Param("blDefaultFlag")String blDefaultFlag);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务员信息查询
|
* 业务员信息查询
|
||||||
* @param searchValue
|
* @param searchValue
|
||||||
|
|||||||
@ -15,6 +15,7 @@ import java.util.Map;
|
|||||||
import com.xdadan.erp.oms.domain.EmisWaybill;
|
import com.xdadan.erp.oms.domain.EmisWaybill;
|
||||||
import com.xdadan.erp.oms.domain.exception.EmisBizError;
|
import com.xdadan.erp.oms.domain.exception.EmisBizError;
|
||||||
import com.xdadan.erp.oms.domain.vo.Salesmen;
|
import com.xdadan.erp.oms.domain.vo.Salesmen;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName EmisWaybillService
|
* @ClassName EmisWaybillService
|
||||||
@ -32,6 +33,10 @@ public interface IEmisWaybillService
|
|||||||
*/
|
*/
|
||||||
public List<EmisWaybill> selectUserOrderList(EmisWaybill emisWaybill);
|
public List<EmisWaybill> selectUserOrderList(EmisWaybill emisWaybill);
|
||||||
|
|
||||||
|
|
||||||
|
public Map selectUserSendAndReciveOrderCount(String customerCode);
|
||||||
|
|
||||||
|
|
||||||
public List<Map> selectUserBindSalesmenList(Salesmen salesmen);
|
public List<Map> selectUserBindSalesmenList(Salesmen salesmen);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -65,10 +65,21 @@ public class EmisWaybillServiceImpl implements IEmisWaybillService
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map selectUserSendAndReciveOrderCount(String customerCode)
|
||||||
|
{
|
||||||
|
Map cntMap = new HashMap();
|
||||||
|
cntMap.put("sendNum",emisWaybillMapper.selectUserSendOrderCount(customerCode));
|
||||||
|
cntMap.put("recieveNum",emisWaybillMapper.selectUserRecieveOrderCount(customerCode));
|
||||||
|
|
||||||
|
return cntMap;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询业务员
|
* 查询业务员
|
||||||
*
|
*
|
||||||
* @param searchValue 运单列表
|
* @param salesmen
|
||||||
* @return 运单列表
|
* @return 运单列表
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -523,6 +523,44 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectUserSendOrderCount" parameterType="String" resultType="long">
|
||||||
|
select count(1) as cnt from emis_waybill a
|
||||||
|
<where>
|
||||||
|
a.del_flag='0'
|
||||||
|
|
||||||
|
<!-- 寄件 -->
|
||||||
|
and a.customer_code=#{customerCode}
|
||||||
|
and not exists(
|
||||||
|
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` !=null and ewpi.`problem_type` in(173,170,151)
|
||||||
|
)
|
||||||
|
|
||||||
|
</where>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectUserRecieveOrderCount" parameterType="String" resultType="long">
|
||||||
|
select count(1) as cnt from emis_waybill a
|
||||||
|
<where>
|
||||||
|
a.del_flag='0'
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 收件 -->
|
||||||
|
and exists (select 1 from emis_customer_user ecu where a.del_flag='0' and a.receive_mobile=ecu.phone and ecu.customer_code=#{customerCode} )
|
||||||
|
|
||||||
|
and not exists(
|
||||||
|
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` !=null and ewpi.`problem_type` in(173,170,151)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</where>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectUserBindSalesmenList" resultType="map">
|
<select id="selectUserBindSalesmenList" resultType="map">
|
||||||
SELECT
|
SELECT
|
||||||
b.emp_code AS empCode,
|
b.emp_code AS empCode,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user