parent
4405e645ee
commit
dbbce10951
@ -1,12 +1,17 @@
|
|||||||
package com.example.demo.productService.tools;
|
package com.example.demo.productService.service;
|
||||||
|
|
||||||
import com.example.demo.Dao.productHistroyMapper;
|
import com.example.demo.Dao.productHistroyMapper;
|
||||||
import com.example.demo.bean.ProductHistroy;
|
import com.example.demo.bean.ProductHistroy;
|
||||||
|
|
||||||
|
//@Service
|
||||||
public class deletePro {
|
public class deletePro {
|
||||||
private com.example.demo.productService.tools.nowTime nowTime;
|
// @Autowired
|
||||||
|
private com.example.demo.productService.service.nowTime nowTime;
|
||||||
|
// @Autowired
|
||||||
private com.example.demo.Dao.productMapper productMapper;
|
private com.example.demo.Dao.productMapper productMapper;
|
||||||
|
// @Autowired
|
||||||
private productHistroyMapper proHisMapper;
|
private productHistroyMapper proHisMapper;
|
||||||
|
//@Autowired
|
||||||
private ProductHistroy productHistroy;
|
private ProductHistroy productHistroy;
|
||||||
|
|
||||||
public int delete(int productNum){
|
public int delete(int productNum){
|
@ -1,4 +1,4 @@
|
|||||||
package com.example.demo.productService.tools;
|
package com.example.demo.productService.service;
|
||||||
|
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
@ -1,14 +1,19 @@
|
|||||||
package com.example.demo.productService.tools;
|
package com.example.demo.productService.service;
|
||||||
|
|
||||||
import com.example.demo.Dao.productHistroyMapper;
|
import com.example.demo.Dao.productHistroyMapper;
|
||||||
import com.example.demo.Dao.productMapper;
|
import com.example.demo.Dao.productMapper;
|
||||||
import com.example.demo.bean.Product;
|
import com.example.demo.bean.Product;
|
||||||
import com.example.demo.bean.ProductHistroy;
|
import com.example.demo.bean.ProductHistroy;
|
||||||
|
|
||||||
|
//@Service
|
||||||
public class updatePro {
|
public class updatePro {
|
||||||
private com.example.demo.productService.tools.nowTime nowTime;
|
// @Autowired
|
||||||
|
private com.example.demo.productService.service.nowTime nowTime;
|
||||||
|
// @Autowired
|
||||||
private productMapper productMapper;
|
private productMapper productMapper;
|
||||||
|
//@Autowired
|
||||||
private productHistroyMapper proHisMapper;
|
private productHistroyMapper proHisMapper;
|
||||||
|
//@Autowired
|
||||||
private ProductHistroy productHistroy;
|
private ProductHistroy productHistroy;
|
||||||
|
|
||||||
public int update(Product product1){
|
public int update(Product product1){
|
Loading…
Reference in new issue