Subversion Repositories SmartDukaan

Rev

Rev 34578 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34578 Rev 35956
Line 11... Line 11...
11
import com.spice.profitmandi.dao.entity.transaction.WarehouseAddressMaster;
11
import com.spice.profitmandi.dao.entity.transaction.WarehouseAddressMaster;
12
import com.spice.profitmandi.dao.model.BilledOrderListModel;
12
import com.spice.profitmandi.dao.model.BilledOrderListModel;
13
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
13
import com.spice.profitmandi.dao.repository.transaction.OrderRepository;
14
import com.spice.profitmandi.dao.repository.transaction.WarehouseAddressMappingRepository;
14
import com.spice.profitmandi.dao.repository.transaction.WarehouseAddressMappingRepository;
15
import com.spice.profitmandi.dao.repository.transaction.WarehouseAddressMasterRepository;
15
import com.spice.profitmandi.dao.repository.transaction.WarehouseAddressMasterRepository;
-
 
16
import com.spice.profitmandi.service.mail.MailOutboxService;
16
import com.spice.profitmandi.service.user.RetailerService;
17
import com.spice.profitmandi.service.user.RetailerService;
17
import in.shop2020.model.v1.order.OrderStatus;
18
import in.shop2020.model.v1.order.OrderStatus;
18
import org.apache.logging.log4j.LogManager;
19
import org.apache.logging.log4j.LogManager;
19
import org.apache.logging.log4j.Logger;
20
import org.apache.logging.log4j.Logger;
20
import org.json.JSONArray;
21
import org.json.JSONArray;
Line 48... Line 49...
48
	private RestClient restClient;
49
	private RestClient restClient;
49
 
50
 
50
	@Autowired
51
	@Autowired
51
	private JavaMailSender googleMailSender;
52
	private JavaMailSender googleMailSender;
52
 
53
 
-
 
54
	@Autowired
-
 
55
	MailOutboxService mailOutboxService;
-
 
56
 
53
	@Value("#{'${prod}'=='true' ? 'NL3832' : 'NL3832'}")
57
	@Value("#{'${prod}'=='true' ? 'NL3832' : 'NL3832'}")
54
	private String customerCode;
58
	private String customerCode;
55
 
59
 
56
	@Value("#{'${prod}'=='true' ? '4b2a38cf831edcf397629f68684da6' : '8c0800cae8401d95570d7551be9bd7'}")
60
	@Value("#{'${prod}'=='true' ? '4b2a38cf831edcf397629f68684da6' : '8c0800cae8401d95570d7551be9bd7'}")
57
	private String apiKey;
61
	private String apiKey;
Line 246... Line 250...
246
				}
250
				}
247
 
251
 
248
			}
252
			}
249
		}
253
		}
250
 
254
 
251
		Utils.sendMailWithAttachments(googleMailSender, new String[] { "sdtech@smartdukaan.com" }, null,
255
		mailOutboxService.queueMailWithAttachmentsViaGoogle(new String[] { "sdtech@smartdukaan.com" }, null,
252
				"DTDC AWb", "PFA", attachments.toArray(new Utils.Attachment[attachments.size()]));
256
				"DTDC AWb", "PFA", "DTDCServiceImpl.getAirwayBillNo", attachments.toArray(new Utils.Attachment[attachments.size()]));
253
 
257
 
254
		LOGGER.info("billedOrderListModels" + billedOrderListModels);
258
		LOGGER.info("billedOrderListModels" + billedOrderListModels);
255
 
259
 
256
		return billedOrderListModels;
260
		return billedOrderListModels;
257
	}
261
	}