Commit 77594bc0 by dengtt

删除对账明细时,更改订单结算状态为未结算0。

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26015 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent c13c2ed2
......@@ -60,11 +60,11 @@ public interface SysOrderMapper {
*
*/
List<SysOrder> getAfterSaleRepairList(SysOrder order);
/**
*
* @author zhanghj
* @Title: getAfterSaleDetail
*
* @author zhanghj
* @Title: getAfterSaleDetail
* @Description: TODO 获取某个订单的正在进行售后单详情
* @param orderId
* @param orderSn
......@@ -81,9 +81,9 @@ public interface SysOrderMapper {
String getDictDataValue(Integer id);
/**
*
* @author zhanghj
* @Title: getOrderList
*
* @author zhanghj
* @Title: getOrderList
* @Description: TODO 获取订单列表
* @param order
* @return
......@@ -91,11 +91,11 @@ public interface SysOrderMapper {
*
*/
List<SysOrder> getOrderList(SysOrder order);
/**
*
* @author zhanghj
* @Title: updateChannelOrder
*
* @author zhanghj
* @Title: updateChannelOrder
* @Description: TODO 标准接口,更新渠道订单
* @param order
* @return
......@@ -198,9 +198,9 @@ public interface SysOrderMapper {
List<SysOrder> getConcernOrderList(QueryOrderReq oueryOrderReq);
/**
*
* @author zhanghj
* @Title: assignMechanic
*
* @author zhanghj
* @Title: assignMechanic
* @Description: TODO 指派技工
* @param order
* @return
......@@ -218,4 +218,9 @@ public interface SysOrderMapper {
int batchUpdateSettlementStatus(@Param("settlementStatus") int settlementStatus, @Param("ids") List<Integer> ids);
/**
* 根据订单编号,更改订单的结算状态
*/
int updateSettlementStatusBySn(@Param("settlementStatus") int settlementStatus, @Param("sn") String sn );
}
\ No newline at end of file
......@@ -8,6 +8,8 @@ import java.util.stream.Collectors;
import javax.annotation.Resource;
import com.glsx.ordercenter.constants.BizConstants;
import com.glsx.ordercenter.mapper.SysOrderMapper;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -68,6 +70,9 @@ public class ReconciliationDetailServiceImpl implements ReconciliationDetailServ
@Resource
private SysReconciliationMonthlyMapper reconciliationMonthlyMapper;
@Resource
private SysOrderMapper orderMapper;
/**
* (分页)查询对账明细列表
*/
......@@ -112,6 +117,8 @@ public class ReconciliationDetailServiceImpl implements ReconciliationDetailServ
reconciliationMapper.updateByPrimaryKeySelective(buildSysReconciliationUpdateEntity(reconciliation, detail, userId));
// 4.更新对账周期
reconciliationMonthlyMapper.updateByPrimaryKeySelective(buildSysReconciliationMonthlyUpdateEntity(monthly, detail, userId));
// 5.更改订单状态
orderMapper.updateSettlementStatusBySn(BizConstants.ORDER_SETTLEMENT_STATUS_NO,detail.getOrderSn());
}
/**
......
......@@ -1687,4 +1687,15 @@
where so.order_sn =#{orderSn}
</select>
<update id="updateSettlementStatusBySn" >
update sys_order
<set>
<if test="settlementStatus != null">
settlement_status = #{settlementStatus},
</if>
</set>
where
order_sn = #{sn}
</update>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!