|
|
@@ -0,0 +1,73 @@
|
|
|
+package org.springblade.factory.service.impl;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import org.springblade.core.mp.base.BaseServiceImpl;
|
|
|
+import org.springblade.factory.entity.ViewCustomerSel;
|
|
|
+import org.springblade.factory.mapper.ZcrmViewCustomerSelMapper;
|
|
|
+import org.springblade.factory.mapper.ZcrmViewCustomeraddressSelMapper;
|
|
|
+import org.springblade.factory.service.ZcrmViewCustomerSelService;
|
|
|
+import org.springblade.factory.service.ZcrmViewCustomeraddressSelService;
|
|
|
+import org.springblade.u9cloud.entity.ZcrmViewCustomerAddressSel;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+
|
|
|
+@Service
|
|
|
+@AllArgsConstructor
|
|
|
+public class ZcrmViewCustomeraddressSelServiceImpl extends BaseServiceImpl<ZcrmViewCustomeraddressSelMapper, ZcrmViewCustomerAddressSel> implements ZcrmViewCustomeraddressSelService {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取列表
|
|
|
+ * @param zcrmViewCustomerAddressSel
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<ZcrmViewCustomerAddressSel> selectZcrmViewCustomerAddressSelList(ZcrmViewCustomerAddressSel zcrmViewCustomerAddressSel) {
|
|
|
+ QueryWrapper<ZcrmViewCustomerAddressSel> queryWrapper = new QueryWrapper<>();
|
|
|
+ return this.list(queryWrapper);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取一条数据
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public ZcrmViewCustomerAddressSel selectZcrmViewCustomerAddressSelById(Long id) {
|
|
|
+ return this.getById(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加一条数据
|
|
|
+ * @param zcrmViewCustomerAddressSel
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public boolean insertZcrmViewCustomerAddressSel(ZcrmViewCustomerAddressSel zcrmViewCustomerAddressSel) {
|
|
|
+ return this.save(zcrmViewCustomerAddressSel);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改一条数据
|
|
|
+ * @param zcrmViewCustomerAddressSel
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public boolean updateZcrmViewCustomerAddressSel(ZcrmViewCustomerAddressSel zcrmViewCustomerAddressSel) {
|
|
|
+ return this.updateById(zcrmViewCustomerAddressSel);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据 Customer_ID 获取一条数据,并存入缓存
|
|
|
+ * @param customerId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public ZcrmViewCustomerAddressSel selectZcrmViewCustomerAddressSelByCustomerId(Long customerId) {
|
|
|
+ return this.selectZcrmViewCustomerAddressSelById(customerId);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|