New file |
| | |
| | | |
| | | package com.example.erp.service.pp; |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.example.erp.entity.pp.FlowCard; |
| | | import com.example.erp.entity.sd.Order; |
| | | import com.example.erp.entity.sd.OrderDetail; |
| | | import com.example.erp.mapper.pp.FlowCardMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.sql.Date; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | @Service |
| | | @DS("pp") |
| | | public class FlowCardService { |
| | | @Autowired |
| | | FlowCardMapper flowCardMapper; |
| | | |
| | | public Map<String, Object> selectProcessCard(Date selectTime1, Date selectTime2, FlowCard flowCard) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | System.out.println(flowCardMapper.selectFlowCard( selectTime1,selectTime2, flowCard)); |
| | | map.put("data", flowCardMapper.selectFlowCard( selectTime1,selectTime2, flowCard)); |
| | | // map.put("total", productMapper.getPageTotal(offset, pageSize, glassTypeId, product)); |
| | | return map; |
| | | } |
| | | |
| | | |
| | | public Map<String, Object> selectAddProcess(Date selectTime1, Date selectTime2, Order order) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | System.out.println(flowCardMapper.selectFlowCardMp( selectTime1,selectTime2, order)); |
| | | map.put("data", flowCardMapper.selectFlowCardMp( selectTime1,selectTime2, order)); |
| | | // map.put("total", productMapper.getPageTotal(offset, pageSize, glassTypeId, product)); |
| | | return map; |
| | | } |
| | | |
| | | public Map<String, Object> DetailsSelectSv(String orderId, OrderDetail orderDetail) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("data", flowCardMapper.DetailsSelectMp( orderId, orderDetail)); |
| | | |
| | | // map.put("total", productMapper.getPageTotal(offset, pageSize, glassTypeId, product)); |
| | | return map; |
| | | } |
| | | } |