Commit fad58195 by liuyang

2024-09-26 复制德诚图文管理功能

parent 5d532a82
package com.baosight.hpjx.hp.yx.domain;
import com.baosight.iplat4j.core.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.data.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.core.util.StringUtils;
/**
* Project: <br>
* Title:THpyx001.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-09-27 13:48:23 create
*/
public class HPYX001 extends DaoEPBase {
private static final long serialVersionUID = 1L;
public static final String FIELD_ID = "id";
public static final String FIELD_COMPANY_CODE = "companyCode"; /* 企业编码*/
public static final String FIELD_DEP_CODE = "depCode"; /* 部门编码*/
public static final String FIELD_CREATED_BY = "createdBy"; /* 创建人*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 创建人名称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 创建时间*/
public static final String FIELD_UPDATED_BY = "updatedBy"; /* 更新人*/
public static final String FIELD_UPDATED_NAME = "updatedName"; /* 更新人名称*/
public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 更新时间*/
public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 是否删除0.否1.是*/
public static final String FIELD_SURVEY_DATE = "surveyDate"; /* 调研日期*/
public static final String FIELD_DISTRICT = "district"; /* 区域*/
public static final String FIELD_POLICY_ENV = "policyEnv"; /* 政策环境*/
public static final String FIELD_ECONOMY_ENV = "economyEnv"; /* 经济环境*/
public static final String FIELD_SOCI_CULTURE_ENV = "sociCultureEnv"; /* 社会文化环境*/
public static final String FIELD_SUPPLIER = "supplier"; /* 涉及供应商*/
public static final String FIELD_COMPETE_USER = "competeUser"; /* 竞争对手*/
public static final String FIELD_SURVEY_USER = "surveyUser"; /* 调查人员*/
public static final String COL_ID = "ID";
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 企业编码*/
public static final String COL_DEP_CODE = "DEP_CODE"; /* 部门编码*/
public static final String COL_CREATED_BY = "CREATED_BY"; /* 创建人*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 创建人名称*/
public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 创建时间*/
public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 更新人*/
public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 更新人名称*/
public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/
public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 是否删除0.否1.是*/
public static final String COL_SURVEY_DATE = "SURVEY_DATE"; /* 调研日期*/
public static final String COL_DISTRICT = "DISTRICT"; /* 区域*/
public static final String COL_POLICY_ENV = "POLICY_ENV"; /* 政策环境*/
public static final String COL_ECONOMY_ENV = "ECONOMY_ENV"; /* 经济环境*/
public static final String COL_SOCI_CULTURE_ENV = "SOCI_CULTURE_ENV"; /* 社会文化环境*/
public static final String COL_SUPPLIER = "SUPPLIER"; /* 涉及供应商*/
public static final String COL_COMPETE_USER = "COMPETE_USER"; /* 竞争对手*/
public static final String COL_SURVEY_USER = "SURVEY_USER"; /* 调查人员*/
public static final String QUERY = "HPYX001.query";
public static final String COUNT = "HPYX001.count";
public static final String INSERT = "HPYX001.insert";
public static final String UPDATE = "HPYX001.update";
public static final String DELETE = "HPYX001.delete";
public static final String DELETE_FLAG = "HPYX001.deleteFlag";
private Long id = new Long(0);
private String companyCode = " "; /* 企业编码*/
private String depCode = " "; /* 部门编码*/
private String createdBy = " "; /* 创建人*/
private String createdName = " "; /* 创建人名称*/
private String createdTime = " "; /* 创建时间*/
private String updatedBy = " "; /* 更新人*/
private String updatedName = " "; /* 更新人名称*/
private String updatedTime = " "; /* 更新时间*/
private Integer deleteFlag = 0; /* 是否删除0.否1.是*/
private String surveyDate = " "; /* 调研日期*/
private String district = " "; /* 区域*/
private String policyEnv = " "; /* 政策环境*/
private String economyEnv = " "; /* 经济环境*/
private String sociCultureEnv = " "; /* 社会文化环境*/
private String supplier = " "; /* 涉及供应商*/
private String competeUser = " "; /* 竞争对手*/
private String surveyUser = " "; /* 调查人员*/
/**
* initialize the metadata.
*/
public void initMetaData() {
EiColumn eiColumn;
eiColumn = new EiColumn(FIELD_ID);
eiColumn.setPrimaryKey(true);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiColumn.setDescName("企业编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DEP_CODE);
eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_BY);
eiColumn.setDescName("创建人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiColumn.setDescName("创建人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiColumn.setDescName("创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiColumn.setDescName("更新人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiColumn.setDescName("更新人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DELETE_FLAG);
eiColumn.setDescName("是否删除0.否1.是");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SURVEY_DATE);
eiColumn.setDescName("调研日期");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DISTRICT);
eiColumn.setDescName("区域");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_POLICY_ENV);
eiColumn.setDescName("政策环境");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_ECONOMY_ENV);
eiColumn.setDescName("经济环境");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SOCI_CULTURE_ENV);
eiColumn.setDescName("社会文化环境");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SUPPLIER);
eiColumn.setDescName("涉及供应商");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPETE_USER);
eiColumn.setDescName("竞争对手");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SURVEY_USER);
eiColumn.setDescName("调查人员");
eiMetadata.addMeta(eiColumn);
}
/**
* the constructor.
*/
public HPYX001() {
initMetaData();
}
/**
* get the id .
* @return the id
*/
public Long getId() {
return this.id;
}
/**
* set the id .
*
* @param id
*/
public void setId(Long id) {
this.id = id;
}
/**
* get the companyCode - 企业编码.
* @return the companyCode
*/
public String getCompanyCode() {
return this.companyCode;
}
/**
* set the companyCode - 企业编码.
*
* @param companyCode - 企业编码
*/
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public String getDepCode() {
return this.depCode;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public void setDepCode(String depCode) {
this.depCode = depCode;
}
/**
* get the createdBy - 创建人.
* @return the createdBy
*/
public String getCreatedBy() {
return this.createdBy;
}
/**
* set the createdBy - 创建人.
*
* @param createdBy - 创建人
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
* get the createdName - 创建人名称.
* @return the createdName
*/
public String getCreatedName() {
return this.createdName;
}
/**
* set the createdName - 创建人名称.
*
* @param createdName - 创建人名称
*/
public void setCreatedName(String createdName) {
this.createdName = createdName;
}
/**
* get the createdTime - 创建时间.
* @return the createdTime
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
* set the createdTime - 创建时间.
*
* @param createdTime - 创建时间
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
* get the updatedBy - 更新人.
* @return the updatedBy
*/
public String getUpdatedBy() {
return this.updatedBy;
}
/**
* set the updatedBy - 更新人.
*
* @param updatedBy - 更新人
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
/**
* get the updatedName - 更新人名称.
* @return the updatedName
*/
public String getUpdatedName() {
return this.updatedName;
}
/**
* set the updatedName - 更新人名称.
*
* @param updatedName - 更新人名称
*/
public void setUpdatedName(String updatedName) {
this.updatedName = updatedName;
}
/**
* get the updatedTime - 更新时间.
* @return the updatedTime
*/
public String getUpdatedTime() {
return this.updatedTime;
}
/**
* set the updatedTime - 更新时间.
*
* @param updatedTime - 更新时间
*/
public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime;
}
/**
* get the deleteFlag - 是否删除0.否1.是.
* @return the deleteFlag
*/
public Integer getDeleteFlag() {
return this.deleteFlag;
}
/**
* set the deleteFlag - 是否删除0.否1.是.
*
* @param deleteFlag - 是否删除0.否1.是
*/
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
/**
* get the surveyDate - 调研日期.
* @return the surveyDate
*/
public String getSurveyDate() {
return this.surveyDate;
}
/**
* set the surveyDate - 调研日期.
*
* @param surveyDate - 调研日期
*/
public void setSurveyDate(String surveyDate) {
this.surveyDate = surveyDate;
}
/**
* get the district - 区域.
* @return the district
*/
public String getDistrict() {
return this.district;
}
/**
* set the district - 区域.
*
* @param district - 区域
*/
public void setDistrict(String district) {
this.district = district;
}
/**
* get the policyEnv - 政策环境.
* @return the policyEnv
*/
public String getPolicyEnv() {
return this.policyEnv;
}
/**
* set the policyEnv - 政策环境.
*
* @param policyEnv - 政策环境
*/
public void setPolicyEnv(String policyEnv) {
this.policyEnv = policyEnv;
}
/**
* get the economyEnv - 经济环境.
* @return the economyEnv
*/
public String getEconomyEnv() {
return this.economyEnv;
}
/**
* set the economyEnv - 经济环境.
*
* @param economyEnv - 经济环境
*/
public void setEconomyEnv(String economyEnv) {
this.economyEnv = economyEnv;
}
/**
* get the sociCultureEnv - 社会文化环境.
* @return the sociCultureEnv
*/
public String getSociCultureEnv() {
return this.sociCultureEnv;
}
/**
* set the sociCultureEnv - 社会文化环境.
*
* @param sociCultureEnv - 社会文化环境
*/
public void setSociCultureEnv(String sociCultureEnv) {
this.sociCultureEnv = sociCultureEnv;
}
/**
* get the supplier - 涉及供应商.
* @return the supplier
*/
public String getSupplier() {
return this.supplier;
}
/**
* set the supplier - 涉及供应商.
*
* @param supplier - 涉及供应商
*/
public void setSupplier(String supplier) {
this.supplier = supplier;
}
/**
* get the competeUser - 竞争对手.
* @return the competeUser
*/
public String getCompeteUser() {
return this.competeUser;
}
/**
* set the competeUser - 竞争对手.
*
* @param competeUser - 竞争对手
*/
public void setCompeteUser(String competeUser) {
this.competeUser = competeUser;
}
/**
* get the surveyUser - 调查人员.
* @return the surveyUser
*/
public String getSurveyUser() {
return this.surveyUser;
}
/**
* set the surveyUser - 调查人员.
*
* @param surveyUser - 调查人员
*/
public void setSurveyUser(String surveyUser) {
this.surveyUser = surveyUser;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public void fromMap(Map map) {
setId(NumberUtils.toLong(StringUtils.toString(map.get(FIELD_ID)), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_COMPANY_CODE)), companyCode));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DEP_CODE)), depCode));
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_BY)), createdBy));
setCreatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_NAME)), createdName));
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_TIME)), createdTime));
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_BY)), updatedBy));
setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_NAME)), updatedName));
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_TIME)), updatedTime));
setDeleteFlag(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_DELETE_FLAG)), deleteFlag));
setSurveyDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SURVEY_DATE)), surveyDate));
setDistrict(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DISTRICT)), district));
setPolicyEnv(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_POLICY_ENV)), policyEnv));
setEconomyEnv(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_ECONOMY_ENV)), economyEnv));
setSociCultureEnv(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SOCI_CULTURE_ENV)), sociCultureEnv));
setSupplier(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SUPPLIER)), supplier));
setCompeteUser(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_COMPETE_USER)), competeUser));
setSurveyUser(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SURVEY_USER)), surveyUser));
}
/**
* set the value to Map.
*/
@Override
public Map toMap() {
Map map = new HashMap();
map.put(FIELD_ID, StringUtils.toString(id, eiMetadata.getMeta(FIELD_ID)));
map.put(FIELD_COMPANY_CODE, StringUtils.toString(companyCode, eiMetadata.getMeta(FIELD_COMPANY_CODE)));
map.put(FIELD_DEP_CODE, StringUtils.toString(depCode, eiMetadata.getMeta(FIELD_DEP_CODE)));
map.put(FIELD_CREATED_BY, StringUtils.toString(createdBy, eiMetadata.getMeta(FIELD_CREATED_BY)));
map.put(FIELD_CREATED_NAME, StringUtils.toString(createdName, eiMetadata.getMeta(FIELD_CREATED_NAME)));
map.put(FIELD_CREATED_TIME, StringUtils.toString(createdTime, eiMetadata.getMeta(FIELD_CREATED_TIME)));
map.put(FIELD_UPDATED_BY, StringUtils.toString(updatedBy, eiMetadata.getMeta(FIELD_UPDATED_BY)));
map.put(FIELD_UPDATED_NAME, StringUtils.toString(updatedName, eiMetadata.getMeta(FIELD_UPDATED_NAME)));
map.put(FIELD_UPDATED_TIME, StringUtils.toString(updatedTime, eiMetadata.getMeta(FIELD_UPDATED_TIME)));
map.put(FIELD_DELETE_FLAG, StringUtils.toString(deleteFlag, eiMetadata.getMeta(FIELD_DELETE_FLAG)));
map.put(FIELD_SURVEY_DATE, StringUtils.toString(surveyDate, eiMetadata.getMeta(FIELD_SURVEY_DATE)));
map.put(FIELD_DISTRICT, StringUtils.toString(district, eiMetadata.getMeta(FIELD_DISTRICT)));
map.put(FIELD_POLICY_ENV, StringUtils.toString(policyEnv, eiMetadata.getMeta(FIELD_POLICY_ENV)));
map.put(FIELD_ECONOMY_ENV, StringUtils.toString(economyEnv, eiMetadata.getMeta(FIELD_ECONOMY_ENV)));
map.put(FIELD_SOCI_CULTURE_ENV, StringUtils.toString(sociCultureEnv, eiMetadata.getMeta(FIELD_SOCI_CULTURE_ENV)));
map.put(FIELD_SUPPLIER, StringUtils.toString(supplier, eiMetadata.getMeta(FIELD_SUPPLIER)));
map.put(FIELD_COMPETE_USER, StringUtils.toString(competeUser, eiMetadata.getMeta(FIELD_COMPETE_USER)));
map.put(FIELD_SURVEY_USER, StringUtils.toString(surveyUser, eiMetadata.getMeta(FIELD_SURVEY_USER)));
return map;
}
}
package com.baosight.hpjx.hp.yx.domain;
import com.baosight.iplat4j.core.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.data.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.core.util.StringUtils;
/**
* Project: <br>
* Title:THpyx002.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-09-27 13:48:23 create
*/
public class HPYX002 extends DaoEPBase {
private static final long serialVersionUID = 1L;
public static final String FIELD_ID = "id";
public static final String FIELD_COMPANY_CODE = "companyCode"; /* 企业编码*/
public static final String FIELD_DEP_CODE = "depCode"; /* 部门编码*/
public static final String FIELD_CREATED_BY = "createdBy"; /* 创建人*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 创建人名称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 创建时间*/
public static final String FIELD_UPDATED_BY = "updatedBy"; /* 更新人*/
public static final String FIELD_UPDATED_NAME = "updatedName"; /* 更新人名称*/
public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 更新时间*/
public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 是否删除0.否1.是*/
public static final String FIELD_SURVEY_DATE = "surveyDate"; /* 调研日期*/
public static final String FIELD_DISTRICT = "district"; /* 区域*/
public static final String FIELD_CLIENT = "client"; /* 客户*/
public static final String FIELD_BUY_MOTIVE = "buyMotive"; /* 购买动机*/
public static final String FIELD_BUY_AMOUNT = "buyAmount"; /* 购买能力*/
public static final String FIELD_BUY_PRODUCTS = "buyProducts"; /* 经常购买产品*/
public static final String FIELD_SURVEY_USER = "surveyUser"; /* 调查人员*/
public static final String COL_ID = "ID";
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 企业编码*/
public static final String COL_DEP_CODE = "DEP_CODE"; /* 部门编码*/
public static final String COL_CREATED_BY = "CREATED_BY"; /* 创建人*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 创建人名称*/
public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 创建时间*/
public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 更新人*/
public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 更新人名称*/
public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/
public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 是否删除0.否1.是*/
public static final String COL_SURVEY_DATE = "SURVEY_DATE"; /* 调研日期*/
public static final String COL_DISTRICT = "DISTRICT"; /* 区域*/
public static final String COL_CLIENT = "CLIENT"; /* 客户*/
public static final String COL_BUY_MOTIVE = "BUY_MOTIVE"; /* 购买动机*/
public static final String COL_BUY_AMOUNT = "BUY_AMOUNT"; /* 购买能力*/
public static final String COL_BUY_PRODUCTS = "BUY_PRODUCTS"; /* 经常购买产品*/
public static final String COL_SURVEY_USER = "SURVEY_USER"; /* 调查人员*/
public static final String QUERY = "HPYX002.query";
public static final String COUNT = "HPYX002.count";
public static final String INSERT = "HPYX002.insert";
public static final String UPDATE = "HPYX002.update";
public static final String DELETE = "HPYX002.delete";
public static final String DELETE_FLAG = "HPYX002.deleteFlag";
private Long id = new Long(0);
private String companyCode = " "; /* 企业编码*/
private String depCode = " "; /* 部门编码*/
private String createdBy = " "; /* 创建人*/
private String createdName = " "; /* 创建人名称*/
private String createdTime = " "; /* 创建时间*/
private String updatedBy = " "; /* 更新人*/
private String updatedName = " "; /* 更新人名称*/
private String updatedTime = " "; /* 更新时间*/
private Integer deleteFlag = 0; /* 是否删除0.否1.是*/
private String surveyDate = " "; /* 调研日期*/
private String district = " "; /* 区域*/
private String client = " "; /* 客户*/
private String buyMotive = " "; /* 购买动机*/
private BigDecimal buyAmount = new BigDecimal(0.00); /* 购买能力*/
private String buyProducts = " "; /* 经常购买产品*/
private String surveyUser = " "; /* 调查人员*/
/**
* initialize the metadata.
*/
public void initMetaData() {
EiColumn eiColumn;
eiColumn = new EiColumn(FIELD_ID);
eiColumn.setPrimaryKey(true);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiColumn.setDescName("企业编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DEP_CODE);
eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_BY);
eiColumn.setDescName("创建人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiColumn.setDescName("创建人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiColumn.setDescName("创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiColumn.setDescName("更新人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiColumn.setDescName("更新人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DELETE_FLAG);
eiColumn.setDescName("是否删除0.否1.是");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SURVEY_DATE);
eiColumn.setDescName("调研日期");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DISTRICT);
eiColumn.setDescName("区域");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CLIENT);
eiColumn.setDescName("客户");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_BUY_MOTIVE);
eiColumn.setDescName("购买动机");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_BUY_AMOUNT);
eiColumn.setType("N");
eiColumn.setScaleLength(2);
eiColumn.setFieldLength(20);
eiColumn.setDescName("购买能力");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_BUY_PRODUCTS);
eiColumn.setDescName("经常购买产品");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SURVEY_USER);
eiColumn.setDescName("调查人员");
eiMetadata.addMeta(eiColumn);
}
/**
* the constructor.
*/
public HPYX002() {
initMetaData();
}
/**
* get the id .
* @return the id
*/
public Long getId() {
return this.id;
}
/**
* set the id .
*
* @param id
*/
public void setId(Long id) {
this.id = id;
}
/**
* get the companyCode - 企业编码.
* @return the companyCode
*/
public String getCompanyCode() {
return this.companyCode;
}
/**
* set the companyCode - 企业编码.
*
* @param companyCode - 企业编码
*/
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public String getDepCode() {
return this.depCode;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public void setDepCode(String depCode) {
this.depCode = depCode;
}
/**
* get the createdBy - 创建人.
* @return the createdBy
*/
public String getCreatedBy() {
return this.createdBy;
}
/**
* set the createdBy - 创建人.
*
* @param createdBy - 创建人
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
* get the createdName - 创建人名称.
* @return the createdName
*/
public String getCreatedName() {
return this.createdName;
}
/**
* set the createdName - 创建人名称.
*
* @param createdName - 创建人名称
*/
public void setCreatedName(String createdName) {
this.createdName = createdName;
}
/**
* get the createdTime - 创建时间.
* @return the createdTime
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
* set the createdTime - 创建时间.
*
* @param createdTime - 创建时间
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
* get the updatedBy - 更新人.
* @return the updatedBy
*/
public String getUpdatedBy() {
return this.updatedBy;
}
/**
* set the updatedBy - 更新人.
*
* @param updatedBy - 更新人
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
/**
* get the updatedName - 更新人名称.
* @return the updatedName
*/
public String getUpdatedName() {
return this.updatedName;
}
/**
* set the updatedName - 更新人名称.
*
* @param updatedName - 更新人名称
*/
public void setUpdatedName(String updatedName) {
this.updatedName = updatedName;
}
/**
* get the updatedTime - 更新时间.
* @return the updatedTime
*/
public String getUpdatedTime() {
return this.updatedTime;
}
/**
* set the updatedTime - 更新时间.
*
* @param updatedTime - 更新时间
*/
public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime;
}
/**
* get the deleteFlag - 是否删除0.否1.是.
* @return the deleteFlag
*/
public Integer getDeleteFlag() {
return this.deleteFlag;
}
/**
* set the deleteFlag - 是否删除0.否1.是.
*
* @param deleteFlag - 是否删除0.否1.是
*/
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
/**
* get the surveyDate - 调研日期.
* @return the surveyDate
*/
public String getSurveyDate() {
return this.surveyDate;
}
/**
* set the surveyDate - 调研日期.
*
* @param surveyDate - 调研日期
*/
public void setSurveyDate(String surveyDate) {
this.surveyDate = surveyDate;
}
/**
* get the district - 区域.
* @return the district
*/
public String getDistrict() {
return this.district;
}
/**
* set the district - 区域.
*
* @param district - 区域
*/
public void setDistrict(String district) {
this.district = district;
}
/**
* get the client - 客户.
* @return the client
*/
public String getClient() {
return this.client;
}
/**
* set the client - 客户.
*
* @param client - 客户
*/
public void setClient(String client) {
this.client = client;
}
/**
* get the buyMotive - 购买动机.
* @return the buyMotive
*/
public String getBuyMotive() {
return this.buyMotive;
}
/**
* set the buyMotive - 购买动机.
*
* @param buyMotive - 购买动机
*/
public void setBuyMotive(String buyMotive) {
this.buyMotive = buyMotive;
}
/**
* get the buyAmount - 购买能力.
* @return the buyAmount
*/
public BigDecimal getBuyAmount() {
return this.buyAmount;
}
/**
* set the buyAmount - 购买能力.
*
* @param buyAmount - 购买能力
*/
public void setBuyAmount(BigDecimal buyAmount) {
this.buyAmount = buyAmount;
}
/**
* get the buyProducts - 经常购买产品.
* @return the buyProducts
*/
public String getBuyProducts() {
return this.buyProducts;
}
/**
* set the buyProducts - 经常购买产品.
*
* @param buyProducts - 经常购买产品
*/
public void setBuyProducts(String buyProducts) {
this.buyProducts = buyProducts;
}
/**
* get the surveyUser - 调查人员.
* @return the surveyUser
*/
public String getSurveyUser() {
return this.surveyUser;
}
/**
* set the surveyUser - 调查人员.
*
* @param surveyUser - 调查人员
*/
public void setSurveyUser(String surveyUser) {
this.surveyUser = surveyUser;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public void fromMap(Map map) {
setId(NumberUtils.toLong(StringUtils.toString(map.get(FIELD_ID)), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_COMPANY_CODE)), companyCode));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DEP_CODE)), depCode));
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_BY)), createdBy));
setCreatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_NAME)), createdName));
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_TIME)), createdTime));
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_BY)), updatedBy));
setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_NAME)), updatedName));
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_TIME)), updatedTime));
setDeleteFlag(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_DELETE_FLAG)), deleteFlag));
setSurveyDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SURVEY_DATE)), surveyDate));
setDistrict(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DISTRICT)), district));
setClient(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CLIENT)), client));
setBuyMotive(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_BUY_MOTIVE)), buyMotive));
setBuyAmount(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_BUY_AMOUNT)), buyAmount));
setBuyProducts(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_BUY_PRODUCTS)), buyProducts));
setSurveyUser(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SURVEY_USER)), surveyUser));
}
/**
* set the value to Map.
*/
@Override
public Map toMap() {
Map map = new HashMap();
map.put(FIELD_ID, StringUtils.toString(id, eiMetadata.getMeta(FIELD_ID)));
map.put(FIELD_COMPANY_CODE, StringUtils.toString(companyCode, eiMetadata.getMeta(FIELD_COMPANY_CODE)));
map.put(FIELD_DEP_CODE, StringUtils.toString(depCode, eiMetadata.getMeta(FIELD_DEP_CODE)));
map.put(FIELD_CREATED_BY, StringUtils.toString(createdBy, eiMetadata.getMeta(FIELD_CREATED_BY)));
map.put(FIELD_CREATED_NAME, StringUtils.toString(createdName, eiMetadata.getMeta(FIELD_CREATED_NAME)));
map.put(FIELD_CREATED_TIME, StringUtils.toString(createdTime, eiMetadata.getMeta(FIELD_CREATED_TIME)));
map.put(FIELD_UPDATED_BY, StringUtils.toString(updatedBy, eiMetadata.getMeta(FIELD_UPDATED_BY)));
map.put(FIELD_UPDATED_NAME, StringUtils.toString(updatedName, eiMetadata.getMeta(FIELD_UPDATED_NAME)));
map.put(FIELD_UPDATED_TIME, StringUtils.toString(updatedTime, eiMetadata.getMeta(FIELD_UPDATED_TIME)));
map.put(FIELD_DELETE_FLAG, StringUtils.toString(deleteFlag, eiMetadata.getMeta(FIELD_DELETE_FLAG)));
map.put(FIELD_SURVEY_DATE, StringUtils.toString(surveyDate, eiMetadata.getMeta(FIELD_SURVEY_DATE)));
map.put(FIELD_DISTRICT, StringUtils.toString(district, eiMetadata.getMeta(FIELD_DISTRICT)));
map.put(FIELD_CLIENT, StringUtils.toString(client, eiMetadata.getMeta(FIELD_CLIENT)));
map.put(FIELD_BUY_MOTIVE, StringUtils.toString(buyMotive, eiMetadata.getMeta(FIELD_BUY_MOTIVE)));
map.put(FIELD_BUY_AMOUNT, StringUtils.toString(buyAmount, eiMetadata.getMeta(FIELD_BUY_AMOUNT)));
map.put(FIELD_BUY_PRODUCTS, StringUtils.toString(buyProducts, eiMetadata.getMeta(FIELD_BUY_PRODUCTS)));
map.put(FIELD_SURVEY_USER, StringUtils.toString(surveyUser, eiMetadata.getMeta(FIELD_SURVEY_USER)));
return map;
}
}
package com.baosight.hpjx.hp.yx.domain;
import com.baosight.iplat4j.core.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.data.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.core.util.StringUtils;
/**
* Project: <br>
* Title:THpyx003.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-09-27 13:48:23 create
*/
public class HPYX003 extends DaoEPBase {
private static final long serialVersionUID = 1L;
public static final String FIELD_ID = "id";
public static final String FIELD_COMPANY_CODE = "companyCode"; /* 企业编码*/
public static final String FIELD_DEP_CODE = "depCode"; /* 部门编码*/
public static final String FIELD_CREATED_BY = "createdBy"; /* 创建人*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 创建人名称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 创建时间*/
public static final String FIELD_UPDATED_BY = "updatedBy"; /* 更新人*/
public static final String FIELD_UPDATED_NAME = "updatedName"; /* 更新人名称*/
public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 更新时间*/
public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 是否删除0.否1.是*/
public static final String FIELD_SURVEY_DATE = "surveyDate"; /* 调研日期*/
public static final String FIELD_DISTRICT = "district"; /* 区域*/
public static final String FIELD_PRODUCT_NAME = "productName"; /* 产品名称*/
public static final String FIELD_QUANTITY = "quantity"; /* 产品数量*/
public static final String FIELD_PRICE = "price"; /* 价格*/
public static final String FIELD_QUALITY = "quality"; /* 质量*/
public static final String FIELD_SURVEY_USER = "surveyUser"; /* 调查人员*/
public static final String COL_ID = "ID";
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 企业编码*/
public static final String COL_DEP_CODE = "DEP_CODE"; /* 部门编码*/
public static final String COL_CREATED_BY = "CREATED_BY"; /* 创建人*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 创建人名称*/
public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 创建时间*/
public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 更新人*/
public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 更新人名称*/
public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/
public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 是否删除0.否1.是*/
public static final String COL_SURVEY_DATE = "SURVEY_DATE"; /* 调研日期*/
public static final String COL_DISTRICT = "DISTRICT"; /* 区域*/
public static final String COL_PRODUCT_NAME = "PRODUCT_NAME"; /* 产品名称*/
public static final String COL_QUANTITY = "QUANTITY"; /* 产品数量*/
public static final String COL_PRICE = "PRICE"; /* 价格*/
public static final String COL_QUALITY = "QUALITY"; /* 质量*/
public static final String COL_SURVEY_USER = "SURVEY_USER"; /* 调查人员*/
public static final String QUERY = "HPYX003.query";
public static final String COUNT = "HPYX003.count";
public static final String INSERT = "HPYX003.insert";
public static final String UPDATE = "HPYX003.update";
public static final String DELETE = "HPYX003.delete";
public static final String DELETE_FLAG = "HPYX003.deleteFlag";
private Long id = new Long(0);
private String companyCode = " "; /* 企业编码*/
private String depCode = " "; /* 部门编码*/
private String createdBy = " "; /* 创建人*/
private String createdName = " "; /* 创建人名称*/
private String createdTime = " "; /* 创建时间*/
private String updatedBy = " "; /* 更新人*/
private String updatedName = " "; /* 更新人名称*/
private String updatedTime = " "; /* 更新时间*/
private Integer deleteFlag = 0; /* 是否删除0.否1.是*/
private String surveyDate = " "; /* 调研日期*/
private String district = " "; /* 区域*/
private String productName = " "; /* 产品名称*/
private BigDecimal quantity = new BigDecimal("0"); /* 产品数量*/
private BigDecimal price = new BigDecimal("0"); /* 价格*/
private String quality = " "; /* 质量*/
private String surveyUser = " "; /* 调查人员*/
/**
* initialize the metadata.
*/
public void initMetaData() {
EiColumn eiColumn;
eiColumn = new EiColumn(FIELD_ID);
eiColumn.setPrimaryKey(true);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiColumn.setDescName("企业编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DEP_CODE);
eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_BY);
eiColumn.setDescName("创建人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiColumn.setDescName("创建人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiColumn.setDescName("创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiColumn.setDescName("更新人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiColumn.setDescName("更新人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DELETE_FLAG);
eiColumn.setDescName("是否删除0.否1.是");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SURVEY_DATE);
eiColumn.setDescName("调研日期");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DISTRICT);
eiColumn.setDescName("区域");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PRODUCT_NAME);
eiColumn.setDescName("产品名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_QUANTITY);
eiColumn.setType("N");
eiColumn.setScaleLength(0);
eiColumn.setFieldLength(20);
eiColumn.setDescName("产品数量");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PRICE);
eiColumn.setType("N");
eiColumn.setScaleLength(2);
eiColumn.setFieldLength(20);
eiColumn.setDescName("价格");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_QUALITY);
eiColumn.setDescName("质量");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SURVEY_USER);
eiColumn.setDescName("调查人员");
eiMetadata.addMeta(eiColumn);
}
/**
* the constructor.
*/
public HPYX003() {
initMetaData();
}
/**
* get the id .
* @return the id
*/
public Long getId() {
return this.id;
}
/**
* set the id .
*
* @param id
*/
public void setId(Long id) {
this.id = id;
}
/**
* get the companyCode - 企业编码.
* @return the companyCode
*/
public String getCompanyCode() {
return this.companyCode;
}
/**
* set the companyCode - 企业编码.
*
* @param companyCode - 企业编码
*/
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public String getDepCode() {
return this.depCode;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public void setDepCode(String depCode) {
this.depCode = depCode;
}
/**
* get the createdBy - 创建人.
* @return the createdBy
*/
public String getCreatedBy() {
return this.createdBy;
}
/**
* set the createdBy - 创建人.
*
* @param createdBy - 创建人
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
* get the createdName - 创建人名称.
* @return the createdName
*/
public String getCreatedName() {
return this.createdName;
}
/**
* set the createdName - 创建人名称.
*
* @param createdName - 创建人名称
*/
public void setCreatedName(String createdName) {
this.createdName = createdName;
}
/**
* get the createdTime - 创建时间.
* @return the createdTime
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
* set the createdTime - 创建时间.
*
* @param createdTime - 创建时间
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
* get the updatedBy - 更新人.
* @return the updatedBy
*/
public String getUpdatedBy() {
return this.updatedBy;
}
/**
* set the updatedBy - 更新人.
*
* @param updatedBy - 更新人
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
/**
* get the updatedName - 更新人名称.
* @return the updatedName
*/
public String getUpdatedName() {
return this.updatedName;
}
/**
* set the updatedName - 更新人名称.
*
* @param updatedName - 更新人名称
*/
public void setUpdatedName(String updatedName) {
this.updatedName = updatedName;
}
/**
* get the updatedTime - 更新时间.
* @return the updatedTime
*/
public String getUpdatedTime() {
return this.updatedTime;
}
/**
* set the updatedTime - 更新时间.
*
* @param updatedTime - 更新时间
*/
public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime;
}
/**
* get the deleteFlag - 是否删除0.否1.是.
* @return the deleteFlag
*/
public Integer getDeleteFlag() {
return this.deleteFlag;
}
/**
* set the deleteFlag - 是否删除0.否1.是.
*
* @param deleteFlag - 是否删除0.否1.是
*/
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
/**
* get the surveyDate - 调研日期.
* @return the surveyDate
*/
public String getSurveyDate() {
return this.surveyDate;
}
/**
* set the surveyDate - 调研日期.
*
* @param surveyDate - 调研日期
*/
public void setSurveyDate(String surveyDate) {
this.surveyDate = surveyDate;
}
/**
* get the district - 区域.
* @return the district
*/
public String getDistrict() {
return this.district;
}
/**
* set the district - 区域.
*
* @param district - 区域
*/
public void setDistrict(String district) {
this.district = district;
}
/**
* get the productName - 产品名称.
* @return the productName
*/
public String getProductName() {
return this.productName;
}
/**
* set the productName - 产品名称.
*
* @param productName - 产品名称
*/
public void setProductName(String productName) {
this.productName = productName;
}
/**
* get the quantity - 产品数量.
* @return the quantity
*/
public BigDecimal getQuantity() {
return this.quantity;
}
/**
* set the quantity - 产品数量.
*
* @param quantity - 产品数量
*/
public void setQuantity(BigDecimal quantity) {
this.quantity = quantity;
}
/**
* get the price - 价格.
* @return the price
*/
public BigDecimal getPrice() {
return this.price;
}
/**
* set the price - 价格.
*
* @param price - 价格
*/
public void setPrice(BigDecimal price) {
this.price = price;
}
/**
* get the quality - 质量.
* @return the quality
*/
public String getQuality() {
return this.quality;
}
/**
* set the quality - 质量.
*
* @param quality - 质量
*/
public void setQuality(String quality) {
this.quality = quality;
}
/**
* get the surveyUser - 调查人员.
* @return the surveyUser
*/
public String getSurveyUser() {
return this.surveyUser;
}
/**
* set the surveyUser - 调查人员.
*
* @param surveyUser - 调查人员
*/
public void setSurveyUser(String surveyUser) {
this.surveyUser = surveyUser;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public void fromMap(Map map) {
setId(NumberUtils.toLong(StringUtils.toString(map.get(FIELD_ID)), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_COMPANY_CODE)), companyCode));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DEP_CODE)), depCode));
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_BY)), createdBy));
setCreatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_NAME)), createdName));
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_TIME)), createdTime));
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_BY)), updatedBy));
setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_NAME)), updatedName));
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_TIME)), updatedTime));
setDeleteFlag(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_DELETE_FLAG)), deleteFlag));
setSurveyDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SURVEY_DATE)), surveyDate));
setDistrict(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DISTRICT)), district));
setProductName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_PRODUCT_NAME)), productName));
setQuantity(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_QUANTITY)), quantity));
setPrice(NumberUtils.toBigDecimal(StringUtils.toString(map.get(FIELD_PRICE)), price));
setQuality(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_QUALITY)), quality));
setSurveyUser(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SURVEY_USER)), surveyUser));
}
/**
* set the value to Map.
*/
@Override
public Map toMap() {
Map map = new HashMap();
map.put(FIELD_ID, StringUtils.toString(id, eiMetadata.getMeta(FIELD_ID)));
map.put(FIELD_COMPANY_CODE, StringUtils.toString(companyCode, eiMetadata.getMeta(FIELD_COMPANY_CODE)));
map.put(FIELD_DEP_CODE, StringUtils.toString(depCode, eiMetadata.getMeta(FIELD_DEP_CODE)));
map.put(FIELD_CREATED_BY, StringUtils.toString(createdBy, eiMetadata.getMeta(FIELD_CREATED_BY)));
map.put(FIELD_CREATED_NAME, StringUtils.toString(createdName, eiMetadata.getMeta(FIELD_CREATED_NAME)));
map.put(FIELD_CREATED_TIME, StringUtils.toString(createdTime, eiMetadata.getMeta(FIELD_CREATED_TIME)));
map.put(FIELD_UPDATED_BY, StringUtils.toString(updatedBy, eiMetadata.getMeta(FIELD_UPDATED_BY)));
map.put(FIELD_UPDATED_NAME, StringUtils.toString(updatedName, eiMetadata.getMeta(FIELD_UPDATED_NAME)));
map.put(FIELD_UPDATED_TIME, StringUtils.toString(updatedTime, eiMetadata.getMeta(FIELD_UPDATED_TIME)));
map.put(FIELD_DELETE_FLAG, StringUtils.toString(deleteFlag, eiMetadata.getMeta(FIELD_DELETE_FLAG)));
map.put(FIELD_SURVEY_DATE, StringUtils.toString(surveyDate, eiMetadata.getMeta(FIELD_SURVEY_DATE)));
map.put(FIELD_DISTRICT, StringUtils.toString(district, eiMetadata.getMeta(FIELD_DISTRICT)));
map.put(FIELD_PRODUCT_NAME, StringUtils.toString(productName, eiMetadata.getMeta(FIELD_PRODUCT_NAME)));
map.put(FIELD_QUANTITY, StringUtils.toString(quantity, eiMetadata.getMeta(FIELD_QUANTITY)));
map.put(FIELD_PRICE, StringUtils.toString(price, eiMetadata.getMeta(FIELD_PRICE)));
map.put(FIELD_QUALITY, StringUtils.toString(quality, eiMetadata.getMeta(FIELD_QUALITY)));
map.put(FIELD_SURVEY_USER, StringUtils.toString(surveyUser, eiMetadata.getMeta(FIELD_SURVEY_USER)));
return map;
}
}
package com.baosight.hpjx.hp.yx.domain;
import com.baosight.iplat4j.core.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.data.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.core.util.StringUtils;
/**
* Project: <br>
* Title:THpyx004.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-09-27 13:48:23 create
*/
public class HPYX004 extends DaoEPBase {
private static final long serialVersionUID = 1L;
public static final String FIELD_ID = "id";
public static final String FIELD_COMPANY_CODE = "companyCode"; /* 企业编码*/
public static final String FIELD_DEP_CODE = "depCode"; /* 部门编码*/
public static final String FIELD_CREATED_BY = "createdBy"; /* 创建人*/
public static final String FIELD_CREATED_NAME = "createdName"; /* 创建人名称*/
public static final String FIELD_CREATED_TIME = "createdTime"; /* 创建时间*/
public static final String FIELD_UPDATED_BY = "updatedBy"; /* 更新人*/
public static final String FIELD_UPDATED_NAME = "updatedName"; /* 更新人名称*/
public static final String FIELD_UPDATED_TIME = "updatedTime"; /* 更新时间*/
public static final String FIELD_DELETE_FLAG = "deleteFlag"; /* 是否删除0.否1.是*/
public static final String FIELD_SURVEY_DATE = "surveyDate"; /* 调研日期*/
public static final String FIELD_DISTRICT = "district"; /* 区域*/
public static final String FIELD_PRODUCT_GOOD_BAD = "productGoodBad"; /* 产品优劣势*/
public static final String FIELD_PRICE_GOOD_BAD = "priceGoodBad"; /* 价格优劣势*/
public static final String FIELD_CHANNEL_EFFECT = "channelEffect"; /* 渠道效果*/
public static final String FIELD_PROMO_METHOD_GOOD_BAD = "promoMethodGoodBad"; /* 促销方式优劣势*/
public static final String FIELD_SURVEY_USER = "surveyUser"; /* 调查人员*/
public static final String COL_ID = "ID";
public static final String COL_COMPANY_CODE = "COMPANY_CODE"; /* 企业编码*/
public static final String COL_DEP_CODE = "DEP_CODE"; /* 部门编码*/
public static final String COL_CREATED_BY = "CREATED_BY"; /* 创建人*/
public static final String COL_CREATED_NAME = "CREATED_NAME"; /* 创建人名称*/
public static final String COL_CREATED_TIME = "CREATED_TIME"; /* 创建时间*/
public static final String COL_UPDATED_BY = "UPDATED_BY"; /* 更新人*/
public static final String COL_UPDATED_NAME = "UPDATED_NAME"; /* 更新人名称*/
public static final String COL_UPDATED_TIME = "UPDATED_TIME"; /* 更新时间*/
public static final String COL_DELETE_FLAG = "DELETE_FLAG"; /* 是否删除0.否1.是*/
public static final String COL_SURVEY_DATE = "SURVEY_DATE"; /* 调研日期*/
public static final String COL_DISTRICT = "DISTRICT"; /* 区域*/
public static final String COL_PRODUCT_GOOD_BAD = "PRODUCT_GOOD_BAD"; /* 产品优劣势*/
public static final String COL_PRICE_GOOD_BAD = "PRICE_GOOD_BAD"; /* 价格优劣势*/
public static final String COL_CHANNEL_EFFECT = "CHANNEL_EFFECT"; /* 渠道效果*/
public static final String COL_PROMO_METHOD_GOOD_BAD = "PROMO_METHOD_GOOD_BAD"; /* 促销方式优劣势*/
public static final String COL_SURVEY_USER = "SURVEY_USER"; /* 调查人员*/
public static final String QUERY = "HPYX004.query";
public static final String COUNT = "HPYX004.count";
public static final String INSERT = "HPYX004.insert";
public static final String UPDATE = "HPYX004.update";
public static final String DELETE = "HPYX004.delete";
public static final String DELETE_FLAG = "HPYX004.deleteFlag";
private Long id = new Long(0);
private String companyCode = " "; /* 企业编码*/
private String depCode = " "; /* 部门编码*/
private String createdBy = " "; /* 创建人*/
private String createdName = " "; /* 创建人名称*/
private String createdTime = " "; /* 创建时间*/
private String updatedBy = " "; /* 更新人*/
private String updatedName = " "; /* 更新人名称*/
private String updatedTime = " "; /* 更新时间*/
private Integer deleteFlag = 0; /* 是否删除0.否1.是*/
private String surveyDate = " "; /* 调研日期*/
private String district = " "; /* 区域*/
private String productGoodBad = " "; /* 产品优劣势*/
private String priceGoodBad = " "; /* 价格优劣势*/
private String channelEffect = " "; /* 渠道效果*/
private String promoMethodGoodBad = " "; /* 促销方式优劣势*/
private String surveyUser = " "; /* 调查人员*/
/**
* initialize the metadata.
*/
public void initMetaData() {
EiColumn eiColumn;
eiColumn = new EiColumn(FIELD_ID);
eiColumn.setPrimaryKey(true);
eiColumn.setDescName(" ");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_COMPANY_CODE);
eiColumn.setDescName("企业编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DEP_CODE);
eiColumn.setDescName("部门编码");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_BY);
eiColumn.setDescName("创建人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_NAME);
eiColumn.setDescName("创建人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CREATED_TIME);
eiColumn.setDescName("创建时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_BY);
eiColumn.setDescName("更新人");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_NAME);
eiColumn.setDescName("更新人名称");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_UPDATED_TIME);
eiColumn.setDescName("更新时间");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DELETE_FLAG);
eiColumn.setDescName("是否删除0.否1.是");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SURVEY_DATE);
eiColumn.setDescName("调研日期");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_DISTRICT);
eiColumn.setDescName("区域");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PRODUCT_GOOD_BAD);
eiColumn.setDescName("产品优劣势");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PRICE_GOOD_BAD);
eiColumn.setDescName("价格优劣势");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_CHANNEL_EFFECT);
eiColumn.setDescName("渠道效果");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_PROMO_METHOD_GOOD_BAD);
eiColumn.setDescName("促销方式优劣势");
eiMetadata.addMeta(eiColumn);
eiColumn = new EiColumn(FIELD_SURVEY_USER);
eiColumn.setDescName("调查人员");
eiMetadata.addMeta(eiColumn);
}
/**
* the constructor.
*/
public HPYX004() {
initMetaData();
}
/**
* get the id .
* @return the id
*/
public Long getId() {
return this.id;
}
/**
* set the id .
*
* @param id
*/
public void setId(Long id) {
this.id = id;
}
/**
* get the companyCode - 企业编码.
* @return the companyCode
*/
public String getCompanyCode() {
return this.companyCode;
}
/**
* set the companyCode - 企业编码.
*
* @param companyCode - 企业编码
*/
public void setCompanyCode(String companyCode) {
this.companyCode = companyCode;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public String getDepCode() {
return this.depCode;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public void setDepCode(String depCode) {
this.depCode = depCode;
}
/**
* get the createdBy - 创建人.
* @return the createdBy
*/
public String getCreatedBy() {
return this.createdBy;
}
/**
* set the createdBy - 创建人.
*
* @param createdBy - 创建人
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
* get the createdName - 创建人名称.
* @return the createdName
*/
public String getCreatedName() {
return this.createdName;
}
/**
* set the createdName - 创建人名称.
*
* @param createdName - 创建人名称
*/
public void setCreatedName(String createdName) {
this.createdName = createdName;
}
/**
* get the createdTime - 创建时间.
* @return the createdTime
*/
public String getCreatedTime() {
return this.createdTime;
}
/**
* set the createdTime - 创建时间.
*
* @param createdTime - 创建时间
*/
public void setCreatedTime(String createdTime) {
this.createdTime = createdTime;
}
/**
* get the updatedBy - 更新人.
* @return the updatedBy
*/
public String getUpdatedBy() {
return this.updatedBy;
}
/**
* set the updatedBy - 更新人.
*
* @param updatedBy - 更新人
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
/**
* get the updatedName - 更新人名称.
* @return the updatedName
*/
public String getUpdatedName() {
return this.updatedName;
}
/**
* set the updatedName - 更新人名称.
*
* @param updatedName - 更新人名称
*/
public void setUpdatedName(String updatedName) {
this.updatedName = updatedName;
}
/**
* get the updatedTime - 更新时间.
* @return the updatedTime
*/
public String getUpdatedTime() {
return this.updatedTime;
}
/**
* set the updatedTime - 更新时间.
*
* @param updatedTime - 更新时间
*/
public void setUpdatedTime(String updatedTime) {
this.updatedTime = updatedTime;
}
/**
* get the deleteFlag - 是否删除0.否1.是.
* @return the deleteFlag
*/
public Integer getDeleteFlag() {
return this.deleteFlag;
}
/**
* set the deleteFlag - 是否删除0.否1.是.
*
* @param deleteFlag - 是否删除0.否1.是
*/
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
/**
* get the surveyDate - 调研日期.
* @return the surveyDate
*/
public String getSurveyDate() {
return this.surveyDate;
}
/**
* set the surveyDate - 调研日期.
*
* @param surveyDate - 调研日期
*/
public void setSurveyDate(String surveyDate) {
this.surveyDate = surveyDate;
}
/**
* get the district - 区域.
* @return the district
*/
public String getDistrict() {
return this.district;
}
/**
* set the district - 区域.
*
* @param district - 区域
*/
public void setDistrict(String district) {
this.district = district;
}
/**
* get the productGoodBad - 产品优劣势.
* @return the productGoodBad
*/
public String getProductGoodBad() {
return this.productGoodBad;
}
/**
* set the productGoodBad - 产品优劣势.
*
* @param productGoodBad - 产品优劣势
*/
public void setProductGoodBad(String productGoodBad) {
this.productGoodBad = productGoodBad;
}
/**
* get the priceGoodBad - 价格优劣势.
* @return the priceGoodBad
*/
public String getPriceGoodBad() {
return this.priceGoodBad;
}
/**
* set the priceGoodBad - 价格优劣势.
*
* @param priceGoodBad - 价格优劣势
*/
public void setPriceGoodBad(String priceGoodBad) {
this.priceGoodBad = priceGoodBad;
}
/**
* get the channelEffect - 渠道效果.
* @return the channelEffect
*/
public String getChannelEffect() {
return this.channelEffect;
}
/**
* set the channelEffect - 渠道效果.
*
* @param channelEffect - 渠道效果
*/
public void setChannelEffect(String channelEffect) {
this.channelEffect = channelEffect;
}
/**
* get the promoMethodGoodBad - 促销方式优劣势.
* @return the promoMethodGoodBad
*/
public String getPromoMethodGoodBad() {
return this.promoMethodGoodBad;
}
/**
* set the promoMethodGoodBad - 促销方式优劣势.
*
* @param promoMethodGoodBad - 促销方式优劣势
*/
public void setPromoMethodGoodBad(String promoMethodGoodBad) {
this.promoMethodGoodBad = promoMethodGoodBad;
}
/**
* get the surveyUser - 调查人员.
* @return the surveyUser
*/
public String getSurveyUser() {
return this.surveyUser;
}
/**
* set the surveyUser - 调查人员.
*
* @param surveyUser - 调查人员
*/
public void setSurveyUser(String surveyUser) {
this.surveyUser = surveyUser;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public void fromMap(Map map) {
setId(NumberUtils.toLong(StringUtils.toString(map.get(FIELD_ID)), id));
setCompanyCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_COMPANY_CODE)), companyCode));
setDepCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DEP_CODE)), depCode));
setCreatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_BY)), createdBy));
setCreatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_NAME)), createdName));
setCreatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CREATED_TIME)), createdTime));
setUpdatedBy(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_BY)), updatedBy));
setUpdatedName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_NAME)), updatedName));
setUpdatedTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_UPDATED_TIME)), updatedTime));
setDeleteFlag(NumberUtils.toInteger(StringUtils.toString(map.get(FIELD_DELETE_FLAG)), deleteFlag));
setSurveyDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SURVEY_DATE)), surveyDate));
setDistrict(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_DISTRICT)), district));
setProductGoodBad(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_PRODUCT_GOOD_BAD)), productGoodBad));
setPriceGoodBad(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_PRICE_GOOD_BAD)), priceGoodBad));
setChannelEffect(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_CHANNEL_EFFECT)), channelEffect));
setPromoMethodGoodBad(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_PROMO_METHOD_GOOD_BAD)), promoMethodGoodBad));
setSurveyUser(StringUtils.defaultIfEmpty(StringUtils.toString(map.get(FIELD_SURVEY_USER)), surveyUser));
}
/**
* set the value to Map.
*/
@Override
public Map toMap() {
Map map = new HashMap();
map.put(FIELD_ID, StringUtils.toString(id, eiMetadata.getMeta(FIELD_ID)));
map.put(FIELD_COMPANY_CODE, StringUtils.toString(companyCode, eiMetadata.getMeta(FIELD_COMPANY_CODE)));
map.put(FIELD_DEP_CODE, StringUtils.toString(depCode, eiMetadata.getMeta(FIELD_DEP_CODE)));
map.put(FIELD_CREATED_BY, StringUtils.toString(createdBy, eiMetadata.getMeta(FIELD_CREATED_BY)));
map.put(FIELD_CREATED_NAME, StringUtils.toString(createdName, eiMetadata.getMeta(FIELD_CREATED_NAME)));
map.put(FIELD_CREATED_TIME, StringUtils.toString(createdTime, eiMetadata.getMeta(FIELD_CREATED_TIME)));
map.put(FIELD_UPDATED_BY, StringUtils.toString(updatedBy, eiMetadata.getMeta(FIELD_UPDATED_BY)));
map.put(FIELD_UPDATED_NAME, StringUtils.toString(updatedName, eiMetadata.getMeta(FIELD_UPDATED_NAME)));
map.put(FIELD_UPDATED_TIME, StringUtils.toString(updatedTime, eiMetadata.getMeta(FIELD_UPDATED_TIME)));
map.put(FIELD_DELETE_FLAG, StringUtils.toString(deleteFlag, eiMetadata.getMeta(FIELD_DELETE_FLAG)));
map.put(FIELD_SURVEY_DATE, StringUtils.toString(surveyDate, eiMetadata.getMeta(FIELD_SURVEY_DATE)));
map.put(FIELD_DISTRICT, StringUtils.toString(district, eiMetadata.getMeta(FIELD_DISTRICT)));
map.put(FIELD_PRODUCT_GOOD_BAD, StringUtils.toString(productGoodBad, eiMetadata.getMeta(FIELD_PRODUCT_GOOD_BAD)));
map.put(FIELD_PRICE_GOOD_BAD, StringUtils.toString(priceGoodBad, eiMetadata.getMeta(FIELD_PRICE_GOOD_BAD)));
map.put(FIELD_CHANNEL_EFFECT, StringUtils.toString(channelEffect, eiMetadata.getMeta(FIELD_CHANNEL_EFFECT)));
map.put(FIELD_PROMO_METHOD_GOOD_BAD, StringUtils.toString(promoMethodGoodBad, eiMetadata.getMeta(FIELD_PROMO_METHOD_GOOD_BAD)));
map.put(FIELD_SURVEY_USER, StringUtils.toString(surveyUser, eiMetadata.getMeta(FIELD_SURVEY_USER)));
return map;
}
}
package com.baosight.hpjx.hp.yx.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.common.DdynamicEnum;
import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.constant.HPConstant;
import com.baosight.hpjx.hp.yx.domain.HPYX001;
import com.baosight.hpjx.hp.yx.domain.HPYX002;
import com.baosight.hpjx.hp.yx.domain.HPYX003;
import com.baosight.hpjx.util.CommonMethod;
import com.baosight.hpjx.util.DateUtils;
import com.baosight.hpjx.util.LogUtils;
import com.baosight.hpjx.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* @author LiuYang
* @version 1.0 2024/9/27
* @description 市场调研-环境调研
*/
public class ServiceHPYX001 extends ServiceEPBase {
@Override
public EiInfo initLoad(EiInfo inInfo) {
try {
CommonMethod.initBlock(inInfo, Arrays.asList(
DdynamicEnum.CUSTOMER_RECORD_BLOCK_ID,
DdynamicEnum.SUPPLIER_RECORD_BLOCK_ID,
DdynamicEnum.USER_BLOCK_ID
), null, false);
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "初始化失败");
}
return inInfo;
}
@Override
public EiInfo query(EiInfo inInfo) {
String surveyDate = inInfo.getCellStr(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX002.FIELD_SURVEY_DATE);
if (!surveyDate.isEmpty()){
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX003.FIELD_SURVEY_DATE, DateUtils.formatShort(surveyDate));
}
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX002.FIELD_DELETE_FLAG, CommonConstant.YesNo.NO_0);
return super.query(inInfo, HPYX001.QUERY,new HPYX001());
}
@OperationLogAnnotation(operModul = "市场调研-环境调研",operType = "删除",operDesc = "删除操作")
@Override
public EiInfo delete(EiInfo inInfo) {
return super.delete(inInfo, HPYX001.DELETE_FLAG);
}
@OperationLogAnnotation(operModul = "市场调研-环境调研",operType = "保存",operDesc = "操作")
public EiInfo save(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
// 写入数据
for (Map resultRow : resultRows) {
HPYX001 hpyx001 = new HPYX001();
hpyx001.fromMap(resultRow);
if (hpyx001.getId() == null || hpyx001.getId() == 0) {
this.add(hpyx001);
} else {
this.modify(hpyx001);
}
}
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据保存成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "保存失败");
}
return inInfo;
}
/**
* 新增操作
*/
public void add(HPYX001 hpyx001) {
DaoUtils.insert(HPYX001.INSERT, hpyx001);
}
/**
* 修改操作
*/
public void modify(HPYX001 hpyx001) {
DaoUtils.update(HPYX001.UPDATE, hpyx001);
}
}
package com.baosight.hpjx.hp.yx.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.yx.domain.HPYX002;
import com.baosight.hpjx.hp.yx.domain.HPYX003;
import com.baosight.hpjx.util.DateUtils;
import com.baosight.hpjx.util.LogUtils;
import com.baosight.hpjx.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException;
import com.baosight.iplat4j.core.resource.I18nMessages;
import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import java.util.List;
import java.util.Map;
/**
* @author LiuYang
* @version 1.0 2024/9/27
* @description 市场调研-需求调研
*/
public class ServiceHPYX002 extends ServiceEPBase {
@Override
public EiInfo initLoad(EiInfo inInfo) {
return super.initLoad(inInfo);
}
@Override
public EiInfo query(EiInfo inInfo) {
try {
String surveyDate = inInfo.getCellStr(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX002.FIELD_SURVEY_DATE);
if (!surveyDate.isEmpty()){
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX003.FIELD_SURVEY_DATE, DateUtils.formatShort(surveyDate));
}
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX002.FIELD_DELETE_FLAG, CommonConstant.YesNo.NO_0);
inInfo = super.query(inInfo, HPYX002.QUERY, new HPYX002(),false,new HPYX002().eiMetadata,EiConstant.queryBlock,"resultA","resultA");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
}
return inInfo;
}
@OperationLogAnnotation(operModul = "市场调研-需求调研",operType = "删除",operDesc = "删除操作")
@Override
public EiInfo delete(EiInfo inInfo) {
int i = 0;
try {
EiBlock eiBlock = inInfo.getBlock("resultA");
for (i = 0; i < eiBlock.getRowCount(); i++) {
Map<?, ?> map = eiBlock.getRow(i);
HPYX002 hgsb002 = new HPYX002();
hgsb002.fromMap(map);
DaoUtils.update(HPYX002.DELETE_FLAG, hgsb002.toMap());
}
inInfo.setStatus(EiConstant.STATUS_SUCCESS);
inInfo.setMsgByKey("ep.1000", new String[]{String.valueOf(i), I18nMessages.getText("label.delete", "删除")});
} catch (PlatException e) {
LogUtils.setDetailMsg(inInfo, e, "删除失败");
}
return inInfo;
}
@OperationLogAnnotation(operModul = "市场调研-需求调研",operType = "保存",operDesc = "操作")
public EiInfo save(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock("resultA").getRows();
// 写入数据
for (Map resultRow : resultRows) {
HPYX002 hpyx002 = new HPYX002();
hpyx002.fromMap(resultRow);
if (hpyx002.getId() == null || hpyx002.getId() == 0) {
this.add(hpyx002);
} else {
this.modify(hpyx002);
}
}
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据保存成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "保存失败");
}
return inInfo;
}
/**
* 新增操作
*/
public void add(HPYX002 hpyx002) {
DaoUtils.insert(HPYX002.INSERT, hpyx002);
}
/**
* 修改操作
*/
public void modify(HPYX002 hpyx002) {
DaoUtils.update(HPYX002.UPDATE, hpyx002);
}
}
package com.baosight.hpjx.hp.yx.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.yx.domain.HPYX002;
import com.baosight.hpjx.hp.yx.domain.HPYX003;
import com.baosight.hpjx.hp.yx.domain.HPYX003;
import com.baosight.hpjx.util.DateUtils;
import com.baosight.hpjx.util.LogUtils;
import com.baosight.hpjx.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException;
import com.baosight.iplat4j.core.resource.I18nMessages;
import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import java.util.List;
import java.util.Map;
/**
* @author LiuYang
* @version 1.0 2024/9/27
* @description 市场调研-产品调研
*/
public class ServiceHPYX003 extends ServiceEPBase {
@Override
public EiInfo initLoad(EiInfo inInfo) {
return super.initLoad(inInfo);
}
@Override
public EiInfo query(EiInfo inInfo) {
try {
String surveyDate = inInfo.getCellStr(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX003.FIELD_SURVEY_DATE);
if (!surveyDate.isEmpty()){
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0,HPYX003.FIELD_SURVEY_DATE, DateUtils.formatShort(surveyDate));
}
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX002.FIELD_DELETE_FLAG, CommonConstant.YesNo.NO_0);
inInfo = super.query(inInfo, HPYX003.QUERY, new HPYX003(),false,new HPYX003().eiMetadata,EiConstant.queryBlock,"resultB","resultB");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
}
return inInfo;
}
@OperationLogAnnotation(operModul = "市场调研-产品调研",operType = "删除",operDesc = "删除操作")
@Override
public EiInfo delete(EiInfo inInfo) {
int i = 0;
try {
EiBlock eiBlock = inInfo.getBlock("resultB");
for (i = 0; i < eiBlock.getRowCount(); i++) {
Map<?, ?> map = eiBlock.getRow(i);
HPYX003 hpyx003 = new HPYX003();
hpyx003.fromMap(map);
DaoUtils.update(HPYX003.DELETE_FLAG, hpyx003.toMap());
}
inInfo.setStatus(EiConstant.STATUS_SUCCESS);
inInfo.setMsgByKey("ep.1000", new String[]{String.valueOf(i), I18nMessages.getText("label.delete", "删除")});
} catch (PlatException e) {
LogUtils.setDetailMsg(inInfo, e, "删除失败");
}
return inInfo;
}
@OperationLogAnnotation(operModul = "市场调研-产品调研",operType = "保存",operDesc = "操作")
public EiInfo save(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock("resultB").getRows();
// 写入数据
for (Map resultRow : resultRows) {
HPYX003 hpyx003 = new HPYX003();
hpyx003.fromMap(resultRow);
if (hpyx003.getId() == null || hpyx003.getId() == 0) {
this.add(hpyx003);
} else {
this.modify(hpyx003);
}
}
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据保存成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "保存失败");
}
return inInfo;
}
/**
* 新增操作
*/
public void add(HPYX003 hpyx003) {
DaoUtils.insert(HPYX003.INSERT, hpyx003);
}
/**
* 修改操作
*/
public void modify(HPYX003 hpyx003) {
DaoUtils.update(HPYX003.UPDATE, hpyx003);
}
}
package com.baosight.hpjx.hp.yx.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.yx.domain.HPYX002;
import com.baosight.hpjx.hp.yx.domain.HPYX003;
import com.baosight.hpjx.hp.yx.domain.HPYX004;
import com.baosight.hpjx.hp.yx.domain.HPYX004;
import com.baosight.hpjx.util.DateUtils;
import com.baosight.hpjx.util.LogUtils;
import com.baosight.hpjx.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException;
import com.baosight.iplat4j.core.resource.I18nMessages;
import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import java.util.List;
import java.util.Map;
/**
* @author LiuYang
* @version 1.0 2024/9/27
* @description 市场调研-营销调查
*/
public class ServiceHPYX004 extends ServiceEPBase {
@Override
public EiInfo initLoad(EiInfo inInfo) {
return super.initLoad(inInfo);
}
@Override
public EiInfo query(EiInfo inInfo) {
try {
String surveyDate = inInfo.getCellStr(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX004.FIELD_SURVEY_DATE);
if (!surveyDate.isEmpty()){
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0,HPYX004.FIELD_SURVEY_DATE, DateUtils.formatShort(surveyDate));
}
inInfo.setCell(EiConstant.queryBlock, ACConstants.ROW_CODE_0, HPYX002.FIELD_DELETE_FLAG, CommonConstant.YesNo.NO_0);
inInfo = super.query(inInfo, HPYX004.QUERY, new HPYX004(),false,new HPYX004().eiMetadata,EiConstant.queryBlock,"resultC","resultC");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败");
}
return inInfo;
}
@OperationLogAnnotation(operModul = "市场调研-营销调查",operType = "删除",operDesc = "删除操作")
@Override
public EiInfo delete(EiInfo inInfo) {
int i = 0;
try {
EiBlock eiBlock = inInfo.getBlock("resultC");
for (i = 0; i < eiBlock.getRowCount(); i++) {
Map<?, ?> map = eiBlock.getRow(i);
HPYX004 hpyx004 = new HPYX004();
hpyx004.fromMap(map);
DaoUtils.update(HPYX004.DELETE_FLAG, hpyx004.toMap());
}
inInfo.setStatus(EiConstant.STATUS_SUCCESS);
inInfo.setMsgByKey("ep.1000", new String[]{String.valueOf(i), I18nMessages.getText("label.delete", "删除")});
} catch (PlatException e) {
LogUtils.setDetailMsg(inInfo, e, "删除失败");
}
return inInfo;
}
@OperationLogAnnotation(operModul = "市场调研-营销调查",operType = "保存",operDesc = "操作")
public EiInfo save(EiInfo inInfo) {
try {
List<Map> resultRows = inInfo.getBlock("resultC").getRows();
// 写入数据
for (Map resultRow : resultRows) {
HPYX004 hpyx004 = new HPYX004();
hpyx004.fromMap(resultRow);
if (hpyx004.getId() == null || hpyx004.getId() == 0) {
this.add(hpyx004);
} else {
this.modify(hpyx004);
}
}
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据保存成功!");
} catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "保存失败");
}
return inInfo;
}
/**
* 新增操作
*/
public void add(HPYX004 hpyx004) {
DaoUtils.insert(HPYX004.INSERT, hpyx004);
}
/**
* 修改操作
*/
public void modify(HPYX004 hpyx004) {
DaoUtils.update(HPYX004.UPDATE, hpyx004);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information
Generate time : 2024-09-27 13:48:23
Version : 1.0
schema : hpjx
tableName : T_HPYX001
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT,
SURVEY_DATE VARCHAR,
DISTRICT VARCHAR,
POLICY_ENV VARCHAR,
ECONOMY_ENV VARCHAR,
SOCI_CULTURE_ENV VARCHAR,
SUPPLIER VARCHAR,
COMPETE_USER VARCHAR,
SURVEY_USER VARCHAR
-->
<sqlMap namespace="HPYX001">
<sql id="condition">
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyDate">
SURVEY_DATE = #surveyDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="district">
DISTRICT like concat('%',#district#,'%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="policyEnv">
POLICY_ENV = #policyEnv#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="economyEnv">
ECONOMY_ENV = #economyEnv#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="sociCultureEnv">
SOCI_CULTURE_ENV = #sociCultureEnv#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supplier">
SUPPLIER = #supplier#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="competeUser">
COMPETE_USER = #competeUser#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyUser">
SURVEY_USER = #surveyUser#
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.yx.domain.HPYX001">
SELECT
ID as "id",
COMPANY_CODE as "companyCode", <!-- 企业编码 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 更新人名称 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
DELETE_FLAG as "deleteFlag", <!-- 是否删除0.否1.是 -->
SURVEY_DATE as "surveyDate", <!-- 调研日期 -->
DISTRICT as "district", <!-- 区域 -->
POLICY_ENV as "policyEnv", <!-- 政策环境 -->
ECONOMY_ENV as "economyEnv", <!-- 经济环境 -->
SOCI_CULTURE_ENV as "sociCultureEnv", <!-- 社会文化环境 -->
SUPPLIER as "supplier", <!-- 涉及供应商 -->
COMPETE_USER as "competeUser", <!-- 竞争对手 -->
SURVEY_USER as "surveyUser" <!-- 调查人员 -->
FROM ${hpjxSchema}.T_HPYX001 WHERE 1=1
<include refid="condition" />
<dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy">
$orderBy$
</isNotEmpty>
<isEmpty property="orderBy">
ID asc
</isEmpty>
</dynamic>
</select>
<select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPYX001 WHERE 1=1
<include refid="condition" />
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyDate">
SURVEY_DATE = #surveyDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="district">
DISTRICT = #district#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="policyEnv">
POLICY_ENV = #policyEnv#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="economyEnv">
ECONOMY_ENV = #economyEnv#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="sociCultureEnv">
SOCI_CULTURE_ENV = #sociCultureEnv#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="supplier">
SUPPLIER = #supplier#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="competeUser">
COMPETE_USER = #competeUser#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyUser">
SURVEY_USER = #surveyUser#
</isNotEmpty>
-->
<insert id="insert">
INSERT INTO ${hpjxSchema}.T_HPYX001 (ID,
COMPANY_CODE, <!-- 企业编码 -->
DEP_CODE, <!-- 部门编码 -->
CREATED_BY, <!-- 创建人 -->
CREATED_NAME, <!-- 创建人名称 -->
CREATED_TIME, <!-- 创建时间 -->
UPDATED_BY, <!-- 更新人 -->
UPDATED_NAME, <!-- 更新人名称 -->
UPDATED_TIME, <!-- 更新时间 -->
DELETE_FLAG, <!-- 是否删除0.否1.是 -->
SURVEY_DATE, <!-- 调研日期 -->
DISTRICT, <!-- 区域 -->
POLICY_ENV, <!-- 政策环境 -->
ECONOMY_ENV, <!-- 经济环境 -->
SOCI_CULTURE_ENV, <!-- 社会文化环境 -->
SUPPLIER, <!-- 涉及供应商 -->
COMPETE_USER, <!-- 竞争对手 -->
SURVEY_USER <!-- 调查人员 -->
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #surveyDate#, #district#, #policyEnv#, #economyEnv#, #sociCultureEnv#, #supplier#, #competeUser#, #surveyUser#)
</insert>
<delete id="delete">
DELETE FROM ${hpjxSchema}.T_HPYX001 WHERE
ID = #id#
</delete>
<update id="deleteFlag">
UPDATE ${hpjxSchema}.T_HPYX001
SET
UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
DELETE_FLAG = 1 <!-- 是否删除0.否1.是 -->
WHERE
ID = #id#
</update>
<update id="update">
UPDATE ${hpjxSchema}.T_HPYX001
SET
COMPANY_CODE = #companyCode#, <!-- 企业编码 -->
DEP_CODE = #depCode#, <!-- 部门编码 -->
CREATED_BY = #createdBy#, <!-- 创建人 -->
CREATED_NAME = #createdName#, <!-- 创建人名称 -->
CREATED_TIME = #createdTime#, <!-- 创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 是否删除0.否1.是 -->
SURVEY_DATE = #surveyDate#, <!-- 调研日期 -->
DISTRICT = #district#, <!-- 区域 -->
POLICY_ENV = #policyEnv#, <!-- 政策环境 -->
ECONOMY_ENV = #economyEnv#, <!-- 经济环境 -->
SOCI_CULTURE_ENV = #sociCultureEnv#, <!-- 社会文化环境 -->
SUPPLIER = #supplier#, <!-- 涉及供应商 -->
COMPETE_USER = #competeUser#, <!-- 竞争对手 -->
SURVEY_USER = #surveyUser# <!-- 调查人员 -->
WHERE
ID = #id#
</update>
</sqlMap>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information
Generate time : 2024-09-27 13:48:23
Version : 1.0
schema : hpjx
tableName : T_HPYX002
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT,
SURVEY_DATE VARCHAR,
DISTRICT VARCHAR,
CLIENT VARCHAR,
BUY_MOTIVE VARCHAR,
BUY_AMOUNT DECIMAL,
BUY_PRODUCTS VARCHAR,
SURVEY_USER VARCHAR
-->
<sqlMap namespace="HPYX002">
<sql id="condition">
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyDate">
SURVEY_DATE = #surveyDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="district">
DISTRICT like concat('%',#district#,'%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="client">
CLIENT = #client#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="buyMotive">
BUY_MOTIVE = #buyMotive#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="buyAmount">
BUY_AMOUNT = #buyAmount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="buyProducts">
BUY_PRODUCTS = #buyProducts#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyUser">
SURVEY_USER = #surveyUser#
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.yx.domain.HPYX002">
SELECT
ID as "id",
COMPANY_CODE as "companyCode", <!-- 企业编码 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 更新人名称 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
DELETE_FLAG as "deleteFlag", <!-- 是否删除0.否1.是 -->
SURVEY_DATE as "surveyDate", <!-- 调研日期 -->
DISTRICT as "district", <!-- 区域 -->
CLIENT as "client", <!-- 客户 -->
BUY_MOTIVE as "buyMotive", <!-- 购买动机 -->
BUY_AMOUNT as "buyAmount", <!-- 购买能力 -->
BUY_PRODUCTS as "buyProducts", <!-- 经常购买产品 -->
SURVEY_USER as "surveyUser" <!-- 调查人员 -->
FROM ${hpjxSchema}.T_HPYX002 WHERE 1=1
<include refid="condition" />
<dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy">
$orderBy$
</isNotEmpty>
<isEmpty property="orderBy">
ID asc
</isEmpty>
</dynamic>
</select>
<select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPYX002 WHERE 1=1
<include refid="condition" />
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyDate">
SURVEY_DATE = #surveyDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="district">
DISTRICT = #district#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="client">
CLIENT = #client#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="buyMotive">
BUY_MOTIVE = #buyMotive#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="buyAmount">
BUY_AMOUNT = #buyAmount#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="buyProducts">
BUY_PRODUCTS = #buyProducts#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyUser">
SURVEY_USER = #surveyUser#
</isNotEmpty>
-->
<insert id="insert">
INSERT INTO ${hpjxSchema}.T_HPYX002 (ID,
COMPANY_CODE, <!-- 企业编码 -->
DEP_CODE, <!-- 部门编码 -->
CREATED_BY, <!-- 创建人 -->
CREATED_NAME, <!-- 创建人名称 -->
CREATED_TIME, <!-- 创建时间 -->
UPDATED_BY, <!-- 更新人 -->
UPDATED_NAME, <!-- 更新人名称 -->
UPDATED_TIME, <!-- 更新时间 -->
DELETE_FLAG, <!-- 是否删除0.否1.是 -->
SURVEY_DATE, <!-- 调研日期 -->
DISTRICT, <!-- 区域 -->
CLIENT, <!-- 客户 -->
BUY_MOTIVE, <!-- 购买动机 -->
BUY_AMOUNT, <!-- 购买能力 -->
BUY_PRODUCTS, <!-- 经常购买产品 -->
SURVEY_USER <!-- 调查人员 -->
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #surveyDate#, #district#, #client#, #buyMotive#, #buyAmount#, #buyProducts#, #surveyUser#)
</insert>
<delete id="delete">
DELETE FROM ${hpjxSchema}.T_HPYX002 WHERE
ID = #id#
</delete>
<update id="deleteFlag">
UPDATE ${hpjxSchema}.T_HPYX002
SET
UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
DELETE_FLAG = 1 <!-- 是否删除0.否1.是 -->
WHERE
ID = #id#
</update>
<update id="update">
UPDATE ${hpjxSchema}.T_HPYX002
SET
COMPANY_CODE = #companyCode#, <!-- 企业编码 -->
DEP_CODE = #depCode#, <!-- 部门编码 -->
CREATED_BY = #createdBy#, <!-- 创建人 -->
CREATED_NAME = #createdName#, <!-- 创建人名称 -->
CREATED_TIME = #createdTime#, <!-- 创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 是否删除0.否1.是 -->
SURVEY_DATE = #surveyDate#, <!-- 调研日期 -->
DISTRICT = #district#, <!-- 区域 -->
CLIENT = #client#, <!-- 客户 -->
BUY_MOTIVE = #buyMotive#, <!-- 购买动机 -->
BUY_AMOUNT = #buyAmount#, <!-- 购买能力 -->
BUY_PRODUCTS = #buyProducts#, <!-- 经常购买产品 -->
SURVEY_USER = #surveyUser# <!-- 调查人员 -->
WHERE
ID = #id#
</update>
</sqlMap>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information
Generate time : 2024-09-27 13:48:23
Version : 1.0
schema : hpjx
tableName : T_HPYX003
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT,
SURVEY_DATE VARCHAR,
DISTRICT VARCHAR,
PRODUCT_NAME VARCHAR,
QUANTITY DECIMAL,
PRICE DECIMAL,
QUALITY VARCHAR,
SURVEY_USER VARCHAR
-->
<sqlMap namespace="HPYX003">
<sql id="condition">
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyDate">
SURVEY_DATE = #surveyDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="district">
DISTRICT like concat('%',#district#,'%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productName">
PRODUCT_NAME = #productName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantity">
QUANTITY = #quantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="price">
PRICE = #price#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quality">
QUALITY = #quality#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyUser">
SURVEY_USER = #surveyUser#
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.yx.domain.HPYX003">
SELECT
ID as "id",
COMPANY_CODE as "companyCode", <!-- 企业编码 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 更新人名称 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
DELETE_FLAG as "deleteFlag", <!-- 是否删除0.否1.是 -->
SURVEY_DATE as "surveyDate", <!-- 调研日期 -->
DISTRICT as "district", <!-- 区域 -->
PRODUCT_NAME as "productName", <!-- 产品名称 -->
QUANTITY as "quantity", <!-- 产品数量 -->
PRICE as "price", <!-- 价格 -->
QUALITY as "quality", <!-- 质量 -->
SURVEY_USER as "surveyUser" <!-- 调查人员 -->
FROM ${hpjxSchema}.T_HPYX003 WHERE 1=1
<include refid="condition" />
<dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy">
$orderBy$
</isNotEmpty>
<isEmpty property="orderBy">
ID asc
</isEmpty>
</dynamic>
</select>
<select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPYX003 WHERE 1=1
<include refid="condition" />
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyDate">
SURVEY_DATE = #surveyDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="district">
DISTRICT = #district#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productName">
PRODUCT_NAME = #productName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quantity">
QUANTITY = #quantity#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="price">
PRICE = #price#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="quality">
QUALITY = #quality#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyUser">
SURVEY_USER = #surveyUser#
</isNotEmpty>
-->
<insert id="insert">
INSERT INTO ${hpjxSchema}.T_HPYX003 (ID,
COMPANY_CODE, <!-- 企业编码 -->
DEP_CODE, <!-- 部门编码 -->
CREATED_BY, <!-- 创建人 -->
CREATED_NAME, <!-- 创建人名称 -->
CREATED_TIME, <!-- 创建时间 -->
UPDATED_BY, <!-- 更新人 -->
UPDATED_NAME, <!-- 更新人名称 -->
UPDATED_TIME, <!-- 更新时间 -->
DELETE_FLAG, <!-- 是否删除0.否1.是 -->
SURVEY_DATE, <!-- 调研日期 -->
DISTRICT, <!-- 区域 -->
PRODUCT_NAME, <!-- 产品名称 -->
QUANTITY, <!-- 产品数量 -->
PRICE, <!-- 价格 -->
QUALITY, <!-- 质量 -->
SURVEY_USER <!-- 调查人员 -->
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #surveyDate#, #district#, #productName#, #quantity#, #price#, #quality#, #surveyUser#)
</insert>
<delete id="delete">
DELETE FROM ${hpjxSchema}.T_HPYX003 WHERE
ID = #id#
</delete>
<update id="deleteFlag">
UPDATE ${hpjxSchema}.T_HPYX003
SET
UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
DELETE_FLAG = 1 <!-- 是否删除0.否1.是 -->
WHERE
ID = #id#
</update>
<update id="update">
UPDATE ${hpjxSchema}.T_HPYX003
SET
COMPANY_CODE = #companyCode#, <!-- 企业编码 -->
DEP_CODE = #depCode#, <!-- 部门编码 -->
CREATED_BY = #createdBy#, <!-- 创建人 -->
CREATED_NAME = #createdName#, <!-- 创建人名称 -->
CREATED_TIME = #createdTime#, <!-- 创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 是否删除0.否1.是 -->
SURVEY_DATE = #surveyDate#, <!-- 调研日期 -->
DISTRICT = #district#, <!-- 区域 -->
PRODUCT_NAME = #productName#, <!-- 产品名称 -->
QUANTITY = #quantity#, <!-- 产品数量 -->
PRICE = #price#, <!-- 价格 -->
QUALITY = #quality#, <!-- 质量 -->
SURVEY_USER = #surveyUser# <!-- 调查人员 -->
WHERE
ID = #id#
</update>
</sqlMap>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <!-- table information
Generate time : 2024-09-27 13:48:23
Version : 1.0
schema : hpjx
tableName : T_HPYX004
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR,
DEP_CODE VARCHAR,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_NAME VARCHAR,
UPDATED_TIME VARCHAR,
DELETE_FLAG TINYINT,
SURVEY_DATE VARCHAR,
DISTRICT VARCHAR,
PRODUCT_GOOD_BAD VARCHAR,
PRICE_GOOD_BAD VARCHAR,
CHANNEL_EFFECT VARCHAR,
PROMO_METHOD_GOOD_BAD VARCHAR,
SURVEY_USER VARCHAR
-->
<sqlMap namespace="HPYX004">
<sql id="condition">
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyDate">
SURVEY_DATE = #surveyDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="district">
DISTRICT like concat('%',#district#,'%')
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productGoodBad">
PRODUCT_GOOD_BAD = #productGoodBad#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="priceGoodBad">
PRICE_GOOD_BAD = #priceGoodBad#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="channelEffect">
CHANNEL_EFFECT = #channelEffect#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="promoMethodGoodBad">
PROMO_METHOD_GOOD_BAD = #promoMethodGoodBad#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyUser">
SURVEY_USER = #surveyUser#
</isNotEmpty>
</sql>
<select id="query" parameterClass="java.util.HashMap"
resultClass="com.baosight.hpjx.hp.yx.domain.HPYX004">
SELECT
ID as "id",
COMPANY_CODE as "companyCode", <!-- 企业编码 -->
DEP_CODE as "depCode", <!-- 部门编码 -->
CREATED_BY as "createdBy", <!-- 创建人 -->
CREATED_NAME as "createdName", <!-- 创建人名称 -->
CREATED_TIME as "createdTime", <!-- 创建时间 -->
UPDATED_BY as "updatedBy", <!-- 更新人 -->
UPDATED_NAME as "updatedName", <!-- 更新人名称 -->
UPDATED_TIME as "updatedTime", <!-- 更新时间 -->
DELETE_FLAG as "deleteFlag", <!-- 是否删除0.否1.是 -->
SURVEY_DATE as "surveyDate", <!-- 调研日期 -->
DISTRICT as "district", <!-- 区域 -->
PRODUCT_GOOD_BAD as "productGoodBad", <!-- 产品优劣势 -->
PRICE_GOOD_BAD as "priceGoodBad", <!-- 价格优劣势 -->
CHANNEL_EFFECT as "channelEffect", <!-- 渠道效果 -->
PROMO_METHOD_GOOD_BAD as "promoMethodGoodBad", <!-- 促销方式优劣势 -->
SURVEY_USER as "surveyUser" <!-- 调查人员 -->
FROM ${hpjxSchema}.T_HPYX004 WHERE 1=1
<include refid="condition" />
<dynamic prepend="ORDER BY">
<isNotEmpty property="orderBy">
$orderBy$
</isNotEmpty>
<isEmpty property="orderBy">
ID asc
</isEmpty>
</dynamic>
</select>
<select id="count" resultClass="int">
SELECT COUNT(*) FROM ${hpjxSchema}.T_HPYX004 WHERE 1=1
<include refid="condition" />
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
DEP_CODE = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="deleteFlag">
DELETE_FLAG = #deleteFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyDate">
SURVEY_DATE = #surveyDate#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="district">
DISTRICT = #district#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="productGoodBad">
PRODUCT_GOOD_BAD = #productGoodBad#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="priceGoodBad">
PRICE_GOOD_BAD = #priceGoodBad#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="channelEffect">
CHANNEL_EFFECT = #channelEffect#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="promoMethodGoodBad">
PROMO_METHOD_GOOD_BAD = #promoMethodGoodBad#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="surveyUser">
SURVEY_USER = #surveyUser#
</isNotEmpty>
-->
<insert id="insert">
INSERT INTO ${hpjxSchema}.T_HPYX004 (ID,
COMPANY_CODE, <!-- 企业编码 -->
DEP_CODE, <!-- 部门编码 -->
CREATED_BY, <!-- 创建人 -->
CREATED_NAME, <!-- 创建人名称 -->
CREATED_TIME, <!-- 创建时间 -->
UPDATED_BY, <!-- 更新人 -->
UPDATED_NAME, <!-- 更新人名称 -->
UPDATED_TIME, <!-- 更新时间 -->
DELETE_FLAG, <!-- 是否删除0.否1.是 -->
SURVEY_DATE, <!-- 调研日期 -->
DISTRICT, <!-- 区域 -->
PRODUCT_GOOD_BAD, <!-- 产品优劣势 -->
PRICE_GOOD_BAD, <!-- 价格优劣势 -->
CHANNEL_EFFECT, <!-- 渠道效果 -->
PROMO_METHOD_GOOD_BAD, <!-- 促销方式优劣势 -->
SURVEY_USER <!-- 调查人员 -->
)
VALUES (#id#, #companyCode#, #depCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #surveyDate#, #district#, #productGoodBad#, #priceGoodBad#, #channelEffect#, #promoMethodGoodBad#, #surveyUser#)
</insert>
<delete id="delete">
DELETE FROM ${hpjxSchema}.T_HPYX004 WHERE
ID = #id#
</delete>
<update id="deleteFlag">
UPDATE ${hpjxSchema}.T_HPYX004
SET
UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
DELETE_FLAG = 1 <!-- 是否删除0.否1.是 -->
WHERE
ID = #id#
</update>
<update id="update">
UPDATE ${hpjxSchema}.T_HPYX004
SET
COMPANY_CODE = #companyCode#, <!-- 企业编码 -->
DEP_CODE = #depCode#, <!-- 部门编码 -->
CREATED_BY = #createdBy#, <!-- 创建人 -->
CREATED_NAME = #createdName#, <!-- 创建人名称 -->
CREATED_TIME = #createdTime#, <!-- 创建时间 -->
UPDATED_BY = #updatedBy#, <!-- 更新人 -->
UPDATED_NAME = #updatedName#, <!-- 更新人名称 -->
UPDATED_TIME = #updatedTime#, <!-- 更新时间 -->
DELETE_FLAG = #deleteFlag#, <!-- 是否删除0.否1.是 -->
SURVEY_DATE = #surveyDate#, <!-- 调研日期 -->
DISTRICT = #district#, <!-- 区域 -->
PRODUCT_GOOD_BAD = #productGoodBad#, <!-- 产品优劣势 -->
PRICE_GOOD_BAD = #priceGoodBad#, <!-- 价格优劣势 -->
CHANNEL_EFFECT = #channelEffect#, <!-- 渠道效果 -->
PROMO_METHOD_GOOD_BAD = #promoMethodGoodBad#, <!-- 促销方式优劣势 -->
SURVEY_USER = #surveyUser# <!-- 调查人员 -->
WHERE
ID = #id#
</update>
</sqlMap>
$(function() {
// 查询
$("#QUERY").on("click", function () {
query();
});
$("#cancel").on("click", function () {
cancelFunc();
});
$("#btn_save").on("click", function () {
btnSaveFunc();
});
IPLATUI.EFTab = {
"info": {
show: function (e) {
$(e.contentElement).find("div[data-role='grid']").data("kendoGrid").refresh();
let grid = $(e.contentElement).find("div[data-role='grid']").data("kendoGrid");
grid.dataSource.page(1)
/*if (e.name == "info-tab-1") {
} else if (e.name == "info-tab-2") {
$("#info-tab-2").click();
} else if (e.name == "info-tab-3") {
$("#info-tab-3").click();
}*/
},
select: onSelect // 绑定select事件处理函数
}
}
IPLATUI.EFGrid = {
"result": {
columns: [
{
field: "operator",
title: "操作",
template: function (item) {
let YX001 = "YX001";
let template = "";
if (item.id) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px"'
+ 'onclick="uploadFile(' + item.id + ',\''+YX001+'\')" >附件清单</a>';
}
return template;
}
}
],
loadComplete: function(grid) {
// 此 grid 对象
$("#info-tab-1").on("click", function () {
grid.dataSource.page(1);
});
},
dataBound: function (e) {
},
onAdd: function (e) {
$.each(e.items, function (index, item) {
item['surveyDate'] = currShortDate()
});
},
onSave: function (e) {
// 阻止默认请求,使用自定义保存
e.preventDefault();
let btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
btnSaveFunc(btnNode);
},
onSuccess: function (e) {
if (e.eiInfo.extAttr.methodName == 'save' || e.eiInfo.extAttr.methodName == 'delete') {
query();
}
},
},
"resultA": {
columns: [
{
field: "operator",
title: "操作",
template: function (item) {
let YX002 = "YX002";
let template = "";
if (item.id) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="uploadFile(' + item.id + ',\''+YX002+'\')" >附件清单</a>';
}
return template;
}
}
],
loadComplete: function(grid) {
// 此 grid 对象
$("#info-tab-2").on("click", function () {
grid.dataSource.page(1);
});
$("#SAVEA").on("click", function () {
let btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
btnSaveFunc(btnNode,"resultA");
});
},
dataBound: function (e) {
},
onAdd: function (e) {
$.each(e.items, function (index, item) {
item['surveyDate'] = currShortDate()
});
},
onSave: function (e) {
// 阻止默认请求,使用自定义保存
e.preventDefault();
let btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
btnSaveFuncA(btnNode);
},
onSuccess: function (e) {
if (e.eiInfo.extAttr.methodName == 'save' || e.eiInfo.extAttr.methodName == 'delete') {
query();
}
},
},
"resultB": {
columns: [
{
field: "operator",
title: "操作",
template: function (item) {
let YX003 = "YX003";
let template = "";
if (item.id) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="uploadFile(' + item.id + ',\''+YX003+'\')" >附件清单</a>';
}
return template;
}
}
],
loadComplete: function(grid) {
// 此 grid 对象
$("#info-tab-3").on("click", function () {
grid.dataSource.page(1);
});
$("#SAVEB").on("click", function () {
let btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
btnSaveFunc(btnNode,"resultB");
});
},
onAdd: function (e) {
$.each(e.items, function (index, item) {
item['surveyDate'] = currShortDate()
});
},
onSave: function (e) {
// 阻止默认请求,使用自定义保存
e.preventDefault();
let btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
btnSaveFuncB(btnNode);
},
onSuccess: function (e) {
if (e.eiInfo.extAttr.methodName == 'save' || e.eiInfo.extAttr.methodName == 'delete') {
query();
}
},
},
"resultC": {
columns: [
{
field: "operator",
title: "操作",
template: function (item) {
let template = '';
let YX004 = "YX004";
if (item.id) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="uploadFile(' + item.id + ',\''+YX004+'\')" >附件清单</a>';
}
return template;
}
}
],
loadComplete: function(grid) {
// 此 grid 对象
$("#info-tab-4").on("click", function () {
grid.dataSource.page(1);
});
},
onAdd: function (e) {
$.each(e.items, function (index, item) {
item['surveyDate'] = currShortDate()
});
},
onSave: function (e) {
// 阻止默认请求,使用自定义保存
e.preventDefault();
let btnNode = $(this);
//禁用按钮
btnNode.attr("disabled", true);
btnSaveFuncC(btnNode);
},
onSuccess: function (e) {
if (e.eiInfo.extAttr.methodName == 'save' || e.eiInfo.extAttr.methodName == 'delete') {
query();
}
},
}
};
window.document.addEventListener("keyup",function (event) {
if(event.keyCode === 13){
var grid = $("#ef_grid_result").data("kendoGrid");
grid.closeCell();
}
})
});
var selectedTab = 0;
let query = function () {
if (selectedTab == 0){
resultGrid.dataSource.page(1);
}else if (selectedTab == 1){
resultAGrid.dataSource.page(1);
}else if (selectedTab == 2){
resultBGrid.dataSource.page(1);
} else if (selectedTab == 3){
resultCGrid.dataSource.page(1);
}
}
function onSelect(e) {
var selecTab = e.item; // e.item是被选中的标签DOM元素
selectedTab = $("#info").find("li").index(selecTab); // 获取被选中标签的索引
//var selectedTabText = $(selectedTab).find("a").text(); // 获取被选中标签的文本
}
function btnSaveFunc(btnNode) {
let rows = resultGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据")
return;
}
let flag = true;
rows.forEach(function (item,index){
if (isBlank(item.district)){
message("选中的第"+(index+1)+"行\"区域\",不能为空!");
flag = false;
return false;
}
if (isBlank(item.supplier)){
message("选中的第"+(index+1)+"行\"供应商\",不能为空!");
flag = false;
return false;
}
if (isBlank(item.competeUser)){
message("选中的第"+(index+1)+"行\"竞争对手\",不能为空!");
flag = false;
return false;
}
if (isBlank(item.surveyUser)){
message("选中的第"+(index+1)+"行\"调查人员\",不能为空!");
flag = false;
return false;
}
})
if (flag){
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
ok: function () {
JSUtils.submitGridsData("result", "HPYX001", "save",
true, function (e) {
var status = e.getStatus();
if (status !== -1) {
NotificationUtil(e.msg);
query();
}else {
NotificationUtil(e.msg, "error");
}
btnNode.attr("disabled", false);
}
);
}
});
}
}
function btnSaveFuncA(btnNode) {
let rows = resultAGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据")
return;
}
let flag = true;
rows.forEach(function (item,index){
if (isBlank(item.district)){
message("选中的第"+(index+1)+"行\"区域\",不能为空!");
flag = false;
return false;
}
if (isBlank(item.client)){
message("选中的第"+(index+1)+"行\"客户名称\",不能为空!");
flag = false;
return false;
}
if (isBlank(item.surveyUser)){
message("选中的第"+(index+1)+"行\"调查人员\",不能为空!");
flag = false;
return false;
}
})
if (flag){
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
ok: function () {
JSUtils.submitGridsData("resultA", "HPYX002", "save",
true, function (e) {
var status = e.getStatus();
if (status !== -1) {
NotificationUtil(e.msg);
query();
}else {
NotificationUtil(e.msg, "error");
}
btnNode.attr("disabled", false);
}
);
}
});
}
}
function btnSaveFuncB(btnNode) {
let rows = resultBGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据")
return;
}
let flag = true;
rows.forEach(function (item,index){
if (isBlank(item.district)){
message("选中的第"+(index+1)+"行\"区域\",不能为空!");
flag = false;
return false;
}
if (isBlank(item.surveyUser)){
message("选中的第"+(index+1)+"行\"调查人员\",不能为空!");
flag = false;
return false;
}
})
if (flag){
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
ok: function () {
JSUtils.submitGridsData("resultB", "HPYX003", "save",
true, function (e) {
var status = e.getStatus();
if (status !== -1) {
NotificationUtil(e.msg);
query();
}else {
NotificationUtil(e.msg, "error");
}
btnNode.attr("disabled", false);
}
);
}
});
}
}
function btnSaveFuncC(btnNode) {
let rows = resultCGrid.getCheckedRows();
if (rows.length < 1) {
message("请选择数据")
return;
}
let flag = true;
rows.forEach(function (item,index){
if (isBlank(item.district)){
message("选中的第"+(index+1)+"行\"区域\",不能为空!");
flag = false;
return false;
}
if (isBlank(item.surveyUser)){
message("选中的第"+(index+1)+"行\"调查人员\",不能为空!");
flag = false;
return false;
}
})
if (flag){
JSUtils.confirm("确定对勾选中的[" + rows.length + "]条数据做\"保存\"操作? ", {
ok: function () {
JSUtils.submitGridsData("resultC", "HPYX004", "save",
true, function (e) {
var status = e.getStatus();
if (status !== -1) {
NotificationUtil(e.msg);
query();
}else {
NotificationUtil(e.msg, "error");
}
btnNode.attr("disabled", false);
}
);
}
});
}
}
/**
* 文件上传
*
* @param id
*/
function uploadFile(id,bizType) {
JSColorbox.open({
href: "HPSB099?methodName=initLoad&inqu_status-0-matId="+id+"&inqu_status-0-bizType="+bizType,
title: "<div style='text-align: center;'>附件清单</div>",
width: "60%",
height: "50%",
//callbackName: uploadFileCallback
});
}
\ No newline at end of file
<%@ page import="com.baosight.iplat4j.core.web.threadlocal.UserSession" %><%--
Created by IntelliJ IDEA.
User: 1
Date: 2024/9/27
Time: 14:43
To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="EF" tagdir="/WEB-INF/tags/EF" %>
<%
String loginName = UserSession.getLoginName();
%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="loginName" value="<%=loginName%>" />
<script>
var ctx = "${ctx}";
</script>
<EF:EFPage title="采购收货选择">
<EF:EFRegion id="inqu">
<div class="row">
<EF:EFDatePicker blockId="inqu_status" row="0" ename="surveyDate" cname="日期"
role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="district" cname="区域" colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="surveyUser" cname="调查人员" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
</div>
</EF:EFRegion>
<EF:EFTab id="info">
<div title="环境调查">
<EF:EFGrid blockId="result" autoDraw="override" autoBind="false">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="企业编码" hidden="true"/>
<%--blockName="factoryCodeBox_block_id"--%>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFColumn ename="surveyDate" cname="日期" width="120" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="district" cname="区域" width="120" enable="true" readonly="false" align="center" required="true"/>
<EF:EFColumn ename="policyEnv" cname="政策环境" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFColumn ename="economyEnv" cname="经济环境" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFColumn ename="sociCultureEnv" cname="社会文化环境" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFComboColumn ename="supplier" cname="供应商名称" blockName="supplier_record_block_id"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="200" required="true"
align="center" filter="contains" sort="true">
</EF:EFComboColumn>
<EF:EFColumn ename="competeUser" cname="竞争对手" width="120" enable="true" readonly="false" align="center" required="true"/>
<EF:EFComboColumn ename="surveyUser" cname="调查人员" columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField" defaultValue="${loginName}"
maxLength="16" width="100" readonly="false" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false"
enable="false"/>
<EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="120" readonly="true" required="false"
enable="false"/>
</EF:EFGrid>
</div>
<div title="需求调查">
<EF:EFGrid blockId="resultA" autoDraw="override" autoBind="false" needAuth="false" serviceName="HPYX002">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="企业编码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFColumn ename="surveyDate" cname="日期" width="120" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="district" cname="区域" width="120" enable="true" readonly="false" align="center" required="true"/>
<EF:EFComboColumn ename="client" cname="客户名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="200" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="customer_record_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="buyMotive" cname="购买动机" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFColumn ename="buyAmount" cname="购买能力" width="120" enable="true" format="{0:C2}" align="right"
maxLength="15" displayType="0.00"
data-regex="/^-?[0-9]{1,12}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置12位整数和2位小数!"/>
<EF:EFColumn ename="buyProducts" cname="经常购买产品" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFComboColumn ename="surveyUser" cname="调查人员" columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField" defaultValue="${loginName}"
maxLength="16" width="100" readonly="false" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false"
enable="false"/>
<EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="120" readonly="true" required="false"
enable="false"/>
</EF:EFGrid>
</div>
<div title="产品调查">
<EF:EFGrid blockId="resultB" autoDraw="override" autoBind="false" needAuth="false" serviceName="HPYX003">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="companyCode" cname="企业编码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFColumn ename="surveyDate" cname="日期" width="120" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="district" cname="区域" width="120" enable="true" readonly="false" align="center" required="true"/>
<EF:EFColumn ename="productName" cname="产品名称" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFColumn ename="quantity" cname="产品数量" maxLength="15" displayType="0.00" format="{0:C2}"
data-regex="/^-?[0-9]{1,12}([.][0-9]{1,3})?$/"
data-errorprompt="请输入数字,该值最大可设置12位整数和3位小数!" sumType="all"/>
<EF:EFColumn ename="price" cname="价格" maxLength="15" displayType="0.00" format="{0:C2}"
data-regex="/^-?[0-9]{1,12}([.][0-9]{1,3})?$/"
data-errorprompt="请输入数字,该值最大可设置12位整数和3位小数!" sumType="all"/>
<EF:EFColumn ename="quality" cname="质量" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFComboColumn ename="surveyUser" cname="调查人员" columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField" defaultValue="${loginName}"
maxLength="16" width="100" readonly="false" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false"
enable="false"/>
<EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="120" readonly="true" required="false"
enable="false"/>
</EF:EFGrid>
</div>
<div title="营销调查">
<EF:EFGrid blockId="resultC" autoDraw="override" autoBind="false" needAuth="false" serviceName="HPYX004">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="120" align="center"/>
<EF:EFColumn ename="surveyDate" cname="日期" width="120" enable="true" readonly="false" align="center" editType="date"
dateFormat="yyyy-MM-dd" parseFormats="['yyyyMMdd']" required="true"/>
<EF:EFColumn ename="district" cname="区域" width="120" enable="true" readonly="false" align="center" required="true"/>
<EF:EFColumn ename="productGoodBad" cname="产品优劣势" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFColumn ename="priceGoodBad" cname="价格优劣势" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFColumn ename="channelEffect" cname="渠道效果" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFColumn ename="promoMethodGoodBad" cname="促销方式优劣势" width="120" enable="true" readonly="false" align="center" required="false"/>
<EF:EFComboColumn ename="surveyUser" cname="调查人员" columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField" defaultValue="${loginName}"
maxLength="16" width="100" readonly="false" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="user_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn cname="创建人" ename="createdName" align="center" width="100" readonly="true" required="false"
enable="false"/>
<EF:EFColumn cname="创建时间" ename="createdTime" parseFormats="['yyyyMMddHHmmss']" editType="datetime"
dateFormat="yyyy-MM-dd HH:mm:ss" align="center" width="120" readonly="true" required="false"
enable="false"/>
</EF:EFGrid>
</div>
</EF:EFTab>
</EF:EFPage>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment