Stage a -02 classification, recommendation, search, evaluation, shopping cart development - Chapter 2 Product recommendation + Search function realization -2-4 Search - write product related inquiries service

Write back-end code, the first to start writing from the service layer.

It is our intention to query all and commodity-related, are single-table queries. Here we use the generic Mapper on it.

service layer




ItemServiceImpl renamed copy of a




class that implements the change about


four methods are written first service request.


serviceImpl implementation class



Ctrl + Alt + O can be used to reference the package without removing the


primary key query word

are injected in, the other three Mapper classes





all query methods are used supports things level





End



 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/12319706.html