fe9305a8d369a1d275ff386c8288826bd8a21e86.svn-base 835 B

1234567891011121314151617181920212223242526272829
  1. package org.jeecg.modules.demo.test.mapper;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Delete;
  4. import org.apache.ibatis.annotations.Select;
  5. import org.jeecg.modules.demo.test.entity.JeecgOrderCustomer;
  6. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  7. /**
  8. * @Description: 订单客户
  9. * @Author: jeecg-boot
  10. * @Date: 2019-02-15
  11. * @Version: V1.0
  12. */
  13. public interface JeecgOrderCustomerMapper extends BaseMapper<JeecgOrderCustomer> {
  14. /**
  15. * 通过主表外键批量删除客户
  16. * @param mainId
  17. * @return
  18. */
  19. @Delete("DELETE FROM JEECG_ORDER_CUSTOMER WHERE ORDER_ID = #{mainId}")
  20. public boolean deleteCustomersByMainId(String mainId);
  21. @Select("SELECT * FROM JEECG_ORDER_CUSTOMER WHERE ORDER_ID = #{mainId}")
  22. public List<JeecgOrderCustomer> selectCustomersByMainId(String mainId);
  23. }