|
|
@ -12,6 +12,8 @@ import com.xujie.sys.modules.sys.entity.SysUserEntity; |
|
|
import org.apache.ibatis.annotations.Mapper; |
|
|
import org.apache.ibatis.annotations.Mapper; |
|
|
import org.apache.ibatis.annotations.Param; |
|
|
import org.apache.ibatis.annotations.Param; |
|
|
import org.apache.ibatis.annotations.Update; |
|
|
import org.apache.ibatis.annotations.Update; |
|
|
|
|
|
import org.apache.ibatis.annotations.Select; |
|
|
|
|
|
import org.apache.ibatis.annotations.Insert; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
@ -273,7 +275,22 @@ public interface CoDelMapper { |
|
|
// 获取客户模板列表 |
|
|
// 获取客户模板列表 |
|
|
List<Map<String, Object>> getCustomerTemplateList(Map<String, Object> params); |
|
|
List<Map<String, Object>> getCustomerTemplateList(Map<String, Object> params); |
|
|
|
|
|
|
|
|
// 更新客户模板 |
|
|
|
|
|
|
|
|
// 根据模板名称获取客户模板信息 |
|
|
|
|
|
@Select("SELECT * FROM ecss_Customer_template WHERE template_name = #{templateName}") |
|
|
|
|
|
Map<String, Object> getCustomerTemplateByName(@Param("templateName") String templateName); |
|
|
|
|
|
|
|
|
|
|
|
// 获取最大的template_no(用于生成新的template_no) |
|
|
|
|
|
@Select("SELECT TOP 1 template_no FROM ecss_Customer_template ORDER BY template_no DESC") |
|
|
|
|
|
String getMaxTemplateNo(); |
|
|
|
|
|
|
|
|
|
|
|
// 插入新的客户模板(模板名称变化时使用) |
|
|
|
|
|
@Insert("INSERT INTO ecss_Customer_template (template_no, template_name,ccuscode, ccusname, localShipAddress, " + |
|
|
|
|
|
"overseasShipper, overseasAddress, cnative, salesArea) " + |
|
|
|
|
|
"VALUES (#{template_no}, #{templateName},#{ccuscode}, #{ccusname}, #{localShipAddress}, " + |
|
|
|
|
|
"#{overseasShipper}, #{overseasAddress}, #{cnative}, #{salesArea})") |
|
|
|
|
|
void insertCustomerTemplate(Map<String, Object> params); |
|
|
|
|
|
|
|
|
|
|
|
// 更新客户模板(保留原方法签名以兼容) |
|
|
void updateCustomerTemplate(Map<String, Object> params); |
|
|
void updateCustomerTemplate(Map<String, Object> params); |
|
|
|
|
|
|
|
|
// ========== 物料包装属性导入相关方法 ========== |
|
|
// ========== 物料包装属性导入相关方法 ========== |
|
|
|