提交 d1ba1da3 编写于 作者: M megagao

添加了mybatis逆向工程生成的mapper接口和xml

上级 3fb12117
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Department;
import org.hqu.production_ms.domain.DepartmentExample;
public interface DepartmentMapper {
int countByExample(DepartmentExample example);
int deleteByExample(DepartmentExample example);
int deleteByPrimaryKey(String departmentId);
int insert(Department record);
int insertSelective(Department record);
List<Department> selectByExample(DepartmentExample example);
Department selectByPrimaryKey(String departmentId);
int updateByExampleSelective(@Param("record") Department record, @Param("example") DepartmentExample example);
int updateByExample(@Param("record") Department record, @Param("example") DepartmentExample example);
int updateByPrimaryKeySelective(Department record);
int updateByPrimaryKey(Department record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.DepartmentMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.Department" >
<id column="department_id" property="departmentId" jdbcType="VARCHAR" />
<result column="department_name" property="departmentName" jdbcType="VARCHAR" />
<result column="department_duty" property="departmentDuty" jdbcType="VARCHAR" />
<result column="note" property="note" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
department_id, department_name, department_duty, note
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.DepartmentExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from department
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from department
where department_id = #{departmentId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from department
where department_id = #{departmentId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.DepartmentExample" >
delete from department
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.Department" >
insert into department (department_id, department_name, department_duty,
note)
values (#{departmentId,jdbcType=VARCHAR}, #{departmentName,jdbcType=VARCHAR}, #{departmentDuty,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.Department" >
insert into department
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="departmentId != null" >
department_id,
</if>
<if test="departmentName != null" >
department_name,
</if>
<if test="departmentDuty != null" >
department_duty,
</if>
<if test="note != null" >
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="departmentId != null" >
#{departmentId,jdbcType=VARCHAR},
</if>
<if test="departmentName != null" >
#{departmentName,jdbcType=VARCHAR},
</if>
<if test="departmentDuty != null" >
#{departmentDuty,jdbcType=VARCHAR},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.DepartmentExample" resultType="java.lang.Integer" >
select count(*) from department
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update department
<set >
<if test="record.departmentId != null" >
department_id = #{record.departmentId,jdbcType=VARCHAR},
</if>
<if test="record.departmentName != null" >
department_name = #{record.departmentName,jdbcType=VARCHAR},
</if>
<if test="record.departmentDuty != null" >
department_duty = #{record.departmentDuty,jdbcType=VARCHAR},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update department
set department_id = #{record.departmentId,jdbcType=VARCHAR},
department_name = #{record.departmentName,jdbcType=VARCHAR},
department_duty = #{record.departmentDuty,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.Department" >
update department
<set >
<if test="departmentName != null" >
department_name = #{departmentName,jdbcType=VARCHAR},
</if>
<if test="departmentDuty != null" >
department_duty = #{departmentDuty,jdbcType=VARCHAR},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where department_id = #{departmentId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.Department" >
update department
set department_name = #{departmentName,jdbcType=VARCHAR},
department_duty = #{departmentDuty,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where department_id = #{departmentId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.ECheck;
import org.hqu.production_ms.domain.ECheckExample;
public interface ECheckMapper {
int countByExample(ECheckExample example);
int deleteByExample(ECheckExample example);
int deleteByPrimaryKey(String checkId);
int insert(ECheck record);
int insertSelective(ECheck record);
List<ECheck> selectByExample(ECheckExample example);
ECheck selectByPrimaryKey(String checkId);
int updateByExampleSelective(@Param("record") ECheck record, @Param("example") ECheckExample example);
int updateByExample(@Param("record") ECheck record, @Param("example") ECheckExample example);
int updateByPrimaryKeySelective(ECheck record);
int updateByPrimaryKey(ECheck record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.ECheckMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.ECheck" >
<id column="check_id" property="checkId" jdbcType="VARCHAR" />
<result column="equipment_id" property="equipmentId" jdbcType="VARCHAR" />
<result column="emp_id" property="empId" jdbcType="VARCHAR" />
<result column="cdate" property="cdate" jdbcType="TIMESTAMP" />
<result column="result" property="result" jdbcType="VARCHAR" />
<result column="equipment_failure_id" property="equipmentFailureId" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
check_id, equipment_id, emp_id, cdate, result, equipment_failure_id
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.ECheckExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from e_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from e_check
where check_id = #{checkId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from e_check
where check_id = #{checkId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.ECheckExample" >
delete from e_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.ECheck" >
insert into e_check (check_id, equipment_id, emp_id,
cdate, result, equipment_failure_id
)
values (#{checkId,jdbcType=VARCHAR}, #{equipmentId,jdbcType=VARCHAR}, #{empId,jdbcType=VARCHAR},
#{cdate,jdbcType=TIMESTAMP}, #{result,jdbcType=VARCHAR}, #{equipmentFailureId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.ECheck" >
insert into e_check
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="checkId != null" >
check_id,
</if>
<if test="equipmentId != null" >
equipment_id,
</if>
<if test="empId != null" >
emp_id,
</if>
<if test="cdate != null" >
cdate,
</if>
<if test="result != null" >
result,
</if>
<if test="equipmentFailureId != null" >
equipment_failure_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="checkId != null" >
#{checkId,jdbcType=VARCHAR},
</if>
<if test="equipmentId != null" >
#{equipmentId,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
#{empId,jdbcType=VARCHAR},
</if>
<if test="cdate != null" >
#{cdate,jdbcType=TIMESTAMP},
</if>
<if test="result != null" >
#{result,jdbcType=VARCHAR},
</if>
<if test="equipmentFailureId != null" >
#{equipmentFailureId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.ECheckExample" resultType="java.lang.Integer" >
select count(*) from e_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update e_check
<set >
<if test="record.checkId != null" >
check_id = #{record.checkId,jdbcType=VARCHAR},
</if>
<if test="record.equipmentId != null" >
equipment_id = #{record.equipmentId,jdbcType=VARCHAR},
</if>
<if test="record.empId != null" >
emp_id = #{record.empId,jdbcType=VARCHAR},
</if>
<if test="record.cdate != null" >
cdate = #{record.cdate,jdbcType=TIMESTAMP},
</if>
<if test="record.result != null" >
result = #{record.result,jdbcType=VARCHAR},
</if>
<if test="record.equipmentFailureId != null" >
equipment_failure_id = #{record.equipmentFailureId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update e_check
set check_id = #{record.checkId,jdbcType=VARCHAR},
equipment_id = #{record.equipmentId,jdbcType=VARCHAR},
emp_id = #{record.empId,jdbcType=VARCHAR},
cdate = #{record.cdate,jdbcType=TIMESTAMP},
result = #{record.result,jdbcType=VARCHAR},
equipment_failure_id = #{record.equipmentFailureId,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.ECheck" >
update e_check
<set >
<if test="equipmentId != null" >
equipment_id = #{equipmentId,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
emp_id = #{empId,jdbcType=VARCHAR},
</if>
<if test="cdate != null" >
cdate = #{cdate,jdbcType=TIMESTAMP},
</if>
<if test="result != null" >
result = #{result,jdbcType=VARCHAR},
</if>
<if test="equipmentFailureId != null" >
equipment_failure_id = #{equipmentFailureId,jdbcType=VARCHAR},
</if>
</set>
where check_id = #{checkId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.ECheck" >
update e_check
set equipment_id = #{equipmentId,jdbcType=VARCHAR},
emp_id = #{empId,jdbcType=VARCHAR},
cdate = #{cdate,jdbcType=TIMESTAMP},
result = #{result,jdbcType=VARCHAR},
equipment_failure_id = #{equipmentFailureId,jdbcType=VARCHAR}
where check_id = #{checkId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Employee;
import org.hqu.production_ms.domain.EmployeeExample;
public interface EmployeeMapper {
int countByExample(EmployeeExample example);
int deleteByExample(EmployeeExample example);
int deleteByPrimaryKey(String empId);
int insert(Employee record);
int insertSelective(Employee record);
List<Employee> selectByExample(EmployeeExample example);
Employee selectByPrimaryKey(String empId);
int updateByExampleSelective(@Param("record") Employee record, @Param("example") EmployeeExample example);
int updateByExample(@Param("record") Employee record, @Param("example") EmployeeExample example);
int updateByPrimaryKeySelective(Employee record);
int updateByPrimaryKey(Employee record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.EmployeeMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.Employee" >
<id column="emp_id" property="empId" jdbcType="VARCHAR" />
<result column="emp_name" property="empName" jdbcType="VARCHAR" />
<result column="sex" property="sex" jdbcType="CHAR" />
<result column="id_code" property="idCode" jdbcType="VARCHAR" />
<result column="birthday" property="birthday" jdbcType="TIMESTAMP" />
<result column="join_date" property="joinDate" jdbcType="TIMESTAMP" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="education" property="education" jdbcType="VARCHAR" />
<result column="degree" property="degree" jdbcType="VARCHAR" />
<result column="major" property="major" jdbcType="VARCHAR" />
<result column="graduate_school" property="graduateSchool" jdbcType="VARCHAR" />
<result column="education_form" property="educationForm" jdbcType="VARCHAR" />
<result column="department_id" property="departmentId" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
emp_id, emp_name, sex, id_code, birthday, join_date, status, education, degree, major,
graduate_school, education_form, department_id
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.EmployeeExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from employee
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from employee
where emp_id = #{empId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from employee
where emp_id = #{empId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.EmployeeExample" >
delete from employee
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.Employee" >
insert into employee (emp_id, emp_name, sex,
id_code, birthday, join_date,
status, education, degree,
major, graduate_school, education_form,
department_id)
values (#{empId,jdbcType=VARCHAR}, #{empName,jdbcType=VARCHAR}, #{sex,jdbcType=CHAR},
#{idCode,jdbcType=VARCHAR}, #{birthday,jdbcType=TIMESTAMP}, #{joinDate,jdbcType=TIMESTAMP},
#{status,jdbcType=VARCHAR}, #{education,jdbcType=VARCHAR}, #{degree,jdbcType=VARCHAR},
#{major,jdbcType=VARCHAR}, #{graduateSchool,jdbcType=VARCHAR}, #{educationForm,jdbcType=VARCHAR},
#{departmentId,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.Employee" >
insert into employee
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="empId != null" >
emp_id,
</if>
<if test="empName != null" >
emp_name,
</if>
<if test="sex != null" >
sex,
</if>
<if test="idCode != null" >
id_code,
</if>
<if test="birthday != null" >
birthday,
</if>
<if test="joinDate != null" >
join_date,
</if>
<if test="status != null" >
status,
</if>
<if test="education != null" >
education,
</if>
<if test="degree != null" >
degree,
</if>
<if test="major != null" >
major,
</if>
<if test="graduateSchool != null" >
graduate_school,
</if>
<if test="educationForm != null" >
education_form,
</if>
<if test="departmentId != null" >
department_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="empId != null" >
#{empId,jdbcType=VARCHAR},
</if>
<if test="empName != null" >
#{empName,jdbcType=VARCHAR},
</if>
<if test="sex != null" >
#{sex,jdbcType=CHAR},
</if>
<if test="idCode != null" >
#{idCode,jdbcType=VARCHAR},
</if>
<if test="birthday != null" >
#{birthday,jdbcType=TIMESTAMP},
</if>
<if test="joinDate != null" >
#{joinDate,jdbcType=TIMESTAMP},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="education != null" >
#{education,jdbcType=VARCHAR},
</if>
<if test="degree != null" >
#{degree,jdbcType=VARCHAR},
</if>
<if test="major != null" >
#{major,jdbcType=VARCHAR},
</if>
<if test="graduateSchool != null" >
#{graduateSchool,jdbcType=VARCHAR},
</if>
<if test="educationForm != null" >
#{educationForm,jdbcType=VARCHAR},
</if>
<if test="departmentId != null" >
#{departmentId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.EmployeeExample" resultType="java.lang.Integer" >
select count(*) from employee
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update employee
<set >
<if test="record.empId != null" >
emp_id = #{record.empId,jdbcType=VARCHAR},
</if>
<if test="record.empName != null" >
emp_name = #{record.empName,jdbcType=VARCHAR},
</if>
<if test="record.sex != null" >
sex = #{record.sex,jdbcType=CHAR},
</if>
<if test="record.idCode != null" >
id_code = #{record.idCode,jdbcType=VARCHAR},
</if>
<if test="record.birthday != null" >
birthday = #{record.birthday,jdbcType=TIMESTAMP},
</if>
<if test="record.joinDate != null" >
join_date = #{record.joinDate,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null" >
status = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.education != null" >
education = #{record.education,jdbcType=VARCHAR},
</if>
<if test="record.degree != null" >
degree = #{record.degree,jdbcType=VARCHAR},
</if>
<if test="record.major != null" >
major = #{record.major,jdbcType=VARCHAR},
</if>
<if test="record.graduateSchool != null" >
graduate_school = #{record.graduateSchool,jdbcType=VARCHAR},
</if>
<if test="record.educationForm != null" >
education_form = #{record.educationForm,jdbcType=VARCHAR},
</if>
<if test="record.departmentId != null" >
department_id = #{record.departmentId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update employee
set emp_id = #{record.empId,jdbcType=VARCHAR},
emp_name = #{record.empName,jdbcType=VARCHAR},
sex = #{record.sex,jdbcType=CHAR},
id_code = #{record.idCode,jdbcType=VARCHAR},
birthday = #{record.birthday,jdbcType=TIMESTAMP},
join_date = #{record.joinDate,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=VARCHAR},
education = #{record.education,jdbcType=VARCHAR},
degree = #{record.degree,jdbcType=VARCHAR},
major = #{record.major,jdbcType=VARCHAR},
graduate_school = #{record.graduateSchool,jdbcType=VARCHAR},
education_form = #{record.educationForm,jdbcType=VARCHAR},
department_id = #{record.departmentId,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.Employee" >
update employee
<set >
<if test="empName != null" >
emp_name = #{empName,jdbcType=VARCHAR},
</if>
<if test="sex != null" >
sex = #{sex,jdbcType=CHAR},
</if>
<if test="idCode != null" >
id_code = #{idCode,jdbcType=VARCHAR},
</if>
<if test="birthday != null" >
birthday = #{birthday,jdbcType=TIMESTAMP},
</if>
<if test="joinDate != null" >
join_date = #{joinDate,jdbcType=TIMESTAMP},
</if>
<if test="status != null" >
status = #{status,jdbcType=VARCHAR},
</if>
<if test="education != null" >
education = #{education,jdbcType=VARCHAR},
</if>
<if test="degree != null" >
degree = #{degree,jdbcType=VARCHAR},
</if>
<if test="major != null" >
major = #{major,jdbcType=VARCHAR},
</if>
<if test="graduateSchool != null" >
graduate_school = #{graduateSchool,jdbcType=VARCHAR},
</if>
<if test="educationForm != null" >
education_form = #{educationForm,jdbcType=VARCHAR},
</if>
<if test="departmentId != null" >
department_id = #{departmentId,jdbcType=VARCHAR},
</if>
</set>
where emp_id = #{empId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.Employee" >
update employee
set emp_name = #{empName,jdbcType=VARCHAR},
sex = #{sex,jdbcType=CHAR},
id_code = #{idCode,jdbcType=VARCHAR},
birthday = #{birthday,jdbcType=TIMESTAMP},
join_date = #{joinDate,jdbcType=TIMESTAMP},
status = #{status,jdbcType=VARCHAR},
education = #{education,jdbcType=VARCHAR},
degree = #{degree,jdbcType=VARCHAR},
major = #{major,jdbcType=VARCHAR},
graduate_school = #{graduateSchool,jdbcType=VARCHAR},
education_form = #{educationForm,jdbcType=VARCHAR},
department_id = #{departmentId,jdbcType=VARCHAR}
where emp_id = #{empId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.EquipmentFailure;
import org.hqu.production_ms.domain.EquipmentFailureExample;
public interface EquipmentFailureMapper {
int countByExample(EquipmentFailureExample example);
int deleteByExample(EquipmentFailureExample example);
int deleteByPrimaryKey(String failureId);
int insert(EquipmentFailure record);
int insertSelective(EquipmentFailure record);
List<EquipmentFailure> selectByExample(EquipmentFailureExample example);
EquipmentFailure selectByPrimaryKey(String failureId);
int updateByExampleSelective(@Param("record") EquipmentFailure record, @Param("example") EquipmentFailureExample example);
int updateByExample(@Param("record") EquipmentFailure record, @Param("example") EquipmentFailureExample example);
int updateByPrimaryKeySelective(EquipmentFailure record);
int updateByPrimaryKey(EquipmentFailure record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.EquipmentFailureMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.EquipmentFailure" >
<id column="failure_id" property="failureId" jdbcType="VARCHAR" />
<result column="equipment_id" property="equipmentId" jdbcType="VARCHAR" />
<result column="reason" property="reason" jdbcType="VARCHAR" />
<result column="failure_date" property="failureDate" jdbcType="TIMESTAMP" />
<result column="repair_mode" property="repairMode" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
failure_id, equipment_id, reason, failure_date, repair_mode
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.EquipmentFailureExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from equipment_failure
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from equipment_failure
where failure_id = #{failureId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from equipment_failure
where failure_id = #{failureId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.EquipmentFailureExample" >
delete from equipment_failure
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.EquipmentFailure" >
insert into equipment_failure (failure_id, equipment_id, reason,
failure_date, repair_mode)
values (#{failureId,jdbcType=VARCHAR}, #{equipmentId,jdbcType=VARCHAR}, #{reason,jdbcType=VARCHAR},
#{failureDate,jdbcType=TIMESTAMP}, #{repairMode,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.EquipmentFailure" >
insert into equipment_failure
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="failureId != null" >
failure_id,
</if>
<if test="equipmentId != null" >
equipment_id,
</if>
<if test="reason != null" >
reason,
</if>
<if test="failureDate != null" >
failure_date,
</if>
<if test="repairMode != null" >
repair_mode,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="failureId != null" >
#{failureId,jdbcType=VARCHAR},
</if>
<if test="equipmentId != null" >
#{equipmentId,jdbcType=VARCHAR},
</if>
<if test="reason != null" >
#{reason,jdbcType=VARCHAR},
</if>
<if test="failureDate != null" >
#{failureDate,jdbcType=TIMESTAMP},
</if>
<if test="repairMode != null" >
#{repairMode,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.EquipmentFailureExample" resultType="java.lang.Integer" >
select count(*) from equipment_failure
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update equipment_failure
<set >
<if test="record.failureId != null" >
failure_id = #{record.failureId,jdbcType=VARCHAR},
</if>
<if test="record.equipmentId != null" >
equipment_id = #{record.equipmentId,jdbcType=VARCHAR},
</if>
<if test="record.reason != null" >
reason = #{record.reason,jdbcType=VARCHAR},
</if>
<if test="record.failureDate != null" >
failure_date = #{record.failureDate,jdbcType=TIMESTAMP},
</if>
<if test="record.repairMode != null" >
repair_mode = #{record.repairMode,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update equipment_failure
set failure_id = #{record.failureId,jdbcType=VARCHAR},
equipment_id = #{record.equipmentId,jdbcType=VARCHAR},
reason = #{record.reason,jdbcType=VARCHAR},
failure_date = #{record.failureDate,jdbcType=TIMESTAMP},
repair_mode = #{record.repairMode,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.EquipmentFailure" >
update equipment_failure
<set >
<if test="equipmentId != null" >
equipment_id = #{equipmentId,jdbcType=VARCHAR},
</if>
<if test="reason != null" >
reason = #{reason,jdbcType=VARCHAR},
</if>
<if test="failureDate != null" >
failure_date = #{failureDate,jdbcType=TIMESTAMP},
</if>
<if test="repairMode != null" >
repair_mode = #{repairMode,jdbcType=VARCHAR},
</if>
</set>
where failure_id = #{failureId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.EquipmentFailure" >
update equipment_failure
set equipment_id = #{equipmentId,jdbcType=VARCHAR},
reason = #{reason,jdbcType=VARCHAR},
failure_date = #{failureDate,jdbcType=TIMESTAMP},
repair_mode = #{repairMode,jdbcType=VARCHAR}
where failure_id = #{failureId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Equipment;
import org.hqu.production_ms.domain.EquipmentExample;
public interface EquipmentMapper {
int countByExample(EquipmentExample example);
int deleteByExample(EquipmentExample example);
int deleteByPrimaryKey(String equipmentId);
int insert(Equipment record);
int insertSelective(Equipment record);
List<Equipment> selectByExample(EquipmentExample example);
Equipment selectByPrimaryKey(String equipmentId);
int updateByExampleSelective(@Param("record") Equipment record, @Param("example") EquipmentExample example);
int updateByExample(@Param("record") Equipment record, @Param("example") EquipmentExample example);
int updateByPrimaryKeySelective(Equipment record);
int updateByPrimaryKey(Equipment record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.EquipmentMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.Equipment" >
<id column="equipment_id" property="equipmentId" jdbcType="VARCHAR" />
<result column="out_date" property="outDate" jdbcType="TIMESTAMP" />
<result column="price" property="price" jdbcType="DECIMAL" />
<result column="buy_date" property="buyDate" jdbcType="INTEGER" />
<result column="lifetime" property="lifetime" jdbcType="TIMESTAMP" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="note" property="note" jdbcType="VARCHAR" />
<result column="emp_id" property="empId" jdbcType="VARCHAR" />
<result column="types_id" property="typesId" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
equipment_id, out_date, price, buy_date, lifetime, status, note, emp_id, types_id
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.EquipmentExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from equipment
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from equipment
where equipment_id = #{equipmentId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from equipment
where equipment_id = #{equipmentId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.EquipmentExample" >
delete from equipment
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.Equipment" >
insert into equipment (equipment_id, out_date, price,
buy_date, lifetime, status,
note, emp_id, types_id
)
values (#{equipmentId,jdbcType=VARCHAR}, #{outDate,jdbcType=TIMESTAMP}, #{price,jdbcType=DECIMAL},
#{buyDate,jdbcType=INTEGER}, #{lifetime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR}, #{empId,jdbcType=VARCHAR}, #{typesId,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.Equipment" >
insert into equipment
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="equipmentId != null" >
equipment_id,
</if>
<if test="outDate != null" >
out_date,
</if>
<if test="price != null" >
price,
</if>
<if test="buyDate != null" >
buy_date,
</if>
<if test="lifetime != null" >
lifetime,
</if>
<if test="status != null" >
status,
</if>
<if test="note != null" >
note,
</if>
<if test="empId != null" >
emp_id,
</if>
<if test="typesId != null" >
types_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="equipmentId != null" >
#{equipmentId,jdbcType=VARCHAR},
</if>
<if test="outDate != null" >
#{outDate,jdbcType=TIMESTAMP},
</if>
<if test="price != null" >
#{price,jdbcType=DECIMAL},
</if>
<if test="buyDate != null" >
#{buyDate,jdbcType=INTEGER},
</if>
<if test="lifetime != null" >
#{lifetime,jdbcType=TIMESTAMP},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
#{empId,jdbcType=VARCHAR},
</if>
<if test="typesId != null" >
#{typesId,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.EquipmentExample" resultType="java.lang.Integer" >
select count(*) from equipment
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update equipment
<set >
<if test="record.equipmentId != null" >
equipment_id = #{record.equipmentId,jdbcType=VARCHAR},
</if>
<if test="record.outDate != null" >
out_date = #{record.outDate,jdbcType=TIMESTAMP},
</if>
<if test="record.price != null" >
price = #{record.price,jdbcType=DECIMAL},
</if>
<if test="record.buyDate != null" >
buy_date = #{record.buyDate,jdbcType=INTEGER},
</if>
<if test="record.lifetime != null" >
lifetime = #{record.lifetime,jdbcType=TIMESTAMP},
</if>
<if test="record.status != null" >
status = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
<if test="record.empId != null" >
emp_id = #{record.empId,jdbcType=VARCHAR},
</if>
<if test="record.typesId != null" >
types_id = #{record.typesId,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update equipment
set equipment_id = #{record.equipmentId,jdbcType=VARCHAR},
out_date = #{record.outDate,jdbcType=TIMESTAMP},
price = #{record.price,jdbcType=DECIMAL},
buy_date = #{record.buyDate,jdbcType=INTEGER},
lifetime = #{record.lifetime,jdbcType=TIMESTAMP},
status = #{record.status,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR},
emp_id = #{record.empId,jdbcType=VARCHAR},
types_id = #{record.typesId,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.Equipment" >
update equipment
<set >
<if test="outDate != null" >
out_date = #{outDate,jdbcType=TIMESTAMP},
</if>
<if test="price != null" >
price = #{price,jdbcType=DECIMAL},
</if>
<if test="buyDate != null" >
buy_date = #{buyDate,jdbcType=INTEGER},
</if>
<if test="lifetime != null" >
lifetime = #{lifetime,jdbcType=TIMESTAMP},
</if>
<if test="status != null" >
status = #{status,jdbcType=VARCHAR},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
emp_id = #{empId,jdbcType=VARCHAR},
</if>
<if test="typesId != null" >
types_id = #{typesId,jdbcType=VARCHAR},
</if>
</set>
where equipment_id = #{equipmentId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.Equipment" >
update equipment
set out_date = #{outDate,jdbcType=TIMESTAMP},
price = #{price,jdbcType=DECIMAL},
buy_date = #{buyDate,jdbcType=INTEGER},
lifetime = #{lifetime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR},
emp_id = #{empId,jdbcType=VARCHAR},
types_id = #{typesId,jdbcType=VARCHAR}
where equipment_id = #{equipmentId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.EquipmentType;
import org.hqu.production_ms.domain.EquipmentTypeExample;
public interface EquipmentTypeMapper {
int countByExample(EquipmentTypeExample example);
int deleteByExample(EquipmentTypeExample example);
int deleteByPrimaryKey(String typeId);
int insert(EquipmentType record);
int insertSelective(EquipmentType record);
List<EquipmentType> selectByExample(EquipmentTypeExample example);
EquipmentType selectByPrimaryKey(String typeId);
int updateByExampleSelective(@Param("record") EquipmentType record, @Param("example") EquipmentTypeExample example);
int updateByExample(@Param("record") EquipmentType record, @Param("example") EquipmentTypeExample example);
int updateByPrimaryKeySelective(EquipmentType record);
int updateByPrimaryKey(EquipmentType record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.EquipmentTypeMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.EquipmentType" >
<id column="type_id" property="typeId" jdbcType="VARCHAR" />
<result column="type_name" property="typeName" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
type_id, type_name
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.EquipmentTypeExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from equipment_type
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from equipment_type
where type_id = #{typeId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from equipment_type
where type_id = #{typeId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.EquipmentTypeExample" >
delete from equipment_type
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.EquipmentType" >
insert into equipment_type (type_id, type_name)
values (#{typeId,jdbcType=VARCHAR}, #{typeName,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.EquipmentType" >
insert into equipment_type
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="typeId != null" >
type_id,
</if>
<if test="typeName != null" >
type_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="typeId != null" >
#{typeId,jdbcType=VARCHAR},
</if>
<if test="typeName != null" >
#{typeName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.EquipmentTypeExample" resultType="java.lang.Integer" >
select count(*) from equipment_type
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update equipment_type
<set >
<if test="record.typeId != null" >
type_id = #{record.typeId,jdbcType=VARCHAR},
</if>
<if test="record.typeName != null" >
type_name = #{record.typeName,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update equipment_type
set type_id = #{record.typeId,jdbcType=VARCHAR},
type_name = #{record.typeName,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.EquipmentType" >
update equipment_type
<set >
<if test="typeName != null" >
type_name = #{typeName,jdbcType=VARCHAR},
</if>
</set>
where type_id = #{typeId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.EquipmentType" >
update equipment_type
set type_name = #{typeName,jdbcType=VARCHAR}
where type_id = #{typeId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.EquipmentTypes;
import org.hqu.production_ms.domain.EquipmentTypesExample;
public interface EquipmentTypesMapper {
int countByExample(EquipmentTypesExample example);
int deleteByExample(EquipmentTypesExample example);
int deleteByPrimaryKey(String typesId);
int insert(EquipmentTypes record);
int insertSelective(EquipmentTypes record);
List<EquipmentTypes> selectByExample(EquipmentTypesExample example);
EquipmentTypes selectByPrimaryKey(String typesId);
int updateByExampleSelective(@Param("record") EquipmentTypes record, @Param("example") EquipmentTypesExample example);
int updateByExample(@Param("record") EquipmentTypes record, @Param("example") EquipmentTypesExample example);
int updateByPrimaryKeySelective(EquipmentTypes record);
int updateByPrimaryKey(EquipmentTypes record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.EquipmentTypesMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.EquipmentTypes" >
<id column="types_id" property="typesId" jdbcType="VARCHAR" />
<result column="types_name" property="typesName" jdbcType="VARCHAR" />
<result column="types_standard" property="typesStandard" jdbcType="VARCHAR" />
<result column="types_version" property="typesVersion" jdbcType="VARCHAR" />
<result column="types_supplier" property="typesSupplier" jdbcType="VARCHAR" />
<result column="types_provider" property="typesProvider" jdbcType="VARCHAR" />
<result column="types_period" property="typesPeriod" jdbcType="TIMESTAMP" />
<result column="types_count" property="typesCount" jdbcType="INTEGER" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
types_id, types_name, types_standard, types_version, types_supplier, types_provider,
types_period, types_count
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.EquipmentTypesExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from equipment_types
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from equipment_types
where types_id = #{typesId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from equipment_types
where types_id = #{typesId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.EquipmentTypesExample" >
delete from equipment_types
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.EquipmentTypes" >
insert into equipment_types (types_id, types_name, types_standard,
types_version, types_supplier, types_provider,
types_period, types_count)
values (#{typesId,jdbcType=VARCHAR}, #{typesName,jdbcType=VARCHAR}, #{typesStandard,jdbcType=VARCHAR},
#{typesVersion,jdbcType=VARCHAR}, #{typesSupplier,jdbcType=VARCHAR}, #{typesProvider,jdbcType=VARCHAR},
#{typesPeriod,jdbcType=TIMESTAMP}, #{typesCount,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.EquipmentTypes" >
insert into equipment_types
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="typesId != null" >
types_id,
</if>
<if test="typesName != null" >
types_name,
</if>
<if test="typesStandard != null" >
types_standard,
</if>
<if test="typesVersion != null" >
types_version,
</if>
<if test="typesSupplier != null" >
types_supplier,
</if>
<if test="typesProvider != null" >
types_provider,
</if>
<if test="typesPeriod != null" >
types_period,
</if>
<if test="typesCount != null" >
types_count,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="typesId != null" >
#{typesId,jdbcType=VARCHAR},
</if>
<if test="typesName != null" >
#{typesName,jdbcType=VARCHAR},
</if>
<if test="typesStandard != null" >
#{typesStandard,jdbcType=VARCHAR},
</if>
<if test="typesVersion != null" >
#{typesVersion,jdbcType=VARCHAR},
</if>
<if test="typesSupplier != null" >
#{typesSupplier,jdbcType=VARCHAR},
</if>
<if test="typesProvider != null" >
#{typesProvider,jdbcType=VARCHAR},
</if>
<if test="typesPeriod != null" >
#{typesPeriod,jdbcType=TIMESTAMP},
</if>
<if test="typesCount != null" >
#{typesCount,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.EquipmentTypesExample" resultType="java.lang.Integer" >
select count(*) from equipment_types
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update equipment_types
<set >
<if test="record.typesId != null" >
types_id = #{record.typesId,jdbcType=VARCHAR},
</if>
<if test="record.typesName != null" >
types_name = #{record.typesName,jdbcType=VARCHAR},
</if>
<if test="record.typesStandard != null" >
types_standard = #{record.typesStandard,jdbcType=VARCHAR},
</if>
<if test="record.typesVersion != null" >
types_version = #{record.typesVersion,jdbcType=VARCHAR},
</if>
<if test="record.typesSupplier != null" >
types_supplier = #{record.typesSupplier,jdbcType=VARCHAR},
</if>
<if test="record.typesProvider != null" >
types_provider = #{record.typesProvider,jdbcType=VARCHAR},
</if>
<if test="record.typesPeriod != null" >
types_period = #{record.typesPeriod,jdbcType=TIMESTAMP},
</if>
<if test="record.typesCount != null" >
types_count = #{record.typesCount,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update equipment_types
set types_id = #{record.typesId,jdbcType=VARCHAR},
types_name = #{record.typesName,jdbcType=VARCHAR},
types_standard = #{record.typesStandard,jdbcType=VARCHAR},
types_version = #{record.typesVersion,jdbcType=VARCHAR},
types_supplier = #{record.typesSupplier,jdbcType=VARCHAR},
types_provider = #{record.typesProvider,jdbcType=VARCHAR},
types_period = #{record.typesPeriod,jdbcType=TIMESTAMP},
types_count = #{record.typesCount,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.EquipmentTypes" >
update equipment_types
<set >
<if test="typesName != null" >
types_name = #{typesName,jdbcType=VARCHAR},
</if>
<if test="typesStandard != null" >
types_standard = #{typesStandard,jdbcType=VARCHAR},
</if>
<if test="typesVersion != null" >
types_version = #{typesVersion,jdbcType=VARCHAR},
</if>
<if test="typesSupplier != null" >
types_supplier = #{typesSupplier,jdbcType=VARCHAR},
</if>
<if test="typesProvider != null" >
types_provider = #{typesProvider,jdbcType=VARCHAR},
</if>
<if test="typesPeriod != null" >
types_period = #{typesPeriod,jdbcType=TIMESTAMP},
</if>
<if test="typesCount != null" >
types_count = #{typesCount,jdbcType=INTEGER},
</if>
</set>
where types_id = #{typesId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.EquipmentTypes" >
update equipment_types
set types_name = #{typesName,jdbcType=VARCHAR},
types_standard = #{typesStandard,jdbcType=VARCHAR},
types_version = #{typesVersion,jdbcType=VARCHAR},
types_supplier = #{typesSupplier,jdbcType=VARCHAR},
types_provider = #{typesProvider,jdbcType=VARCHAR},
types_period = #{typesPeriod,jdbcType=TIMESTAMP},
types_count = #{typesCount,jdbcType=INTEGER}
where types_id = #{typesId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.FinalCountCheck;
import org.hqu.production_ms.domain.FinalCountCheckExample;
public interface FinalCountCheckMapper {
int countByExample(FinalCountCheckExample example);
int deleteByExample(FinalCountCheckExample example);
int deleteByPrimaryKey(String fCountCheckId);
int insert(FinalCountCheck record);
int insertSelective(FinalCountCheck record);
List<FinalCountCheck> selectByExample(FinalCountCheckExample example);
FinalCountCheck selectByPrimaryKey(String fCountCheckId);
int updateByExampleSelective(@Param("record") FinalCountCheck record, @Param("example") FinalCountCheckExample example);
int updateByExample(@Param("record") FinalCountCheck record, @Param("example") FinalCountCheckExample example);
int updateByPrimaryKeySelective(FinalCountCheck record);
int updateByPrimaryKey(FinalCountCheck record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.FinalCountCheckMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.FinalCountCheck" >
<id column="f_count_check_id" property="fCountCheckId" jdbcType="VARCHAR" />
<result column="order_id" property="orderId" jdbcType="VARCHAR" />
<result column="check_item" property="checkItem" jdbcType="VARCHAR" />
<result column="sample" property="sample" jdbcType="INTEGER" />
<result column="check_number" property="checkNumber" jdbcType="INTEGER" />
<result column="unqualify" property="unqualify" jdbcType="INTEGER" />
<result column="qualify" property="qualify" jdbcType="DECIMAL" />
<result column="cdate" property="cdate" jdbcType="TIMESTAMP" />
<result column="measure_data" property="measureData" jdbcType="VARCHAR" />
<result column="emp_id" property="empId" jdbcType="VARCHAR" />
<result column="result" property="result" jdbcType="VARCHAR" />
<result column="note" property="note" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
f_count_check_id, order_id, check_item, sample, check_number, unqualify, qualify,
cdate, measure_data, emp_id, result, note
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.FinalCountCheckExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from final_count_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from final_count_check
where f_count_check_id = #{fCountCheckId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from final_count_check
where f_count_check_id = #{fCountCheckId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.FinalCountCheckExample" >
delete from final_count_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.FinalCountCheck" >
insert into final_count_check (f_count_check_id, order_id, check_item,
sample, check_number, unqualify,
qualify, cdate, measure_data,
emp_id, result, note
)
values (#{fCountCheckId,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, #{checkItem,jdbcType=VARCHAR},
#{sample,jdbcType=INTEGER}, #{checkNumber,jdbcType=INTEGER}, #{unqualify,jdbcType=INTEGER},
#{qualify,jdbcType=DECIMAL}, #{cdate,jdbcType=TIMESTAMP}, #{measureData,jdbcType=VARCHAR},
#{empId,jdbcType=VARCHAR}, #{result,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.FinalCountCheck" >
insert into final_count_check
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="fCountCheckId != null" >
f_count_check_id,
</if>
<if test="orderId != null" >
order_id,
</if>
<if test="checkItem != null" >
check_item,
</if>
<if test="sample != null" >
sample,
</if>
<if test="checkNumber != null" >
check_number,
</if>
<if test="unqualify != null" >
unqualify,
</if>
<if test="qualify != null" >
qualify,
</if>
<if test="cdate != null" >
cdate,
</if>
<if test="measureData != null" >
measure_data,
</if>
<if test="empId != null" >
emp_id,
</if>
<if test="result != null" >
result,
</if>
<if test="note != null" >
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="fCountCheckId != null" >
#{fCountCheckId,jdbcType=VARCHAR},
</if>
<if test="orderId != null" >
#{orderId,jdbcType=VARCHAR},
</if>
<if test="checkItem != null" >
#{checkItem,jdbcType=VARCHAR},
</if>
<if test="sample != null" >
#{sample,jdbcType=INTEGER},
</if>
<if test="checkNumber != null" >
#{checkNumber,jdbcType=INTEGER},
</if>
<if test="unqualify != null" >
#{unqualify,jdbcType=INTEGER},
</if>
<if test="qualify != null" >
#{qualify,jdbcType=DECIMAL},
</if>
<if test="cdate != null" >
#{cdate,jdbcType=TIMESTAMP},
</if>
<if test="measureData != null" >
#{measureData,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
#{empId,jdbcType=VARCHAR},
</if>
<if test="result != null" >
#{result,jdbcType=VARCHAR},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.FinalCountCheckExample" resultType="java.lang.Integer" >
select count(*) from final_count_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update final_count_check
<set >
<if test="record.fCountCheckId != null" >
f_count_check_id = #{record.fCountCheckId,jdbcType=VARCHAR},
</if>
<if test="record.orderId != null" >
order_id = #{record.orderId,jdbcType=VARCHAR},
</if>
<if test="record.checkItem != null" >
check_item = #{record.checkItem,jdbcType=VARCHAR},
</if>
<if test="record.sample != null" >
sample = #{record.sample,jdbcType=INTEGER},
</if>
<if test="record.checkNumber != null" >
check_number = #{record.checkNumber,jdbcType=INTEGER},
</if>
<if test="record.unqualify != null" >
unqualify = #{record.unqualify,jdbcType=INTEGER},
</if>
<if test="record.qualify != null" >
qualify = #{record.qualify,jdbcType=DECIMAL},
</if>
<if test="record.cdate != null" >
cdate = #{record.cdate,jdbcType=TIMESTAMP},
</if>
<if test="record.measureData != null" >
measure_data = #{record.measureData,jdbcType=VARCHAR},
</if>
<if test="record.empId != null" >
emp_id = #{record.empId,jdbcType=VARCHAR},
</if>
<if test="record.result != null" >
result = #{record.result,jdbcType=VARCHAR},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update final_count_check
set f_count_check_id = #{record.fCountCheckId,jdbcType=VARCHAR},
order_id = #{record.orderId,jdbcType=VARCHAR},
check_item = #{record.checkItem,jdbcType=VARCHAR},
sample = #{record.sample,jdbcType=INTEGER},
check_number = #{record.checkNumber,jdbcType=INTEGER},
unqualify = #{record.unqualify,jdbcType=INTEGER},
qualify = #{record.qualify,jdbcType=DECIMAL},
cdate = #{record.cdate,jdbcType=TIMESTAMP},
measure_data = #{record.measureData,jdbcType=VARCHAR},
emp_id = #{record.empId,jdbcType=VARCHAR},
result = #{record.result,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.FinalCountCheck" >
update final_count_check
<set >
<if test="orderId != null" >
order_id = #{orderId,jdbcType=VARCHAR},
</if>
<if test="checkItem != null" >
check_item = #{checkItem,jdbcType=VARCHAR},
</if>
<if test="sample != null" >
sample = #{sample,jdbcType=INTEGER},
</if>
<if test="checkNumber != null" >
check_number = #{checkNumber,jdbcType=INTEGER},
</if>
<if test="unqualify != null" >
unqualify = #{unqualify,jdbcType=INTEGER},
</if>
<if test="qualify != null" >
qualify = #{qualify,jdbcType=DECIMAL},
</if>
<if test="cdate != null" >
cdate = #{cdate,jdbcType=TIMESTAMP},
</if>
<if test="measureData != null" >
measure_data = #{measureData,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
emp_id = #{empId,jdbcType=VARCHAR},
</if>
<if test="result != null" >
result = #{result,jdbcType=VARCHAR},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where f_count_check_id = #{fCountCheckId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.FinalCountCheck" >
update final_count_check
set order_id = #{orderId,jdbcType=VARCHAR},
check_item = #{checkItem,jdbcType=VARCHAR},
sample = #{sample,jdbcType=INTEGER},
check_number = #{checkNumber,jdbcType=INTEGER},
unqualify = #{unqualify,jdbcType=INTEGER},
qualify = #{qualify,jdbcType=DECIMAL},
cdate = #{cdate,jdbcType=TIMESTAMP},
measure_data = #{measureData,jdbcType=VARCHAR},
emp_id = #{empId,jdbcType=VARCHAR},
result = #{result,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where f_count_check_id = #{fCountCheckId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.FinalMeasuretCheck;
import org.hqu.production_ms.domain.FinalMeasuretCheckExample;
public interface FinalMeasuretCheckMapper {
int countByExample(FinalMeasuretCheckExample example);
int deleteByExample(FinalMeasuretCheckExample example);
int deleteByPrimaryKey(String fMeasureCheckId);
int insert(FinalMeasuretCheck record);
int insertSelective(FinalMeasuretCheck record);
List<FinalMeasuretCheck> selectByExample(FinalMeasuretCheckExample example);
FinalMeasuretCheck selectByPrimaryKey(String fMeasureCheckId);
int updateByExampleSelective(@Param("record") FinalMeasuretCheck record, @Param("example") FinalMeasuretCheckExample example);
int updateByExample(@Param("record") FinalMeasuretCheck record, @Param("example") FinalMeasuretCheckExample example);
int updateByPrimaryKeySelective(FinalMeasuretCheck record);
int updateByPrimaryKey(FinalMeasuretCheck record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.FinalMeasuretCheckMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.FinalMeasuretCheck" >
<id column="f_measure_check_id" property="fMeasureCheckId" jdbcType="VARCHAR" />
<result column="order_id" property="orderId" jdbcType="VARCHAR" />
<result column="check_item" property="checkItem" jdbcType="VARCHAR" />
<result column="cdate" property="cdate" jdbcType="TIMESTAMP" />
<result column="measure_data" property="measureData" jdbcType="VARCHAR" />
<result column="emp_id" property="empId" jdbcType="VARCHAR" />
<result column="result" property="result" jdbcType="VARCHAR" />
<result column="note" property="note" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
f_measure_check_id, order_id, check_item, cdate, measure_data, emp_id, result, note
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.FinalMeasuretCheckExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from final_measuret_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from final_measuret_check
where f_measure_check_id = #{fMeasureCheckId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from final_measuret_check
where f_measure_check_id = #{fMeasureCheckId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.FinalMeasuretCheckExample" >
delete from final_measuret_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.FinalMeasuretCheck" >
insert into final_measuret_check (f_measure_check_id, order_id, check_item,
cdate, measure_data, emp_id,
result, note)
values (#{fMeasureCheckId,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, #{checkItem,jdbcType=VARCHAR},
#{cdate,jdbcType=TIMESTAMP}, #{measureData,jdbcType=VARCHAR}, #{empId,jdbcType=VARCHAR},
#{result,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.FinalMeasuretCheck" >
insert into final_measuret_check
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="fMeasureCheckId != null" >
f_measure_check_id,
</if>
<if test="orderId != null" >
order_id,
</if>
<if test="checkItem != null" >
check_item,
</if>
<if test="cdate != null" >
cdate,
</if>
<if test="measureData != null" >
measure_data,
</if>
<if test="empId != null" >
emp_id,
</if>
<if test="result != null" >
result,
</if>
<if test="note != null" >
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="fMeasureCheckId != null" >
#{fMeasureCheckId,jdbcType=VARCHAR},
</if>
<if test="orderId != null" >
#{orderId,jdbcType=VARCHAR},
</if>
<if test="checkItem != null" >
#{checkItem,jdbcType=VARCHAR},
</if>
<if test="cdate != null" >
#{cdate,jdbcType=TIMESTAMP},
</if>
<if test="measureData != null" >
#{measureData,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
#{empId,jdbcType=VARCHAR},
</if>
<if test="result != null" >
#{result,jdbcType=VARCHAR},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.FinalMeasuretCheckExample" resultType="java.lang.Integer" >
select count(*) from final_measuret_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update final_measuret_check
<set >
<if test="record.fMeasureCheckId != null" >
f_measure_check_id = #{record.fMeasureCheckId,jdbcType=VARCHAR},
</if>
<if test="record.orderId != null" >
order_id = #{record.orderId,jdbcType=VARCHAR},
</if>
<if test="record.checkItem != null" >
check_item = #{record.checkItem,jdbcType=VARCHAR},
</if>
<if test="record.cdate != null" >
cdate = #{record.cdate,jdbcType=TIMESTAMP},
</if>
<if test="record.measureData != null" >
measure_data = #{record.measureData,jdbcType=VARCHAR},
</if>
<if test="record.empId != null" >
emp_id = #{record.empId,jdbcType=VARCHAR},
</if>
<if test="record.result != null" >
result = #{record.result,jdbcType=VARCHAR},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update final_measuret_check
set f_measure_check_id = #{record.fMeasureCheckId,jdbcType=VARCHAR},
order_id = #{record.orderId,jdbcType=VARCHAR},
check_item = #{record.checkItem,jdbcType=VARCHAR},
cdate = #{record.cdate,jdbcType=TIMESTAMP},
measure_data = #{record.measureData,jdbcType=VARCHAR},
emp_id = #{record.empId,jdbcType=VARCHAR},
result = #{record.result,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.FinalMeasuretCheck" >
update final_measuret_check
<set >
<if test="orderId != null" >
order_id = #{orderId,jdbcType=VARCHAR},
</if>
<if test="checkItem != null" >
check_item = #{checkItem,jdbcType=VARCHAR},
</if>
<if test="cdate != null" >
cdate = #{cdate,jdbcType=TIMESTAMP},
</if>
<if test="measureData != null" >
measure_data = #{measureData,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
emp_id = #{empId,jdbcType=VARCHAR},
</if>
<if test="result != null" >
result = #{result,jdbcType=VARCHAR},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where f_measure_check_id = #{fMeasureCheckId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.FinalMeasuretCheck" >
update final_measuret_check
set order_id = #{orderId,jdbcType=VARCHAR},
check_item = #{checkItem,jdbcType=VARCHAR},
cdate = #{cdate,jdbcType=TIMESTAMP},
measure_data = #{measureData,jdbcType=VARCHAR},
emp_id = #{empId,jdbcType=VARCHAR},
result = #{result,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where f_measure_check_id = #{fMeasureCheckId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Manufacture;
import org.hqu.production_ms.domain.ManufactureExample;
public interface ManufactureMapper {
int countByExample(ManufactureExample example);
int deleteByExample(ManufactureExample example);
int deleteByPrimaryKey(String manufactureSn);
int insert(Manufacture record);
int insertSelective(Manufacture record);
List<Manufacture> selectByExample(ManufactureExample example);
Manufacture selectByPrimaryKey(String manufactureSn);
int updateByExampleSelective(@Param("record") Manufacture record, @Param("example") ManufactureExample example);
int updateByExample(@Param("record") Manufacture record, @Param("example") ManufactureExample example);
int updateByPrimaryKeySelective(Manufacture record);
int updateByPrimaryKey(Manufacture record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.ManufactureMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.Manufacture" >
<id column="manufacture_sn" property="manufactureSn" jdbcType="VARCHAR" />
<result column="order_id" property="orderId" jdbcType="VARCHAR" />
<result column="technology_id" property="technologyId" jdbcType="VARCHAR" />
<result column="launch_quantity" property="launchQuantity" jdbcType="INTEGER" />
<result column="begin_date" property="beginDate" jdbcType="TIMESTAMP" />
<result column="end_date" property="endDate" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
manufacture_sn, order_id, technology_id, launch_quantity, begin_date, end_date
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.ManufactureExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from manufacture
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from manufacture
where manufacture_sn = #{manufactureSn,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from manufacture
where manufacture_sn = #{manufactureSn,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.ManufactureExample" >
delete from manufacture
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.Manufacture" >
insert into manufacture (manufacture_sn, order_id, technology_id,
launch_quantity, begin_date, end_date
)
values (#{manufactureSn,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, #{technologyId,jdbcType=VARCHAR},
#{launchQuantity,jdbcType=INTEGER}, #{beginDate,jdbcType=TIMESTAMP}, #{endDate,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.Manufacture" >
insert into manufacture
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="manufactureSn != null" >
manufacture_sn,
</if>
<if test="orderId != null" >
order_id,
</if>
<if test="technologyId != null" >
technology_id,
</if>
<if test="launchQuantity != null" >
launch_quantity,
</if>
<if test="beginDate != null" >
begin_date,
</if>
<if test="endDate != null" >
end_date,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="manufactureSn != null" >
#{manufactureSn,jdbcType=VARCHAR},
</if>
<if test="orderId != null" >
#{orderId,jdbcType=VARCHAR},
</if>
<if test="technologyId != null" >
#{technologyId,jdbcType=VARCHAR},
</if>
<if test="launchQuantity != null" >
#{launchQuantity,jdbcType=INTEGER},
</if>
<if test="beginDate != null" >
#{beginDate,jdbcType=TIMESTAMP},
</if>
<if test="endDate != null" >
#{endDate,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.ManufactureExample" resultType="java.lang.Integer" >
select count(*) from manufacture
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update manufacture
<set >
<if test="record.manufactureSn != null" >
manufacture_sn = #{record.manufactureSn,jdbcType=VARCHAR},
</if>
<if test="record.orderId != null" >
order_id = #{record.orderId,jdbcType=VARCHAR},
</if>
<if test="record.technologyId != null" >
technology_id = #{record.technologyId,jdbcType=VARCHAR},
</if>
<if test="record.launchQuantity != null" >
launch_quantity = #{record.launchQuantity,jdbcType=INTEGER},
</if>
<if test="record.beginDate != null" >
begin_date = #{record.beginDate,jdbcType=TIMESTAMP},
</if>
<if test="record.endDate != null" >
end_date = #{record.endDate,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update manufacture
set manufacture_sn = #{record.manufactureSn,jdbcType=VARCHAR},
order_id = #{record.orderId,jdbcType=VARCHAR},
technology_id = #{record.technologyId,jdbcType=VARCHAR},
launch_quantity = #{record.launchQuantity,jdbcType=INTEGER},
begin_date = #{record.beginDate,jdbcType=TIMESTAMP},
end_date = #{record.endDate,jdbcType=TIMESTAMP}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.Manufacture" >
update manufacture
<set >
<if test="orderId != null" >
order_id = #{orderId,jdbcType=VARCHAR},
</if>
<if test="technologyId != null" >
technology_id = #{technologyId,jdbcType=VARCHAR},
</if>
<if test="launchQuantity != null" >
launch_quantity = #{launchQuantity,jdbcType=INTEGER},
</if>
<if test="beginDate != null" >
begin_date = #{beginDate,jdbcType=TIMESTAMP},
</if>
<if test="endDate != null" >
end_date = #{endDate,jdbcType=TIMESTAMP},
</if>
</set>
where manufacture_sn = #{manufactureSn,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.Manufacture" >
update manufacture
set order_id = #{orderId,jdbcType=VARCHAR},
technology_id = #{technologyId,jdbcType=VARCHAR},
launch_quantity = #{launchQuantity,jdbcType=INTEGER},
begin_date = #{beginDate,jdbcType=TIMESTAMP},
end_date = #{endDate,jdbcType=TIMESTAMP}
where manufacture_sn = #{manufactureSn,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.MaterialConsume;
import org.hqu.production_ms.domain.MaterialConsumeExample;
public interface MaterialConsumeMapper {
int countByExample(MaterialConsumeExample example);
int deleteByExample(MaterialConsumeExample example);
int deleteByPrimaryKey(String consumeId);
int insert(MaterialConsume record);
int insertSelective(MaterialConsume record);
List<MaterialConsume> selectByExample(MaterialConsumeExample example);
MaterialConsume selectByPrimaryKey(String consumeId);
int updateByExampleSelective(@Param("record") MaterialConsume record, @Param("example") MaterialConsumeExample example);
int updateByExample(@Param("record") MaterialConsume record, @Param("example") MaterialConsumeExample example);
int updateByPrimaryKeySelective(MaterialConsume record);
int updateByPrimaryKey(MaterialConsume record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.MaterialConsumeMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.MaterialConsume" >
<id column="consume_id" property="consumeId" jdbcType="VARCHAR" />
<result column="material_id" property="materialId" jdbcType="VARCHAR" />
<result column="consume_amount" property="consumeAmount" jdbcType="INTEGER" />
<result column="consume_date" property="consumeDate" jdbcType="TIMESTAMP" />
<result column="sender" property="sender" jdbcType="VARCHAR" />
<result column="receiver" property="receiver" jdbcType="VARCHAR" />
<result column="note" property="note" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
consume_id, material_id, consume_amount, consume_date, sender, receiver, note
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.MaterialConsumeExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from material_consume
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from material_consume
where consume_id = #{consumeId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from material_consume
where consume_id = #{consumeId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.MaterialConsumeExample" >
delete from material_consume
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.MaterialConsume" >
insert into material_consume (consume_id, material_id, consume_amount,
consume_date, sender, receiver,
note)
values (#{consumeId,jdbcType=VARCHAR}, #{materialId,jdbcType=VARCHAR}, #{consumeAmount,jdbcType=INTEGER},
#{consumeDate,jdbcType=TIMESTAMP}, #{sender,jdbcType=VARCHAR}, #{receiver,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.MaterialConsume" >
insert into material_consume
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="consumeId != null" >
consume_id,
</if>
<if test="materialId != null" >
material_id,
</if>
<if test="consumeAmount != null" >
consume_amount,
</if>
<if test="consumeDate != null" >
consume_date,
</if>
<if test="sender != null" >
sender,
</if>
<if test="receiver != null" >
receiver,
</if>
<if test="note != null" >
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="consumeId != null" >
#{consumeId,jdbcType=VARCHAR},
</if>
<if test="materialId != null" >
#{materialId,jdbcType=VARCHAR},
</if>
<if test="consumeAmount != null" >
#{consumeAmount,jdbcType=INTEGER},
</if>
<if test="consumeDate != null" >
#{consumeDate,jdbcType=TIMESTAMP},
</if>
<if test="sender != null" >
#{sender,jdbcType=VARCHAR},
</if>
<if test="receiver != null" >
#{receiver,jdbcType=VARCHAR},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.MaterialConsumeExample" resultType="java.lang.Integer" >
select count(*) from material_consume
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update material_consume
<set >
<if test="record.consumeId != null" >
consume_id = #{record.consumeId,jdbcType=VARCHAR},
</if>
<if test="record.materialId != null" >
material_id = #{record.materialId,jdbcType=VARCHAR},
</if>
<if test="record.consumeAmount != null" >
consume_amount = #{record.consumeAmount,jdbcType=INTEGER},
</if>
<if test="record.consumeDate != null" >
consume_date = #{record.consumeDate,jdbcType=TIMESTAMP},
</if>
<if test="record.sender != null" >
sender = #{record.sender,jdbcType=VARCHAR},
</if>
<if test="record.receiver != null" >
receiver = #{record.receiver,jdbcType=VARCHAR},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update material_consume
set consume_id = #{record.consumeId,jdbcType=VARCHAR},
material_id = #{record.materialId,jdbcType=VARCHAR},
consume_amount = #{record.consumeAmount,jdbcType=INTEGER},
consume_date = #{record.consumeDate,jdbcType=TIMESTAMP},
sender = #{record.sender,jdbcType=VARCHAR},
receiver = #{record.receiver,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.MaterialConsume" >
update material_consume
<set >
<if test="materialId != null" >
material_id = #{materialId,jdbcType=VARCHAR},
</if>
<if test="consumeAmount != null" >
consume_amount = #{consumeAmount,jdbcType=INTEGER},
</if>
<if test="consumeDate != null" >
consume_date = #{consumeDate,jdbcType=TIMESTAMP},
</if>
<if test="sender != null" >
sender = #{sender,jdbcType=VARCHAR},
</if>
<if test="receiver != null" >
receiver = #{receiver,jdbcType=VARCHAR},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where consume_id = #{consumeId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.MaterialConsume" >
update material_consume
set material_id = #{materialId,jdbcType=VARCHAR},
consume_amount = #{consumeAmount,jdbcType=INTEGER},
consume_date = #{consumeDate,jdbcType=TIMESTAMP},
sender = #{sender,jdbcType=VARCHAR},
receiver = #{receiver,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where consume_id = #{consumeId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Material;
import org.hqu.production_ms.domain.MaterialExample;
public interface MaterialMapper {
int countByExample(MaterialExample example);
int deleteByExample(MaterialExample example);
int deleteByPrimaryKey(String materialId);
int insert(Material record);
int insertSelective(Material record);
List<Material> selectByExample(MaterialExample example);
Material selectByPrimaryKey(String materialId);
int updateByExampleSelective(@Param("record") Material record, @Param("example") MaterialExample example);
int updateByExample(@Param("record") Material record, @Param("example") MaterialExample example);
int updateByPrimaryKeySelective(Material record);
int updateByPrimaryKey(Material record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.MaterialMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.Material" >
<id column="material_id" property="materialId" jdbcType="VARCHAR" />
<result column="work_id" property="workId" jdbcType="VARCHAR" />
<result column="material_type" property="materialType" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="remaining" property="remaining" jdbcType="INTEGER" />
<result column="note" property="note" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
material_id, work_id, material_type, status, remaining, note
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.MaterialExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from material
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from material
where material_id = #{materialId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from material
where material_id = #{materialId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.MaterialExample" >
delete from material
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.Material" >
insert into material (material_id, work_id, material_type,
status, remaining, note
)
values (#{materialId,jdbcType=VARCHAR}, #{workId,jdbcType=VARCHAR}, #{materialType,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR}, #{remaining,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.Material" >
insert into material
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="materialId != null" >
material_id,
</if>
<if test="workId != null" >
work_id,
</if>
<if test="materialType != null" >
material_type,
</if>
<if test="status != null" >
status,
</if>
<if test="remaining != null" >
remaining,
</if>
<if test="note != null" >
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="materialId != null" >
#{materialId,jdbcType=VARCHAR},
</if>
<if test="workId != null" >
#{workId,jdbcType=VARCHAR},
</if>
<if test="materialType != null" >
#{materialType,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="remaining != null" >
#{remaining,jdbcType=INTEGER},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.MaterialExample" resultType="java.lang.Integer" >
select count(*) from material
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update material
<set >
<if test="record.materialId != null" >
material_id = #{record.materialId,jdbcType=VARCHAR},
</if>
<if test="record.workId != null" >
work_id = #{record.workId,jdbcType=VARCHAR},
</if>
<if test="record.materialType != null" >
material_type = #{record.materialType,jdbcType=VARCHAR},
</if>
<if test="record.status != null" >
status = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.remaining != null" >
remaining = #{record.remaining,jdbcType=INTEGER},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update material
set material_id = #{record.materialId,jdbcType=VARCHAR},
work_id = #{record.workId,jdbcType=VARCHAR},
material_type = #{record.materialType,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
remaining = #{record.remaining,jdbcType=INTEGER},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.Material" >
update material
<set >
<if test="workId != null" >
work_id = #{workId,jdbcType=VARCHAR},
</if>
<if test="materialType != null" >
material_type = #{materialType,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=VARCHAR},
</if>
<if test="remaining != null" >
remaining = #{remaining,jdbcType=INTEGER},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where material_id = #{materialId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.Material" >
update material
set work_id = #{workId,jdbcType=VARCHAR},
material_type = #{materialType,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
remaining = #{remaining,jdbcType=INTEGER},
note = #{note,jdbcType=VARCHAR}
where material_id = #{materialId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.MaterialReceive;
import org.hqu.production_ms.domain.MaterialReceiveExample;
public interface MaterialReceiveMapper {
int countByExample(MaterialReceiveExample example);
int deleteByExample(MaterialReceiveExample example);
int deleteByPrimaryKey(String receiveId);
int insert(MaterialReceive record);
int insertSelective(MaterialReceive record);
List<MaterialReceive> selectByExample(MaterialReceiveExample example);
MaterialReceive selectByPrimaryKey(String receiveId);
int updateByExampleSelective(@Param("record") MaterialReceive record, @Param("example") MaterialReceiveExample example);
int updateByExample(@Param("record") MaterialReceive record, @Param("example") MaterialReceiveExample example);
int updateByPrimaryKeySelective(MaterialReceive record);
int updateByPrimaryKey(MaterialReceive record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.MaterialReceiveMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.MaterialReceive" >
<id column="receive_id" property="receiveId" jdbcType="VARCHAR" />
<result column="material_id" property="materialId" jdbcType="VARCHAR" />
<result column="ammount" property="ammount" jdbcType="INTEGER" />
<result column="receive_date" property="receiveDate" jdbcType="TIMESTAMP" />
<result column="sender" property="sender" jdbcType="VARCHAR" />
<result column="emp_id" property="empId" jdbcType="VARCHAR" />
<result column="note" property="note" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
receive_id, material_id, ammount, receive_date, sender, emp_id, note
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.MaterialReceiveExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from material_receive
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from material_receive
where receive_id = #{receiveId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from material_receive
where receive_id = #{receiveId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.MaterialReceiveExample" >
delete from material_receive
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.MaterialReceive" >
insert into material_receive (receive_id, material_id, ammount,
receive_date, sender, emp_id,
note)
values (#{receiveId,jdbcType=VARCHAR}, #{materialId,jdbcType=VARCHAR}, #{ammount,jdbcType=INTEGER},
#{receiveDate,jdbcType=TIMESTAMP}, #{sender,jdbcType=VARCHAR}, #{empId,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.MaterialReceive" >
insert into material_receive
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="receiveId != null" >
receive_id,
</if>
<if test="materialId != null" >
material_id,
</if>
<if test="ammount != null" >
ammount,
</if>
<if test="receiveDate != null" >
receive_date,
</if>
<if test="sender != null" >
sender,
</if>
<if test="empId != null" >
emp_id,
</if>
<if test="note != null" >
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="receiveId != null" >
#{receiveId,jdbcType=VARCHAR},
</if>
<if test="materialId != null" >
#{materialId,jdbcType=VARCHAR},
</if>
<if test="ammount != null" >
#{ammount,jdbcType=INTEGER},
</if>
<if test="receiveDate != null" >
#{receiveDate,jdbcType=TIMESTAMP},
</if>
<if test="sender != null" >
#{sender,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
#{empId,jdbcType=VARCHAR},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.MaterialReceiveExample" resultType="java.lang.Integer" >
select count(*) from material_receive
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update material_receive
<set >
<if test="record.receiveId != null" >
receive_id = #{record.receiveId,jdbcType=VARCHAR},
</if>
<if test="record.materialId != null" >
material_id = #{record.materialId,jdbcType=VARCHAR},
</if>
<if test="record.ammount != null" >
ammount = #{record.ammount,jdbcType=INTEGER},
</if>
<if test="record.receiveDate != null" >
receive_date = #{record.receiveDate,jdbcType=TIMESTAMP},
</if>
<if test="record.sender != null" >
sender = #{record.sender,jdbcType=VARCHAR},
</if>
<if test="record.empId != null" >
emp_id = #{record.empId,jdbcType=VARCHAR},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update material_receive
set receive_id = #{record.receiveId,jdbcType=VARCHAR},
material_id = #{record.materialId,jdbcType=VARCHAR},
ammount = #{record.ammount,jdbcType=INTEGER},
receive_date = #{record.receiveDate,jdbcType=TIMESTAMP},
sender = #{record.sender,jdbcType=VARCHAR},
emp_id = #{record.empId,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.MaterialReceive" >
update material_receive
<set >
<if test="materialId != null" >
material_id = #{materialId,jdbcType=VARCHAR},
</if>
<if test="ammount != null" >
ammount = #{ammount,jdbcType=INTEGER},
</if>
<if test="receiveDate != null" >
receive_date = #{receiveDate,jdbcType=TIMESTAMP},
</if>
<if test="sender != null" >
sender = #{sender,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
emp_id = #{empId,jdbcType=VARCHAR},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where receive_id = #{receiveId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.MaterialReceive" >
update material_receive
set material_id = #{materialId,jdbcType=VARCHAR},
ammount = #{ammount,jdbcType=INTEGER},
receive_date = #{receiveDate,jdbcType=TIMESTAMP},
sender = #{sender,jdbcType=VARCHAR},
emp_id = #{empId,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where receive_id = #{receiveId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.ProcessCountCheck;
import org.hqu.production_ms.domain.ProcessCountCheckExample;
public interface ProcessCountCheckMapper {
int countByExample(ProcessCountCheckExample example);
int deleteByExample(ProcessCountCheckExample example);
int deleteByPrimaryKey(String pCountCheckId);
int insert(ProcessCountCheck record);
int insertSelective(ProcessCountCheck record);
List<ProcessCountCheck> selectByExample(ProcessCountCheckExample example);
ProcessCountCheck selectByPrimaryKey(String pCountCheckId);
int updateByExampleSelective(@Param("record") ProcessCountCheck record, @Param("example") ProcessCountCheckExample example);
int updateByExample(@Param("record") ProcessCountCheck record, @Param("example") ProcessCountCheckExample example);
int updateByPrimaryKeySelective(ProcessCountCheck record);
int updateByPrimaryKey(ProcessCountCheck record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.ProcessCountCheckMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.ProcessCountCheck" >
<id column="p_count_check_id" property="pCountCheckId" jdbcType="VARCHAR" />
<result column="process_id" property="processId" jdbcType="VARCHAR" />
<result column="check_item" property="checkItem" jdbcType="VARCHAR" />
<result column="sample" property="sample" jdbcType="INTEGER" />
<result column="check_number" property="checkNumber" jdbcType="INTEGER" />
<result column="unqualify" property="unqualify" jdbcType="INTEGER" />
<result column="qualify" property="qualify" jdbcType="DECIMAL" />
<result column="cdate" property="cdate" jdbcType="TIMESTAMP" />
<result column="measure_data" property="measureData" jdbcType="VARCHAR" />
<result column="emp_id" property="empId" jdbcType="VARCHAR" />
<result column="result" property="result" jdbcType="VARCHAR" />
<result column="note" property="note" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
p_count_check_id, process_id, check_item, sample, check_number, unqualify, qualify,
cdate, measure_data, emp_id, result, note
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.ProcessCountCheckExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from process_count_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from process_count_check
where p_count_check_id = #{pCountCheckId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from process_count_check
where p_count_check_id = #{pCountCheckId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.ProcessCountCheckExample" >
delete from process_count_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.ProcessCountCheck" >
insert into process_count_check (p_count_check_id, process_id, check_item,
sample, check_number, unqualify,
qualify, cdate, measure_data,
emp_id, result, note
)
values (#{pCountCheckId,jdbcType=VARCHAR}, #{processId,jdbcType=VARCHAR}, #{checkItem,jdbcType=VARCHAR},
#{sample,jdbcType=INTEGER}, #{checkNumber,jdbcType=INTEGER}, #{unqualify,jdbcType=INTEGER},
#{qualify,jdbcType=DECIMAL}, #{cdate,jdbcType=TIMESTAMP}, #{measureData,jdbcType=VARCHAR},
#{empId,jdbcType=VARCHAR}, #{result,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.ProcessCountCheck" >
insert into process_count_check
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="pCountCheckId != null" >
p_count_check_id,
</if>
<if test="processId != null" >
process_id,
</if>
<if test="checkItem != null" >
check_item,
</if>
<if test="sample != null" >
sample,
</if>
<if test="checkNumber != null" >
check_number,
</if>
<if test="unqualify != null" >
unqualify,
</if>
<if test="qualify != null" >
qualify,
</if>
<if test="cdate != null" >
cdate,
</if>
<if test="measureData != null" >
measure_data,
</if>
<if test="empId != null" >
emp_id,
</if>
<if test="result != null" >
result,
</if>
<if test="note != null" >
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="pCountCheckId != null" >
#{pCountCheckId,jdbcType=VARCHAR},
</if>
<if test="processId != null" >
#{processId,jdbcType=VARCHAR},
</if>
<if test="checkItem != null" >
#{checkItem,jdbcType=VARCHAR},
</if>
<if test="sample != null" >
#{sample,jdbcType=INTEGER},
</if>
<if test="checkNumber != null" >
#{checkNumber,jdbcType=INTEGER},
</if>
<if test="unqualify != null" >
#{unqualify,jdbcType=INTEGER},
</if>
<if test="qualify != null" >
#{qualify,jdbcType=DECIMAL},
</if>
<if test="cdate != null" >
#{cdate,jdbcType=TIMESTAMP},
</if>
<if test="measureData != null" >
#{measureData,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
#{empId,jdbcType=VARCHAR},
</if>
<if test="result != null" >
#{result,jdbcType=VARCHAR},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.ProcessCountCheckExample" resultType="java.lang.Integer" >
select count(*) from process_count_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update process_count_check
<set >
<if test="record.pCountCheckId != null" >
p_count_check_id = #{record.pCountCheckId,jdbcType=VARCHAR},
</if>
<if test="record.processId != null" >
process_id = #{record.processId,jdbcType=VARCHAR},
</if>
<if test="record.checkItem != null" >
check_item = #{record.checkItem,jdbcType=VARCHAR},
</if>
<if test="record.sample != null" >
sample = #{record.sample,jdbcType=INTEGER},
</if>
<if test="record.checkNumber != null" >
check_number = #{record.checkNumber,jdbcType=INTEGER},
</if>
<if test="record.unqualify != null" >
unqualify = #{record.unqualify,jdbcType=INTEGER},
</if>
<if test="record.qualify != null" >
qualify = #{record.qualify,jdbcType=DECIMAL},
</if>
<if test="record.cdate != null" >
cdate = #{record.cdate,jdbcType=TIMESTAMP},
</if>
<if test="record.measureData != null" >
measure_data = #{record.measureData,jdbcType=VARCHAR},
</if>
<if test="record.empId != null" >
emp_id = #{record.empId,jdbcType=VARCHAR},
</if>
<if test="record.result != null" >
result = #{record.result,jdbcType=VARCHAR},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update process_count_check
set p_count_check_id = #{record.pCountCheckId,jdbcType=VARCHAR},
process_id = #{record.processId,jdbcType=VARCHAR},
check_item = #{record.checkItem,jdbcType=VARCHAR},
sample = #{record.sample,jdbcType=INTEGER},
check_number = #{record.checkNumber,jdbcType=INTEGER},
unqualify = #{record.unqualify,jdbcType=INTEGER},
qualify = #{record.qualify,jdbcType=DECIMAL},
cdate = #{record.cdate,jdbcType=TIMESTAMP},
measure_data = #{record.measureData,jdbcType=VARCHAR},
emp_id = #{record.empId,jdbcType=VARCHAR},
result = #{record.result,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.ProcessCountCheck" >
update process_count_check
<set >
<if test="processId != null" >
process_id = #{processId,jdbcType=VARCHAR},
</if>
<if test="checkItem != null" >
check_item = #{checkItem,jdbcType=VARCHAR},
</if>
<if test="sample != null" >
sample = #{sample,jdbcType=INTEGER},
</if>
<if test="checkNumber != null" >
check_number = #{checkNumber,jdbcType=INTEGER},
</if>
<if test="unqualify != null" >
unqualify = #{unqualify,jdbcType=INTEGER},
</if>
<if test="qualify != null" >
qualify = #{qualify,jdbcType=DECIMAL},
</if>
<if test="cdate != null" >
cdate = #{cdate,jdbcType=TIMESTAMP},
</if>
<if test="measureData != null" >
measure_data = #{measureData,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
emp_id = #{empId,jdbcType=VARCHAR},
</if>
<if test="result != null" >
result = #{result,jdbcType=VARCHAR},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where p_count_check_id = #{pCountCheckId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.ProcessCountCheck" >
update process_count_check
set process_id = #{processId,jdbcType=VARCHAR},
check_item = #{checkItem,jdbcType=VARCHAR},
sample = #{sample,jdbcType=INTEGER},
check_number = #{checkNumber,jdbcType=INTEGER},
unqualify = #{unqualify,jdbcType=INTEGER},
qualify = #{qualify,jdbcType=DECIMAL},
cdate = #{cdate,jdbcType=TIMESTAMP},
measure_data = #{measureData,jdbcType=VARCHAR},
emp_id = #{empId,jdbcType=VARCHAR},
result = #{result,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where p_count_check_id = #{pCountCheckId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Process;
import org.hqu.production_ms.domain.ProcessExample;
public interface ProcessMapper {
int countByExample(ProcessExample example);
int deleteByExample(ProcessExample example);
int deleteByPrimaryKey(String processId);
int insert(Process record);
int insertSelective(Process record);
List<Process> selectByExample(ProcessExample example);
Process selectByPrimaryKey(String processId);
int updateByExampleSelective(@Param("record") Process record, @Param("example") ProcessExample example);
int updateByExample(@Param("record") Process record, @Param("example") ProcessExample example);
int updateByPrimaryKeySelective(Process record);
int updateByPrimaryKey(Process record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.ProcessMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.Process" >
<id column="process_id" property="processId" jdbcType="VARCHAR" />
<result column="technology_plan_id" property="technologyPlanId" jdbcType="VARCHAR" />
<result column="sequence" property="sequence" jdbcType="INTEGER" />
<result column="quota" property="quota" jdbcType="INTEGER" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
process_id, technology_plan_id, sequence, quota
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.ProcessExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from process
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from process
where process_id = #{processId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from process
where process_id = #{processId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.ProcessExample" >
delete from process
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.Process" >
insert into process (process_id, technology_plan_id, sequence,
quota)
values (#{processId,jdbcType=VARCHAR}, #{technologyPlanId,jdbcType=VARCHAR}, #{sequence,jdbcType=INTEGER},
#{quota,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.Process" >
insert into process
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="processId != null" >
process_id,
</if>
<if test="technologyPlanId != null" >
technology_plan_id,
</if>
<if test="sequence != null" >
sequence,
</if>
<if test="quota != null" >
quota,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="processId != null" >
#{processId,jdbcType=VARCHAR},
</if>
<if test="technologyPlanId != null" >
#{technologyPlanId,jdbcType=VARCHAR},
</if>
<if test="sequence != null" >
#{sequence,jdbcType=INTEGER},
</if>
<if test="quota != null" >
#{quota,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.ProcessExample" resultType="java.lang.Integer" >
select count(*) from process
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update process
<set >
<if test="record.processId != null" >
process_id = #{record.processId,jdbcType=VARCHAR},
</if>
<if test="record.technologyPlanId != null" >
technology_plan_id = #{record.technologyPlanId,jdbcType=VARCHAR},
</if>
<if test="record.sequence != null" >
sequence = #{record.sequence,jdbcType=INTEGER},
</if>
<if test="record.quota != null" >
quota = #{record.quota,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update process
set process_id = #{record.processId,jdbcType=VARCHAR},
technology_plan_id = #{record.technologyPlanId,jdbcType=VARCHAR},
sequence = #{record.sequence,jdbcType=INTEGER},
quota = #{record.quota,jdbcType=INTEGER}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.Process" >
update process
<set >
<if test="technologyPlanId != null" >
technology_plan_id = #{technologyPlanId,jdbcType=VARCHAR},
</if>
<if test="sequence != null" >
sequence = #{sequence,jdbcType=INTEGER},
</if>
<if test="quota != null" >
quota = #{quota,jdbcType=INTEGER},
</if>
</set>
where process_id = #{processId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.Process" >
update process
set technology_plan_id = #{technologyPlanId,jdbcType=VARCHAR},
sequence = #{sequence,jdbcType=INTEGER},
quota = #{quota,jdbcType=INTEGER}
where process_id = #{processId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.ProcessMeasureCheck;
import org.hqu.production_ms.domain.ProcessMeasureCheckExample;
public interface ProcessMeasureCheckMapper {
int countByExample(ProcessMeasureCheckExample example);
int deleteByExample(ProcessMeasureCheckExample example);
int deleteByPrimaryKey(String pMeasureCheckId);
int insert(ProcessMeasureCheck record);
int insertSelective(ProcessMeasureCheck record);
List<ProcessMeasureCheck> selectByExample(ProcessMeasureCheckExample example);
ProcessMeasureCheck selectByPrimaryKey(String pMeasureCheckId);
int updateByExampleSelective(@Param("record") ProcessMeasureCheck record, @Param("example") ProcessMeasureCheckExample example);
int updateByExample(@Param("record") ProcessMeasureCheck record, @Param("example") ProcessMeasureCheckExample example);
int updateByPrimaryKeySelective(ProcessMeasureCheck record);
int updateByPrimaryKey(ProcessMeasureCheck record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.ProcessMeasureCheckMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.ProcessMeasureCheck" >
<id column="p_measure_check_id" property="pMeasureCheckId" jdbcType="VARCHAR" />
<result column="process_id" property="processId" jdbcType="VARCHAR" />
<result column="check_item" property="checkItem" jdbcType="VARCHAR" />
<result column="cdate" property="cdate" jdbcType="TIMESTAMP" />
<result column="measure_data" property="measureData" jdbcType="VARCHAR" />
<result column="emp_id" property="empId" jdbcType="VARCHAR" />
<result column="result" property="result" jdbcType="VARCHAR" />
<result column="note" property="note" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
p_measure_check_id, process_id, check_item, cdate, measure_data, emp_id, result,
note
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.ProcessMeasureCheckExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from process_measure_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from process_measure_check
where p_measure_check_id = #{pMeasureCheckId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from process_measure_check
where p_measure_check_id = #{pMeasureCheckId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.ProcessMeasureCheckExample" >
delete from process_measure_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.ProcessMeasureCheck" >
insert into process_measure_check (p_measure_check_id, process_id, check_item,
cdate, measure_data, emp_id,
result, note)
values (#{pMeasureCheckId,jdbcType=VARCHAR}, #{processId,jdbcType=VARCHAR}, #{checkItem,jdbcType=VARCHAR},
#{cdate,jdbcType=TIMESTAMP}, #{measureData,jdbcType=VARCHAR}, #{empId,jdbcType=VARCHAR},
#{result,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.ProcessMeasureCheck" >
insert into process_measure_check
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="pMeasureCheckId != null" >
p_measure_check_id,
</if>
<if test="processId != null" >
process_id,
</if>
<if test="checkItem != null" >
check_item,
</if>
<if test="cdate != null" >
cdate,
</if>
<if test="measureData != null" >
measure_data,
</if>
<if test="empId != null" >
emp_id,
</if>
<if test="result != null" >
result,
</if>
<if test="note != null" >
note,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="pMeasureCheckId != null" >
#{pMeasureCheckId,jdbcType=VARCHAR},
</if>
<if test="processId != null" >
#{processId,jdbcType=VARCHAR},
</if>
<if test="checkItem != null" >
#{checkItem,jdbcType=VARCHAR},
</if>
<if test="cdate != null" >
#{cdate,jdbcType=TIMESTAMP},
</if>
<if test="measureData != null" >
#{measureData,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
#{empId,jdbcType=VARCHAR},
</if>
<if test="result != null" >
#{result,jdbcType=VARCHAR},
</if>
<if test="note != null" >
#{note,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.ProcessMeasureCheckExample" resultType="java.lang.Integer" >
select count(*) from process_measure_check
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update process_measure_check
<set >
<if test="record.pMeasureCheckId != null" >
p_measure_check_id = #{record.pMeasureCheckId,jdbcType=VARCHAR},
</if>
<if test="record.processId != null" >
process_id = #{record.processId,jdbcType=VARCHAR},
</if>
<if test="record.checkItem != null" >
check_item = #{record.checkItem,jdbcType=VARCHAR},
</if>
<if test="record.cdate != null" >
cdate = #{record.cdate,jdbcType=TIMESTAMP},
</if>
<if test="record.measureData != null" >
measure_data = #{record.measureData,jdbcType=VARCHAR},
</if>
<if test="record.empId != null" >
emp_id = #{record.empId,jdbcType=VARCHAR},
</if>
<if test="record.result != null" >
result = #{record.result,jdbcType=VARCHAR},
</if>
<if test="record.note != null" >
note = #{record.note,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update process_measure_check
set p_measure_check_id = #{record.pMeasureCheckId,jdbcType=VARCHAR},
process_id = #{record.processId,jdbcType=VARCHAR},
check_item = #{record.checkItem,jdbcType=VARCHAR},
cdate = #{record.cdate,jdbcType=TIMESTAMP},
measure_data = #{record.measureData,jdbcType=VARCHAR},
emp_id = #{record.empId,jdbcType=VARCHAR},
result = #{record.result,jdbcType=VARCHAR},
note = #{record.note,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.ProcessMeasureCheck" >
update process_measure_check
<set >
<if test="processId != null" >
process_id = #{processId,jdbcType=VARCHAR},
</if>
<if test="checkItem != null" >
check_item = #{checkItem,jdbcType=VARCHAR},
</if>
<if test="cdate != null" >
cdate = #{cdate,jdbcType=TIMESTAMP},
</if>
<if test="measureData != null" >
measure_data = #{measureData,jdbcType=VARCHAR},
</if>
<if test="empId != null" >
emp_id = #{empId,jdbcType=VARCHAR},
</if>
<if test="result != null" >
result = #{result,jdbcType=VARCHAR},
</if>
<if test="note != null" >
note = #{note,jdbcType=VARCHAR},
</if>
</set>
where p_measure_check_id = #{pMeasureCheckId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.ProcessMeasureCheck" >
update process_measure_check
set process_id = #{processId,jdbcType=VARCHAR},
check_item = #{checkItem,jdbcType=VARCHAR},
cdate = #{cdate,jdbcType=TIMESTAMP},
measure_data = #{measureData,jdbcType=VARCHAR},
emp_id = #{empId,jdbcType=VARCHAR},
result = #{result,jdbcType=VARCHAR},
note = #{note,jdbcType=VARCHAR}
where p_measure_check_id = #{pMeasureCheckId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Product;
import org.hqu.production_ms.domain.ProductExample;
public interface ProductMapper {
//扩展的mapper接口方法
int deleteBatch(String[] ids);
int countByExample(ProductExample example);
int deleteByExample(ProductExample example);
int deleteByPrimaryKey(String productId);
int insert(Product record);
int insertSelective(Product record);
List<Product> selectByExample(ProductExample example);
Product selectByPrimaryKey(String productId);
int updateByExampleSelective(@Param("record") Product record, @Param("example") ProductExample example);
int updateByExample(@Param("record") Product record, @Param("example") ProductExample example);
int updateByPrimaryKeySelective(Product record);
int updateByPrimaryKey(Product record);
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.hqu.production_ms.mapper.ProductMapper" >
<resultMap id="BaseResultMap" type="org.hqu.production_ms.domain.Product" >
<id column="product_id" property="productId" jdbcType="VARCHAR" />
<result column="product_name" property="productName" jdbcType="VARCHAR" />
<result column="product_type" property="productType" jdbcType="VARCHAR" />
<result column="drawing" property="drawing" jdbcType="VARCHAR" />
</resultMap>
<!-- 扩展的sql -->
<!-- 批量删除 -->
<delete id="deleteBatch">
DELETE
FROM
product
WHERE
product_id IN
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
<sql id="Example_Where_Clause" >
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
product_id, product_name, product_type, drawing
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="org.hqu.production_ms.domain.ProductExample" >
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from product
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from product
where product_id = #{productId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from product
where product_id = #{productId,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="org.hqu.production_ms.domain.ProductExample" >
delete from product
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="org.hqu.production_ms.domain.Product" >
insert into product (product_id, product_name, product_type,
drawing)
values (#{productId,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{productType,jdbcType=VARCHAR},
#{drawing,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="org.hqu.production_ms.domain.Product" >
insert into product
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="productId != null" >
product_id,
</if>
<if test="productName != null" >
product_name,
</if>
<if test="productType != null" >
product_type,
</if>
<if test="drawing != null" >
drawing,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="productId != null" >
#{productId,jdbcType=VARCHAR},
</if>
<if test="productName != null" >
#{productName,jdbcType=VARCHAR},
</if>
<if test="productType != null" >
#{productType,jdbcType=VARCHAR},
</if>
<if test="drawing != null" >
#{drawing,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="org.hqu.production_ms.domain.ProductExample" resultType="java.lang.Integer" >
select count(*) from product
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
update product
<set >
<if test="record.productId != null" >
product_id = #{record.productId,jdbcType=VARCHAR},
</if>
<if test="record.productName != null" >
product_name = #{record.productName,jdbcType=VARCHAR},
</if>
<if test="record.productType != null" >
product_type = #{record.productType,jdbcType=VARCHAR},
</if>
<if test="record.drawing != null" >
drawing = #{record.drawing,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
update product
set product_id = #{record.productId,jdbcType=VARCHAR},
product_name = #{record.productName,jdbcType=VARCHAR},
product_type = #{record.productType,jdbcType=VARCHAR},
drawing = #{record.drawing,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="org.hqu.production_ms.domain.Product" >
update product
<set >
<if test="productName != null" >
product_name = #{productName,jdbcType=VARCHAR},
</if>
<if test="productType != null" >
product_type = #{productType,jdbcType=VARCHAR},
</if>
<if test="drawing != null" >
drawing = #{drawing,jdbcType=VARCHAR},
</if>
</set>
where product_id = #{productId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="org.hqu.production_ms.domain.Product" >
update product
set product_name = #{productName,jdbcType=VARCHAR},
product_type = #{productType,jdbcType=VARCHAR},
drawing = #{drawing,jdbcType=VARCHAR}
where product_id = #{productId,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Repair;
import org.hqu.production_ms.domain.RepairExample;
public interface RepairMapper {
int countByExample(RepairExample example);
int deleteByExample(RepairExample example);
int deleteByPrimaryKey(String repairId);
int insert(Repair record);
int insertSelective(Repair record);
List<Repair> selectByExample(RepairExample example);
Repair selectByPrimaryKey(String repairId);
int updateByExampleSelective(@Param("record") Repair record, @Param("example") RepairExample example);
int updateByExample(@Param("record") Repair record, @Param("example") RepairExample example);
int updateByPrimaryKeySelective(Repair record);
int updateByPrimaryKey(Repair record);
}
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Task;
import org.hqu.production_ms.domain.TaskExample;
public interface TaskMapper {
int countByExample(TaskExample example);
int deleteByExample(TaskExample example);
int deleteByPrimaryKey(String taskId);
int insert(Task record);
int insertSelective(Task record);
List<Task> selectByExample(TaskExample example);
Task selectByPrimaryKey(String taskId);
int updateByExampleSelective(@Param("record") Task record, @Param("example") TaskExample example);
int updateByExample(@Param("record") Task record, @Param("example") TaskExample example);
int updateByPrimaryKeySelective(Task record);
int updateByPrimaryKey(Task record);
}
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Technology;
import org.hqu.production_ms.domain.TechnologyExample;
public interface TechnologyMapper {
int countByExample(TechnologyExample example);
int deleteByExample(TechnologyExample example);
int deleteByPrimaryKey(String technologyId);
int insert(Technology record);
int insertSelective(Technology record);
List<Technology> selectByExampleWithBLOBs(TechnologyExample example);
List<Technology> selectByExample(TechnologyExample example);
Technology selectByPrimaryKey(String technologyId);
int updateByExampleSelective(@Param("record") Technology record, @Param("example") TechnologyExample example);
int updateByExampleWithBLOBs(@Param("record") Technology record, @Param("example") TechnologyExample example);
int updateByExample(@Param("record") Technology record, @Param("example") TechnologyExample example);
int updateByPrimaryKeySelective(Technology record);
int updateByPrimaryKeyWithBLOBs(Technology record);
int updateByPrimaryKey(Technology record);
}
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.TechnologyPlan;
import org.hqu.production_ms.domain.TechnologyPlanExample;
public interface TechnologyPlanMapper {
int countByExample(TechnologyPlanExample example);
int deleteByExample(TechnologyPlanExample example);
int deleteByPrimaryKey(String technologyPlanId);
int insert(TechnologyPlan record);
int insertSelective(TechnologyPlan record);
List<TechnologyPlan> selectByExample(TechnologyPlanExample example);
TechnologyPlan selectByPrimaryKey(String technologyPlanId);
int updateByExampleSelective(@Param("record") TechnologyPlan record, @Param("example") TechnologyPlanExample example);
int updateByExample(@Param("record") TechnologyPlan record, @Param("example") TechnologyPlanExample example);
int updateByPrimaryKeySelective(TechnologyPlan record);
int updateByPrimaryKey(TechnologyPlan record);
}
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.TechnologyRequirement;
import org.hqu.production_ms.domain.TechnologyRequirementExample;
public interface TechnologyRequirementMapper {
int countByExample(TechnologyRequirementExample example);
int deleteByExample(TechnologyRequirementExample example);
int deleteByPrimaryKey(String technologyRequirementId);
int insert(TechnologyRequirement record);
int insertSelective(TechnologyRequirement record);
List<TechnologyRequirement> selectByExample(TechnologyRequirementExample example);
TechnologyRequirement selectByPrimaryKey(String technologyRequirementId);
int updateByExampleSelective(@Param("record") TechnologyRequirement record, @Param("example") TechnologyRequirementExample example);
int updateByExample(@Param("record") TechnologyRequirement record, @Param("example") TechnologyRequirementExample example);
int updateByPrimaryKeySelective(TechnologyRequirement record);
int updateByPrimaryKey(TechnologyRequirement record);
}
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.UnqualifyApply;
import org.hqu.production_ms.domain.UnqualifyApplyExample;
public interface UnqualifyApplyMapper {
int countByExample(UnqualifyApplyExample example);
int deleteByExample(UnqualifyApplyExample example);
int deleteByPrimaryKey(String unqualifyApplyId);
int insert(UnqualifyApply record);
int insertSelective(UnqualifyApply record);
List<UnqualifyApply> selectByExample(UnqualifyApplyExample example);
UnqualifyApply selectByPrimaryKey(String unqualifyApplyId);
int updateByExampleSelective(@Param("record") UnqualifyApply record, @Param("example") UnqualifyApplyExample example);
int updateByExample(@Param("record") UnqualifyApply record, @Param("example") UnqualifyApplyExample example);
int updateByPrimaryKeySelective(UnqualifyApply record);
int updateByPrimaryKey(UnqualifyApply record);
}
\ No newline at end of file
package org.hqu.production_ms.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.hqu.production_ms.domain.Work;
import org.hqu.production_ms.domain.WorkExample;
public interface WorkMapper {
int countByExample(WorkExample example);
int deleteByExample(WorkExample example);
int deleteByPrimaryKey(String workId);
int insert(Work record);
int insertSelective(Work record);
List<Work> selectByExample(WorkExample example);
Work selectByPrimaryKey(String workId);
int updateByExampleSelective(@Param("record") Work record, @Param("example") WorkExample example);
int updateByExample(@Param("record") Work record, @Param("example") WorkExample example);
int updateByPrimaryKeySelective(Work record);
int updateByPrimaryKey(Work record);
}
\ No newline at end of file
package org.hqu.production_ms.service;
import java.util.List;
import org.hqu.production_ms.domain.Custom;
import org.hqu.production_ms.domain.CustomResult;
import org.hqu.production_ms.domain.EUDataGridResult;
public interface CustomService {
List<Custom> find();
EUDataGridResult getList(int page, int rows, Custom custom);
Custom get(String string);
CustomResult delete(String string);
CustomResult deleteBatch(String[] ids);
CustomResult insert(Custom custom);
CustomResult update(Custom custom);
CustomResult changeStatus(String[] ids);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册