diff --git a/src/main/java/org/hqu/production_ms/mapper/DepartmentMapper.java b/src/main/java/org/hqu/production_ms/mapper/DepartmentMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..e8545267ec6c9b1e35bee41643dd98d3ffeab733 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/DepartmentMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/DepartmentMapper.xml b/src/main/java/org/hqu/production_ms/mapper/DepartmentMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..b0e49d2f6c7b574495c3a0d7f87c03da75c30c9d --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/DepartmentMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + department_id, department_name, department_duty, note + + + + + delete from department + where department_id = #{departmentId,jdbcType=VARCHAR} + + + delete from 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 into department + + + department_id, + + + department_name, + + + department_duty, + + + note, + + + + + #{departmentId,jdbcType=VARCHAR}, + + + #{departmentName,jdbcType=VARCHAR}, + + + #{departmentDuty,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update department + + + department_id = #{record.departmentId,jdbcType=VARCHAR}, + + + department_name = #{record.departmentName,jdbcType=VARCHAR}, + + + department_duty = #{record.departmentDuty,jdbcType=VARCHAR}, + + + note = #{record.note,jdbcType=VARCHAR}, + + + + + + + + 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} + + + + + + update department + + + department_name = #{departmentName,jdbcType=VARCHAR}, + + + department_duty = #{departmentDuty,jdbcType=VARCHAR}, + + + note = #{note,jdbcType=VARCHAR}, + + + where department_id = #{departmentId,jdbcType=VARCHAR} + + + update department + set department_name = #{departmentName,jdbcType=VARCHAR}, + department_duty = #{departmentDuty,jdbcType=VARCHAR}, + note = #{note,jdbcType=VARCHAR} + where department_id = #{departmentId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/ECheckMapper.java b/src/main/java/org/hqu/production_ms/mapper/ECheckMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..a155eb2fb2611ffa7a9b3276d647dd997449152d --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ECheckMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/ECheckMapper.xml b/src/main/java/org/hqu/production_ms/mapper/ECheckMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..523427d9a3759f653a75bdfbaa9a5e0d3d5c91c9 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ECheckMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + check_id, equipment_id, emp_id, cdate, result, equipment_failure_id + + + + + delete from e_check + where check_id = #{checkId,jdbcType=VARCHAR} + + + delete from e_check + + + + + + 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 into e_check + + + check_id, + + + equipment_id, + + + emp_id, + + + cdate, + + + result, + + + equipment_failure_id, + + + + + #{checkId,jdbcType=VARCHAR}, + + + #{equipmentId,jdbcType=VARCHAR}, + + + #{empId,jdbcType=VARCHAR}, + + + #{cdate,jdbcType=TIMESTAMP}, + + + #{result,jdbcType=VARCHAR}, + + + #{equipmentFailureId,jdbcType=VARCHAR}, + + + + + + update e_check + + + 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}, + + + + + + + + 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} + + + + + + update e_check + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/EmployeeMapper.java b/src/main/java/org/hqu/production_ms/mapper/EmployeeMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..9d45c7a3a10c9ef5730a2b94b283b3d2bb5f1d70 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EmployeeMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/EmployeeMapper.xml b/src/main/java/org/hqu/production_ms/mapper/EmployeeMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..d76ccb6ecf859857bf71c5de7f2dd6bc701ad957 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EmployeeMapper.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + emp_id, emp_name, sex, id_code, birthday, join_date, status, education, degree, major, + graduate_school, education_form, department_id + + + + + delete from employee + where emp_id = #{empId,jdbcType=VARCHAR} + + + delete from 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 into employee + + + emp_id, + + + emp_name, + + + sex, + + + id_code, + + + birthday, + + + join_date, + + + status, + + + education, + + + degree, + + + major, + + + graduate_school, + + + education_form, + + + department_id, + + + + + #{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}, + + + + + + update employee + + + 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}, + + + + + + + + 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} + + + + + + update employee + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/EquipmentFailureMapper.java b/src/main/java/org/hqu/production_ms/mapper/EquipmentFailureMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..59067f74f93045ed90161f0e203472beee7143f5 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EquipmentFailureMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/EquipmentFailureMapper.xml b/src/main/java/org/hqu/production_ms/mapper/EquipmentFailureMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..97c4b47c79cc4bc3e5cf2f9136f23c798d8233e7 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EquipmentFailureMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + failure_id, equipment_id, reason, failure_date, repair_mode + + + + + delete from equipment_failure + where failure_id = #{failureId,jdbcType=VARCHAR} + + + delete from equipment_failure + + + + + + 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 into equipment_failure + + + failure_id, + + + equipment_id, + + + reason, + + + failure_date, + + + repair_mode, + + + + + #{failureId,jdbcType=VARCHAR}, + + + #{equipmentId,jdbcType=VARCHAR}, + + + #{reason,jdbcType=VARCHAR}, + + + #{failureDate,jdbcType=TIMESTAMP}, + + + #{repairMode,jdbcType=VARCHAR}, + + + + + + update equipment_failure + + + 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}, + + + + + + + + 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} + + + + + + update equipment_failure + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/EquipmentMapper.java b/src/main/java/org/hqu/production_ms/mapper/EquipmentMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..a82d0672472b407d019324ccbe2e724c67c2de05 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EquipmentMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/EquipmentMapper.xml b/src/main/java/org/hqu/production_ms/mapper/EquipmentMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..85ccca47771bb2195a5ff314fd1f71b6ab94fcb7 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EquipmentMapper.xml @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + equipment_id, out_date, price, buy_date, lifetime, status, note, emp_id, types_id + + + + + delete from equipment + where equipment_id = #{equipmentId,jdbcType=VARCHAR} + + + delete from 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 into equipment + + + equipment_id, + + + out_date, + + + price, + + + buy_date, + + + lifetime, + + + status, + + + note, + + + emp_id, + + + types_id, + + + + + #{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}, + + + + + + update equipment + + + 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}, + + + + + + + + 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} + + + + + + update equipment + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/EquipmentTypeMapper.java b/src/main/java/org/hqu/production_ms/mapper/EquipmentTypeMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..ef1614ff3b332b0b24f847a3859a0ca5b754ddf8 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EquipmentTypeMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/EquipmentTypeMapper.xml b/src/main/java/org/hqu/production_ms/mapper/EquipmentTypeMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..10ecf2adf65ef359acbc29b468fed7d721188f7b --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EquipmentTypeMapper.xml @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + type_id, type_name + + + + + delete from equipment_type + where type_id = #{typeId,jdbcType=VARCHAR} + + + delete from equipment_type + + + + + + insert into equipment_type (type_id, type_name) + values (#{typeId,jdbcType=VARCHAR}, #{typeName,jdbcType=VARCHAR}) + + + insert into equipment_type + + + type_id, + + + type_name, + + + + + #{typeId,jdbcType=VARCHAR}, + + + #{typeName,jdbcType=VARCHAR}, + + + + + + update equipment_type + + + type_id = #{record.typeId,jdbcType=VARCHAR}, + + + type_name = #{record.typeName,jdbcType=VARCHAR}, + + + + + + + + update equipment_type + set type_id = #{record.typeId,jdbcType=VARCHAR}, + type_name = #{record.typeName,jdbcType=VARCHAR} + + + + + + update equipment_type + + + type_name = #{typeName,jdbcType=VARCHAR}, + + + where type_id = #{typeId,jdbcType=VARCHAR} + + + update equipment_type + set type_name = #{typeName,jdbcType=VARCHAR} + where type_id = #{typeId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/EquipmentTypesMapper.java b/src/main/java/org/hqu/production_ms/mapper/EquipmentTypesMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..5276ae405ff3a5de44eb70e552a488bb41553982 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EquipmentTypesMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/EquipmentTypesMapper.xml b/src/main/java/org/hqu/production_ms/mapper/EquipmentTypesMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..76e9ef639754e0e0fc9a7875a7b9b95c9c47cd05 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/EquipmentTypesMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + types_id, types_name, types_standard, types_version, types_supplier, types_provider, + types_period, types_count + + + + + delete from equipment_types + where types_id = #{typesId,jdbcType=VARCHAR} + + + delete from equipment_types + + + + + + 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 into equipment_types + + + types_id, + + + types_name, + + + types_standard, + + + types_version, + + + types_supplier, + + + types_provider, + + + types_period, + + + types_count, + + + + + #{typesId,jdbcType=VARCHAR}, + + + #{typesName,jdbcType=VARCHAR}, + + + #{typesStandard,jdbcType=VARCHAR}, + + + #{typesVersion,jdbcType=VARCHAR}, + + + #{typesSupplier,jdbcType=VARCHAR}, + + + #{typesProvider,jdbcType=VARCHAR}, + + + #{typesPeriod,jdbcType=TIMESTAMP}, + + + #{typesCount,jdbcType=INTEGER}, + + + + + + update equipment_types + + + 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}, + + + + + + + + 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} + + + + + + update equipment_types + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/FinalCountCheckMapper.java b/src/main/java/org/hqu/production_ms/mapper/FinalCountCheckMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..6d95af49512b467d0ce957e60b6d882568359175 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/FinalCountCheckMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/FinalCountCheckMapper.xml b/src/main/java/org/hqu/production_ms/mapper/FinalCountCheckMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..23c6217ef4ffdb5bc5c328c56094bf1dde0578d5 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/FinalCountCheckMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + f_count_check_id, order_id, check_item, sample, check_number, unqualify, qualify, + cdate, measure_data, emp_id, result, note + + + + + delete from final_count_check + where f_count_check_id = #{fCountCheckId,jdbcType=VARCHAR} + + + delete from final_count_check + + + + + + 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 into final_count_check + + + f_count_check_id, + + + order_id, + + + check_item, + + + sample, + + + check_number, + + + unqualify, + + + qualify, + + + cdate, + + + measure_data, + + + emp_id, + + + result, + + + note, + + + + + #{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}, + + + + + + update final_count_check + + + 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}, + + + + + + + + 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} + + + + + + update final_count_check + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/FinalMeasuretCheckMapper.java b/src/main/java/org/hqu/production_ms/mapper/FinalMeasuretCheckMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..9b18696f10fef40d39e811323deb3943cb4dd915 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/FinalMeasuretCheckMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/FinalMeasuretCheckMapper.xml b/src/main/java/org/hqu/production_ms/mapper/FinalMeasuretCheckMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..82993c056fd582e9e45fc2cfb14d3ea609ff7d8e --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/FinalMeasuretCheckMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + f_measure_check_id, order_id, check_item, cdate, measure_data, emp_id, result, note + + + + + delete from final_measuret_check + where f_measure_check_id = #{fMeasureCheckId,jdbcType=VARCHAR} + + + delete from final_measuret_check + + + + + + 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 into final_measuret_check + + + f_measure_check_id, + + + order_id, + + + check_item, + + + cdate, + + + measure_data, + + + emp_id, + + + result, + + + note, + + + + + #{fMeasureCheckId,jdbcType=VARCHAR}, + + + #{orderId,jdbcType=VARCHAR}, + + + #{checkItem,jdbcType=VARCHAR}, + + + #{cdate,jdbcType=TIMESTAMP}, + + + #{measureData,jdbcType=VARCHAR}, + + + #{empId,jdbcType=VARCHAR}, + + + #{result,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update final_measuret_check + + + 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}, + + + + + + + + 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} + + + + + + update final_measuret_check + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/ManufactureMapper.java b/src/main/java/org/hqu/production_ms/mapper/ManufactureMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..2d93e10cb91a7d90a65ef4b72c8faaa0b980219a --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ManufactureMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/ManufactureMapper.xml b/src/main/java/org/hqu/production_ms/mapper/ManufactureMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..0c3acba8550175606e79eaf5b2f9b4a8b726b946 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ManufactureMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + manufacture_sn, order_id, technology_id, launch_quantity, begin_date, end_date + + + + + delete from manufacture + where manufacture_sn = #{manufactureSn,jdbcType=VARCHAR} + + + delete from 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 into manufacture + + + manufacture_sn, + + + order_id, + + + technology_id, + + + launch_quantity, + + + begin_date, + + + end_date, + + + + + #{manufactureSn,jdbcType=VARCHAR}, + + + #{orderId,jdbcType=VARCHAR}, + + + #{technologyId,jdbcType=VARCHAR}, + + + #{launchQuantity,jdbcType=INTEGER}, + + + #{beginDate,jdbcType=TIMESTAMP}, + + + #{endDate,jdbcType=TIMESTAMP}, + + + + + + update manufacture + + + 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}, + + + + + + + + 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} + + + + + + update manufacture + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/MaterialConsumeMapper.java b/src/main/java/org/hqu/production_ms/mapper/MaterialConsumeMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..63166baac013c19e351a3426d96121f0805ed4c8 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/MaterialConsumeMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/MaterialConsumeMapper.xml b/src/main/java/org/hqu/production_ms/mapper/MaterialConsumeMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..5bca15c403f72953bd5b2c0c5ca82edc70c5e161 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/MaterialConsumeMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + consume_id, material_id, consume_amount, consume_date, sender, receiver, note + + + + + delete from material_consume + where consume_id = #{consumeId,jdbcType=VARCHAR} + + + delete from material_consume + + + + + + 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 into material_consume + + + consume_id, + + + material_id, + + + consume_amount, + + + consume_date, + + + sender, + + + receiver, + + + note, + + + + + #{consumeId,jdbcType=VARCHAR}, + + + #{materialId,jdbcType=VARCHAR}, + + + #{consumeAmount,jdbcType=INTEGER}, + + + #{consumeDate,jdbcType=TIMESTAMP}, + + + #{sender,jdbcType=VARCHAR}, + + + #{receiver,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update material_consume + + + 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}, + + + + + + + + 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} + + + + + + update material_consume + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/MaterialMapper.java b/src/main/java/org/hqu/production_ms/mapper/MaterialMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..e06e70c3aa0b53046d0e0f91a14fb52aaeec9961 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/MaterialMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/MaterialMapper.xml b/src/main/java/org/hqu/production_ms/mapper/MaterialMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..5c1ea2cfdeac35051832295fa07532a4b7e16f57 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/MaterialMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + material_id, work_id, material_type, status, remaining, note + + + + + delete from material + where material_id = #{materialId,jdbcType=VARCHAR} + + + delete from 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 into material + + + material_id, + + + work_id, + + + material_type, + + + status, + + + remaining, + + + note, + + + + + #{materialId,jdbcType=VARCHAR}, + + + #{workId,jdbcType=VARCHAR}, + + + #{materialType,jdbcType=VARCHAR}, + + + #{status,jdbcType=VARCHAR}, + + + #{remaining,jdbcType=INTEGER}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update material + + + 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}, + + + + + + + + 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} + + + + + + update material + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/MaterialReceiveMapper.java b/src/main/java/org/hqu/production_ms/mapper/MaterialReceiveMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..39dec7bbe3d09512990e41dbb48d92a0ae2761c2 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/MaterialReceiveMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/MaterialReceiveMapper.xml b/src/main/java/org/hqu/production_ms/mapper/MaterialReceiveMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..e4fc0c37d8180b9aed106f34f8ee596c86fd39eb --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/MaterialReceiveMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + receive_id, material_id, ammount, receive_date, sender, emp_id, note + + + + + delete from material_receive + where receive_id = #{receiveId,jdbcType=VARCHAR} + + + delete from material_receive + + + + + + 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 into material_receive + + + receive_id, + + + material_id, + + + ammount, + + + receive_date, + + + sender, + + + emp_id, + + + note, + + + + + #{receiveId,jdbcType=VARCHAR}, + + + #{materialId,jdbcType=VARCHAR}, + + + #{ammount,jdbcType=INTEGER}, + + + #{receiveDate,jdbcType=TIMESTAMP}, + + + #{sender,jdbcType=VARCHAR}, + + + #{empId,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update material_receive + + + 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}, + + + + + + + + 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} + + + + + + update material_receive + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/ProcessCountCheckMapper.java b/src/main/java/org/hqu/production_ms/mapper/ProcessCountCheckMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..1b68d9089141f7420e49f60f913f049220aedf6e --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ProcessCountCheckMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/ProcessCountCheckMapper.xml b/src/main/java/org/hqu/production_ms/mapper/ProcessCountCheckMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..4a89a1c0f072d32c932824ef7c29738f55fa4e2f --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ProcessCountCheckMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + p_count_check_id, process_id, check_item, sample, check_number, unqualify, qualify, + cdate, measure_data, emp_id, result, note + + + + + delete from process_count_check + where p_count_check_id = #{pCountCheckId,jdbcType=VARCHAR} + + + delete from process_count_check + + + + + + 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 into process_count_check + + + p_count_check_id, + + + process_id, + + + check_item, + + + sample, + + + check_number, + + + unqualify, + + + qualify, + + + cdate, + + + measure_data, + + + emp_id, + + + result, + + + note, + + + + + #{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}, + + + + + + update process_count_check + + + 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}, + + + + + + + + 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} + + + + + + update process_count_check + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/ProcessMapper.java b/src/main/java/org/hqu/production_ms/mapper/ProcessMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..db1dc18f63b0e3388b734045d0ab27d4df8d5a6f --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ProcessMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/ProcessMapper.xml b/src/main/java/org/hqu/production_ms/mapper/ProcessMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..a3c7479ec45a252eae69de7fae673fbdd8667dc5 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ProcessMapper.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + process_id, technology_plan_id, sequence, quota + + + + + delete from process + where process_id = #{processId,jdbcType=VARCHAR} + + + delete from 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 into process + + + process_id, + + + technology_plan_id, + + + sequence, + + + quota, + + + + + #{processId,jdbcType=VARCHAR}, + + + #{technologyPlanId,jdbcType=VARCHAR}, + + + #{sequence,jdbcType=INTEGER}, + + + #{quota,jdbcType=INTEGER}, + + + + + + update process + + + process_id = #{record.processId,jdbcType=VARCHAR}, + + + technology_plan_id = #{record.technologyPlanId,jdbcType=VARCHAR}, + + + sequence = #{record.sequence,jdbcType=INTEGER}, + + + quota = #{record.quota,jdbcType=INTEGER}, + + + + + + + + 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} + + + + + + update process + + + technology_plan_id = #{technologyPlanId,jdbcType=VARCHAR}, + + + sequence = #{sequence,jdbcType=INTEGER}, + + + quota = #{quota,jdbcType=INTEGER}, + + + where process_id = #{processId,jdbcType=VARCHAR} + + + update process + set technology_plan_id = #{technologyPlanId,jdbcType=VARCHAR}, + sequence = #{sequence,jdbcType=INTEGER}, + quota = #{quota,jdbcType=INTEGER} + where process_id = #{processId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/ProcessMeasureCheckMapper.java b/src/main/java/org/hqu/production_ms/mapper/ProcessMeasureCheckMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..67ffebdcd9b28ada8bcd90345664f7a94d09ad09 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ProcessMeasureCheckMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/ProcessMeasureCheckMapper.xml b/src/main/java/org/hqu/production_ms/mapper/ProcessMeasureCheckMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..237555f44bb0eb10e0d29a5f89288922963cde95 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ProcessMeasureCheckMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + p_measure_check_id, process_id, check_item, cdate, measure_data, emp_id, result, + note + + + + + delete from process_measure_check + where p_measure_check_id = #{pMeasureCheckId,jdbcType=VARCHAR} + + + delete from process_measure_check + + + + + + 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 into process_measure_check + + + p_measure_check_id, + + + process_id, + + + check_item, + + + cdate, + + + measure_data, + + + emp_id, + + + result, + + + note, + + + + + #{pMeasureCheckId,jdbcType=VARCHAR}, + + + #{processId,jdbcType=VARCHAR}, + + + #{checkItem,jdbcType=VARCHAR}, + + + #{cdate,jdbcType=TIMESTAMP}, + + + #{measureData,jdbcType=VARCHAR}, + + + #{empId,jdbcType=VARCHAR}, + + + #{result,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update process_measure_check + + + 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}, + + + + + + + + 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} + + + + + + update process_measure_check + + + 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 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} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/ProductMapper.java b/src/main/java/org/hqu/production_ms/mapper/ProductMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..202ddb3331e30e15de601440519e69e262cd1511 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ProductMapper.java @@ -0,0 +1,36 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/ProductMapper.xml b/src/main/java/org/hqu/production_ms/mapper/ProductMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..29434c2c02d38b1af9c02236e63b6371517ad1a6 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/ProductMapper.xml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + DELETE + FROM + product + WHERE + product_id IN + + #{id} + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + product_id, product_name, product_type, drawing + + + + + delete from product + where product_id = #{productId,jdbcType=VARCHAR} + + + delete from 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 into product + + + product_id, + + + product_name, + + + product_type, + + + drawing, + + + + + #{productId,jdbcType=VARCHAR}, + + + #{productName,jdbcType=VARCHAR}, + + + #{productType,jdbcType=VARCHAR}, + + + #{drawing,jdbcType=VARCHAR}, + + + + + + update product + + + product_id = #{record.productId,jdbcType=VARCHAR}, + + + product_name = #{record.productName,jdbcType=VARCHAR}, + + + product_type = #{record.productType,jdbcType=VARCHAR}, + + + drawing = #{record.drawing,jdbcType=VARCHAR}, + + + + + + + + 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} + + + + + + update product + + + product_name = #{productName,jdbcType=VARCHAR}, + + + product_type = #{productType,jdbcType=VARCHAR}, + + + drawing = #{drawing,jdbcType=VARCHAR}, + + + where product_id = #{productId,jdbcType=VARCHAR} + + + update product + set product_name = #{productName,jdbcType=VARCHAR}, + product_type = #{productType,jdbcType=VARCHAR}, + drawing = #{drawing,jdbcType=VARCHAR} + where product_id = #{productId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/RepairMapper.java b/src/main/java/org/hqu/production_ms/mapper/RepairMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..4a02bd56726a6ea9313414e5279580123ddfca0a --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/RepairMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/RepairMapper.xml b/src/main/java/org/hqu/production_ms/mapper/RepairMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..42f04ea7204ccf8d51d8a002769d2143b94e8e35 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/RepairMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + repair_id, failure_id, repair_date, emp_id, repair_cost, repair_result, note + + + + + delete from repair + where repair_id = #{repairId,jdbcType=VARCHAR} + + + delete from repair + + + + + + insert into repair (repair_id, failure_id, repair_date, + emp_id, repair_cost, repair_result, + note) + values (#{repairId,jdbcType=VARCHAR}, #{failureId,jdbcType=VARCHAR}, #{repairDate,jdbcType=TIMESTAMP}, + #{empId,jdbcType=VARCHAR}, #{repairCost,jdbcType=DECIMAL}, #{repairResult,jdbcType=VARCHAR}, + #{note,jdbcType=VARCHAR}) + + + insert into repair + + + repair_id, + + + failure_id, + + + repair_date, + + + emp_id, + + + repair_cost, + + + repair_result, + + + note, + + + + + #{repairId,jdbcType=VARCHAR}, + + + #{failureId,jdbcType=VARCHAR}, + + + #{repairDate,jdbcType=TIMESTAMP}, + + + #{empId,jdbcType=VARCHAR}, + + + #{repairCost,jdbcType=DECIMAL}, + + + #{repairResult,jdbcType=VARCHAR}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update repair + + + repair_id = #{record.repairId,jdbcType=VARCHAR}, + + + failure_id = #{record.failureId,jdbcType=VARCHAR}, + + + repair_date = #{record.repairDate,jdbcType=TIMESTAMP}, + + + emp_id = #{record.empId,jdbcType=VARCHAR}, + + + repair_cost = #{record.repairCost,jdbcType=DECIMAL}, + + + repair_result = #{record.repairResult,jdbcType=VARCHAR}, + + + note = #{record.note,jdbcType=VARCHAR}, + + + + + + + + update repair + set repair_id = #{record.repairId,jdbcType=VARCHAR}, + failure_id = #{record.failureId,jdbcType=VARCHAR}, + repair_date = #{record.repairDate,jdbcType=TIMESTAMP}, + emp_id = #{record.empId,jdbcType=VARCHAR}, + repair_cost = #{record.repairCost,jdbcType=DECIMAL}, + repair_result = #{record.repairResult,jdbcType=VARCHAR}, + note = #{record.note,jdbcType=VARCHAR} + + + + + + update repair + + + failure_id = #{failureId,jdbcType=VARCHAR}, + + + repair_date = #{repairDate,jdbcType=TIMESTAMP}, + + + emp_id = #{empId,jdbcType=VARCHAR}, + + + repair_cost = #{repairCost,jdbcType=DECIMAL}, + + + repair_result = #{repairResult,jdbcType=VARCHAR}, + + + note = #{note,jdbcType=VARCHAR}, + + + where repair_id = #{repairId,jdbcType=VARCHAR} + + + update repair + set failure_id = #{failureId,jdbcType=VARCHAR}, + repair_date = #{repairDate,jdbcType=TIMESTAMP}, + emp_id = #{empId,jdbcType=VARCHAR}, + repair_cost = #{repairCost,jdbcType=DECIMAL}, + repair_result = #{repairResult,jdbcType=VARCHAR}, + note = #{note,jdbcType=VARCHAR} + where repair_id = #{repairId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/TaskMapper.java b/src/main/java/org/hqu/production_ms/mapper/TaskMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..7615641c221fdf6ea21a15cdb0d74f2e2ce56edb --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/TaskMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/TaskMapper.xml b/src/main/java/org/hqu/production_ms/mapper/TaskMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..5ccd1b5afd56afa909c1f735414b77756168f977 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/TaskMapper.xml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + task_id, manufacture_id, work_id, task_quantity, working_hours + + + + + delete from task + where task_id = #{taskId,jdbcType=VARCHAR} + + + delete from task + + + + + + insert into task (task_id, manufacture_id, work_id, + task_quantity, working_hours) + values (#{taskId,jdbcType=VARCHAR}, #{manufactureId,jdbcType=VARCHAR}, #{workId,jdbcType=VARCHAR}, + #{taskQuantity,jdbcType=INTEGER}, #{workingHours,jdbcType=DECIMAL}) + + + insert into task + + + task_id, + + + manufacture_id, + + + work_id, + + + task_quantity, + + + working_hours, + + + + + #{taskId,jdbcType=VARCHAR}, + + + #{manufactureId,jdbcType=VARCHAR}, + + + #{workId,jdbcType=VARCHAR}, + + + #{taskQuantity,jdbcType=INTEGER}, + + + #{workingHours,jdbcType=DECIMAL}, + + + + + + update task + + + task_id = #{record.taskId,jdbcType=VARCHAR}, + + + manufacture_id = #{record.manufactureId,jdbcType=VARCHAR}, + + + work_id = #{record.workId,jdbcType=VARCHAR}, + + + task_quantity = #{record.taskQuantity,jdbcType=INTEGER}, + + + working_hours = #{record.workingHours,jdbcType=DECIMAL}, + + + + + + + + update task + set task_id = #{record.taskId,jdbcType=VARCHAR}, + manufacture_id = #{record.manufactureId,jdbcType=VARCHAR}, + work_id = #{record.workId,jdbcType=VARCHAR}, + task_quantity = #{record.taskQuantity,jdbcType=INTEGER}, + working_hours = #{record.workingHours,jdbcType=DECIMAL} + + + + + + update task + + + manufacture_id = #{manufactureId,jdbcType=VARCHAR}, + + + work_id = #{workId,jdbcType=VARCHAR}, + + + task_quantity = #{taskQuantity,jdbcType=INTEGER}, + + + working_hours = #{workingHours,jdbcType=DECIMAL}, + + + where task_id = #{taskId,jdbcType=VARCHAR} + + + update task + set manufacture_id = #{manufactureId,jdbcType=VARCHAR}, + work_id = #{workId,jdbcType=VARCHAR}, + task_quantity = #{taskQuantity,jdbcType=INTEGER}, + working_hours = #{workingHours,jdbcType=DECIMAL} + where task_id = #{taskId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/TechnologyMapper.java b/src/main/java/org/hqu/production_ms/mapper/TechnologyMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..6fc11b6cfa0b786c2cedb3cfa2214f66a95e51e3 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/TechnologyMapper.java @@ -0,0 +1,36 @@ +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 selectByExampleWithBLOBs(TechnologyExample example); + + List 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/TechnologyMapper.xml b/src/main/java/org/hqu/production_ms/mapper/TechnologyMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..9d029607241728efe3a041609a9574ab814a3faa --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/TechnologyMapper.xml @@ -0,0 +1,324 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + technology_id, price, vital_process_period, standard_capacity, overtime_standard_capacity, + overtime_overfulfil_capacity, double_capacity, overfulfil_capacity + + + technology_name + + + + + + delete from technology + where technology_id = #{technologyId,jdbcType=VARCHAR} + + + delete from technology + + + + + + insert into technology (technology_id, price, vital_process_period, + standard_capacity, overtime_standard_capacity, + overtime_overfulfil_capacity, double_capacity, + overfulfil_capacity, technology_name) + values (#{technologyId,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{vitalProcessPeriod,jdbcType=VARCHAR}, + #{standardCapacity,jdbcType=INTEGER}, #{overtimeStandardCapacity,jdbcType=INTEGER}, + #{overtimeOverfulfilCapacity,jdbcType=INTEGER}, #{doubleCapacity,jdbcType=INTEGER}, + #{overfulfilCapacity,jdbcType=INTEGER}, #{technologyName,jdbcType=VARBINARY}) + + + insert into technology + + + technology_id, + + + price, + + + vital_process_period, + + + standard_capacity, + + + overtime_standard_capacity, + + + overtime_overfulfil_capacity, + + + double_capacity, + + + overfulfil_capacity, + + + technology_name, + + + + + #{technologyId,jdbcType=VARCHAR}, + + + #{price,jdbcType=DECIMAL}, + + + #{vitalProcessPeriod,jdbcType=VARCHAR}, + + + #{standardCapacity,jdbcType=INTEGER}, + + + #{overtimeStandardCapacity,jdbcType=INTEGER}, + + + #{overtimeOverfulfilCapacity,jdbcType=INTEGER}, + + + #{doubleCapacity,jdbcType=INTEGER}, + + + #{overfulfilCapacity,jdbcType=INTEGER}, + + + #{technologyName,jdbcType=VARBINARY}, + + + + + + update technology + + + technology_id = #{record.technologyId,jdbcType=VARCHAR}, + + + price = #{record.price,jdbcType=DECIMAL}, + + + vital_process_period = #{record.vitalProcessPeriod,jdbcType=VARCHAR}, + + + standard_capacity = #{record.standardCapacity,jdbcType=INTEGER}, + + + overtime_standard_capacity = #{record.overtimeStandardCapacity,jdbcType=INTEGER}, + + + overtime_overfulfil_capacity = #{record.overtimeOverfulfilCapacity,jdbcType=INTEGER}, + + + double_capacity = #{record.doubleCapacity,jdbcType=INTEGER}, + + + overfulfil_capacity = #{record.overfulfilCapacity,jdbcType=INTEGER}, + + + technology_name = #{record.technologyName,jdbcType=VARBINARY}, + + + + + + + + update technology + set technology_id = #{record.technologyId,jdbcType=VARCHAR}, + price = #{record.price,jdbcType=DECIMAL}, + vital_process_period = #{record.vitalProcessPeriod,jdbcType=VARCHAR}, + standard_capacity = #{record.standardCapacity,jdbcType=INTEGER}, + overtime_standard_capacity = #{record.overtimeStandardCapacity,jdbcType=INTEGER}, + overtime_overfulfil_capacity = #{record.overtimeOverfulfilCapacity,jdbcType=INTEGER}, + double_capacity = #{record.doubleCapacity,jdbcType=INTEGER}, + overfulfil_capacity = #{record.overfulfilCapacity,jdbcType=INTEGER}, + technology_name = #{record.technologyName,jdbcType=VARBINARY} + + + + + + update technology + set technology_id = #{record.technologyId,jdbcType=VARCHAR}, + price = #{record.price,jdbcType=DECIMAL}, + vital_process_period = #{record.vitalProcessPeriod,jdbcType=VARCHAR}, + standard_capacity = #{record.standardCapacity,jdbcType=INTEGER}, + overtime_standard_capacity = #{record.overtimeStandardCapacity,jdbcType=INTEGER}, + overtime_overfulfil_capacity = #{record.overtimeOverfulfilCapacity,jdbcType=INTEGER}, + double_capacity = #{record.doubleCapacity,jdbcType=INTEGER}, + overfulfil_capacity = #{record.overfulfilCapacity,jdbcType=INTEGER} + + + + + + update technology + + + price = #{price,jdbcType=DECIMAL}, + + + vital_process_period = #{vitalProcessPeriod,jdbcType=VARCHAR}, + + + standard_capacity = #{standardCapacity,jdbcType=INTEGER}, + + + overtime_standard_capacity = #{overtimeStandardCapacity,jdbcType=INTEGER}, + + + overtime_overfulfil_capacity = #{overtimeOverfulfilCapacity,jdbcType=INTEGER}, + + + double_capacity = #{doubleCapacity,jdbcType=INTEGER}, + + + overfulfil_capacity = #{overfulfilCapacity,jdbcType=INTEGER}, + + + technology_name = #{technologyName,jdbcType=VARBINARY}, + + + where technology_id = #{technologyId,jdbcType=VARCHAR} + + + update technology + set price = #{price,jdbcType=DECIMAL}, + vital_process_period = #{vitalProcessPeriod,jdbcType=VARCHAR}, + standard_capacity = #{standardCapacity,jdbcType=INTEGER}, + overtime_standard_capacity = #{overtimeStandardCapacity,jdbcType=INTEGER}, + overtime_overfulfil_capacity = #{overtimeOverfulfilCapacity,jdbcType=INTEGER}, + double_capacity = #{doubleCapacity,jdbcType=INTEGER}, + overfulfil_capacity = #{overfulfilCapacity,jdbcType=INTEGER}, + technology_name = #{technologyName,jdbcType=VARBINARY} + where technology_id = #{technologyId,jdbcType=VARCHAR} + + + update technology + set price = #{price,jdbcType=DECIMAL}, + vital_process_period = #{vitalProcessPeriod,jdbcType=VARCHAR}, + standard_capacity = #{standardCapacity,jdbcType=INTEGER}, + overtime_standard_capacity = #{overtimeStandardCapacity,jdbcType=INTEGER}, + overtime_overfulfil_capacity = #{overtimeOverfulfilCapacity,jdbcType=INTEGER}, + double_capacity = #{doubleCapacity,jdbcType=INTEGER}, + overfulfil_capacity = #{overfulfilCapacity,jdbcType=INTEGER} + where technology_id = #{technologyId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/TechnologyPlanMapper.java b/src/main/java/org/hqu/production_ms/mapper/TechnologyPlanMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..ffb569f4f260a92174d16a78e61db6aa8222a8b5 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/TechnologyPlanMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/TechnologyPlanMapper.xml b/src/main/java/org/hqu/production_ms/mapper/TechnologyPlanMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..e6e28a1f10f4b16a9268cd25851e107fc7324d99 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/TechnologyPlanMapper.xml @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + technology_plan_id, technology_id, batch_amount, start_plan, end_plan, commit_plan, + technology_plan_start, technology_plan_end + + + + + delete from technology_plan + where technology_plan_id = #{technologyPlanId,jdbcType=VARCHAR} + + + delete from technology_plan + + + + + + insert into technology_plan (technology_plan_id, technology_id, batch_amount, + start_plan, end_plan, commit_plan, + technology_plan_start, technology_plan_end + ) + values (#{technologyPlanId,jdbcType=VARCHAR}, #{technologyId,jdbcType=VARCHAR}, #{batchAmount,jdbcType=INTEGER}, + #{startPlan,jdbcType=TIMESTAMP}, #{endPlan,jdbcType=TIMESTAMP}, #{commitPlan,jdbcType=TIMESTAMP}, + #{technologyPlanStart,jdbcType=TIMESTAMP}, #{technologyPlanEnd,jdbcType=TIMESTAMP} + ) + + + insert into technology_plan + + + technology_plan_id, + + + technology_id, + + + batch_amount, + + + start_plan, + + + end_plan, + + + commit_plan, + + + technology_plan_start, + + + technology_plan_end, + + + + + #{technologyPlanId,jdbcType=VARCHAR}, + + + #{technologyId,jdbcType=VARCHAR}, + + + #{batchAmount,jdbcType=INTEGER}, + + + #{startPlan,jdbcType=TIMESTAMP}, + + + #{endPlan,jdbcType=TIMESTAMP}, + + + #{commitPlan,jdbcType=TIMESTAMP}, + + + #{technologyPlanStart,jdbcType=TIMESTAMP}, + + + #{technologyPlanEnd,jdbcType=TIMESTAMP}, + + + + + + update technology_plan + + + technology_plan_id = #{record.technologyPlanId,jdbcType=VARCHAR}, + + + technology_id = #{record.technologyId,jdbcType=VARCHAR}, + + + batch_amount = #{record.batchAmount,jdbcType=INTEGER}, + + + start_plan = #{record.startPlan,jdbcType=TIMESTAMP}, + + + end_plan = #{record.endPlan,jdbcType=TIMESTAMP}, + + + commit_plan = #{record.commitPlan,jdbcType=TIMESTAMP}, + + + technology_plan_start = #{record.technologyPlanStart,jdbcType=TIMESTAMP}, + + + technology_plan_end = #{record.technologyPlanEnd,jdbcType=TIMESTAMP}, + + + + + + + + update technology_plan + set technology_plan_id = #{record.technologyPlanId,jdbcType=VARCHAR}, + technology_id = #{record.technologyId,jdbcType=VARCHAR}, + batch_amount = #{record.batchAmount,jdbcType=INTEGER}, + start_plan = #{record.startPlan,jdbcType=TIMESTAMP}, + end_plan = #{record.endPlan,jdbcType=TIMESTAMP}, + commit_plan = #{record.commitPlan,jdbcType=TIMESTAMP}, + technology_plan_start = #{record.technologyPlanStart,jdbcType=TIMESTAMP}, + technology_plan_end = #{record.technologyPlanEnd,jdbcType=TIMESTAMP} + + + + + + update technology_plan + + + technology_id = #{technologyId,jdbcType=VARCHAR}, + + + batch_amount = #{batchAmount,jdbcType=INTEGER}, + + + start_plan = #{startPlan,jdbcType=TIMESTAMP}, + + + end_plan = #{endPlan,jdbcType=TIMESTAMP}, + + + commit_plan = #{commitPlan,jdbcType=TIMESTAMP}, + + + technology_plan_start = #{technologyPlanStart,jdbcType=TIMESTAMP}, + + + technology_plan_end = #{technologyPlanEnd,jdbcType=TIMESTAMP}, + + + where technology_plan_id = #{technologyPlanId,jdbcType=VARCHAR} + + + update technology_plan + set technology_id = #{technologyId,jdbcType=VARCHAR}, + batch_amount = #{batchAmount,jdbcType=INTEGER}, + start_plan = #{startPlan,jdbcType=TIMESTAMP}, + end_plan = #{endPlan,jdbcType=TIMESTAMP}, + commit_plan = #{commitPlan,jdbcType=TIMESTAMP}, + technology_plan_start = #{technologyPlanStart,jdbcType=TIMESTAMP}, + technology_plan_end = #{technologyPlanEnd,jdbcType=TIMESTAMP} + where technology_plan_id = #{technologyPlanId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/TechnologyRequirementMapper.java b/src/main/java/org/hqu/production_ms/mapper/TechnologyRequirementMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..8cfef174135b0195f4bf4125d51e117d3813db5e --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/TechnologyRequirementMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/TechnologyRequirementMapper.xml b/src/main/java/org/hqu/production_ms/mapper/TechnologyRequirementMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..57ff60cee572541b3dbacde79079026b0c1992bc --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/TechnologyRequirementMapper.xml @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + technology_requirement_id, technology_id, requirement, add_time, revise_time + + + + + delete from technology_requirement + where technology_requirement_id = #{technologyRequirementId,jdbcType=VARCHAR} + + + delete from technology_requirement + + + + + + insert into technology_requirement (technology_requirement_id, technology_id, + requirement, add_time, revise_time + ) + values (#{technologyRequirementId,jdbcType=VARCHAR}, #{technologyId,jdbcType=VARCHAR}, + #{requirement,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP}, #{reviseTime,jdbcType=TIMESTAMP} + ) + + + insert into technology_requirement + + + technology_requirement_id, + + + technology_id, + + + requirement, + + + add_time, + + + revise_time, + + + + + #{technologyRequirementId,jdbcType=VARCHAR}, + + + #{technologyId,jdbcType=VARCHAR}, + + + #{requirement,jdbcType=VARCHAR}, + + + #{addTime,jdbcType=TIMESTAMP}, + + + #{reviseTime,jdbcType=TIMESTAMP}, + + + + + + update technology_requirement + + + technology_requirement_id = #{record.technologyRequirementId,jdbcType=VARCHAR}, + + + technology_id = #{record.technologyId,jdbcType=VARCHAR}, + + + requirement = #{record.requirement,jdbcType=VARCHAR}, + + + add_time = #{record.addTime,jdbcType=TIMESTAMP}, + + + revise_time = #{record.reviseTime,jdbcType=TIMESTAMP}, + + + + + + + + update technology_requirement + set technology_requirement_id = #{record.technologyRequirementId,jdbcType=VARCHAR}, + technology_id = #{record.technologyId,jdbcType=VARCHAR}, + requirement = #{record.requirement,jdbcType=VARCHAR}, + add_time = #{record.addTime,jdbcType=TIMESTAMP}, + revise_time = #{record.reviseTime,jdbcType=TIMESTAMP} + + + + + + update technology_requirement + + + technology_id = #{technologyId,jdbcType=VARCHAR}, + + + requirement = #{requirement,jdbcType=VARCHAR}, + + + add_time = #{addTime,jdbcType=TIMESTAMP}, + + + revise_time = #{reviseTime,jdbcType=TIMESTAMP}, + + + where technology_requirement_id = #{technologyRequirementId,jdbcType=VARCHAR} + + + update technology_requirement + set technology_id = #{technologyId,jdbcType=VARCHAR}, + requirement = #{requirement,jdbcType=VARCHAR}, + add_time = #{addTime,jdbcType=TIMESTAMP}, + revise_time = #{reviseTime,jdbcType=TIMESTAMP} + where technology_requirement_id = #{technologyRequirementId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/UnqualifyApplyMapper.java b/src/main/java/org/hqu/production_ms/mapper/UnqualifyApplyMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..8569df437b0c39b350cce32d400044a9197944c7 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/UnqualifyApplyMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/UnqualifyApplyMapper.xml b/src/main/java/org/hqu/production_ms/mapper/UnqualifyApplyMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..25fc0d87e60540378db0363b7d905a4c2baf2cdd --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/UnqualifyApplyMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + unqualify_apply_id, product_id, unqualify_item, unqualify_count, equipment_id, assembly_date, + emp_id, apply_date, note + + + + + delete from unqualify_apply + where unqualify_apply_id = #{unqualifyApplyId,jdbcType=VARCHAR} + + + delete from unqualify_apply + + + + + + insert into unqualify_apply (unqualify_apply_id, product_id, unqualify_item, + unqualify_count, equipment_id, assembly_date, + emp_id, apply_date, note + ) + values (#{unqualifyApplyId,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{unqualifyItem,jdbcType=VARCHAR}, + #{unqualifyCount,jdbcType=INTEGER}, #{equipmentId,jdbcType=VARCHAR}, #{assemblyDate,jdbcType=TIMESTAMP}, + #{empId,jdbcType=VARCHAR}, #{applyDate,jdbcType=TIMESTAMP}, #{note,jdbcType=VARCHAR} + ) + + + insert into unqualify_apply + + + unqualify_apply_id, + + + product_id, + + + unqualify_item, + + + unqualify_count, + + + equipment_id, + + + assembly_date, + + + emp_id, + + + apply_date, + + + note, + + + + + #{unqualifyApplyId,jdbcType=VARCHAR}, + + + #{productId,jdbcType=VARCHAR}, + + + #{unqualifyItem,jdbcType=VARCHAR}, + + + #{unqualifyCount,jdbcType=INTEGER}, + + + #{equipmentId,jdbcType=VARCHAR}, + + + #{assemblyDate,jdbcType=TIMESTAMP}, + + + #{empId,jdbcType=VARCHAR}, + + + #{applyDate,jdbcType=TIMESTAMP}, + + + #{note,jdbcType=VARCHAR}, + + + + + + update unqualify_apply + + + unqualify_apply_id = #{record.unqualifyApplyId,jdbcType=VARCHAR}, + + + product_id = #{record.productId,jdbcType=VARCHAR}, + + + unqualify_item = #{record.unqualifyItem,jdbcType=VARCHAR}, + + + unqualify_count = #{record.unqualifyCount,jdbcType=INTEGER}, + + + equipment_id = #{record.equipmentId,jdbcType=VARCHAR}, + + + assembly_date = #{record.assemblyDate,jdbcType=TIMESTAMP}, + + + emp_id = #{record.empId,jdbcType=VARCHAR}, + + + apply_date = #{record.applyDate,jdbcType=TIMESTAMP}, + + + note = #{record.note,jdbcType=VARCHAR}, + + + + + + + + update unqualify_apply + set unqualify_apply_id = #{record.unqualifyApplyId,jdbcType=VARCHAR}, + product_id = #{record.productId,jdbcType=VARCHAR}, + unqualify_item = #{record.unqualifyItem,jdbcType=VARCHAR}, + unqualify_count = #{record.unqualifyCount,jdbcType=INTEGER}, + equipment_id = #{record.equipmentId,jdbcType=VARCHAR}, + assembly_date = #{record.assemblyDate,jdbcType=TIMESTAMP}, + emp_id = #{record.empId,jdbcType=VARCHAR}, + apply_date = #{record.applyDate,jdbcType=TIMESTAMP}, + note = #{record.note,jdbcType=VARCHAR} + + + + + + update unqualify_apply + + + product_id = #{productId,jdbcType=VARCHAR}, + + + unqualify_item = #{unqualifyItem,jdbcType=VARCHAR}, + + + unqualify_count = #{unqualifyCount,jdbcType=INTEGER}, + + + equipment_id = #{equipmentId,jdbcType=VARCHAR}, + + + assembly_date = #{assemblyDate,jdbcType=TIMESTAMP}, + + + emp_id = #{empId,jdbcType=VARCHAR}, + + + apply_date = #{applyDate,jdbcType=TIMESTAMP}, + + + note = #{note,jdbcType=VARCHAR}, + + + where unqualify_apply_id = #{unqualifyApplyId,jdbcType=VARCHAR} + + + update unqualify_apply + set product_id = #{productId,jdbcType=VARCHAR}, + unqualify_item = #{unqualifyItem,jdbcType=VARCHAR}, + unqualify_count = #{unqualifyCount,jdbcType=INTEGER}, + equipment_id = #{equipmentId,jdbcType=VARCHAR}, + assembly_date = #{assemblyDate,jdbcType=TIMESTAMP}, + emp_id = #{empId,jdbcType=VARCHAR}, + apply_date = #{applyDate,jdbcType=TIMESTAMP}, + note = #{note,jdbcType=VARCHAR} + where unqualify_apply_id = #{unqualifyApplyId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/mapper/WorkMapper.java b/src/main/java/org/hqu/production_ms/mapper/WorkMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..a70cb7d40a9dbb9b114c0cda434f681d9db4ca93 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/WorkMapper.java @@ -0,0 +1,30 @@ +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 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 diff --git a/src/main/java/org/hqu/production_ms/mapper/WorkMapper.xml b/src/main/java/org/hqu/production_ms/mapper/WorkMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..ac2a58049cddfc77e016acf6e1d1f05642f17428 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/mapper/WorkMapper.xml @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + work_id, process_number, product_id, process_id, equipment_id, rating + + + + + delete from work + where work_id = #{workId,jdbcType=VARCHAR} + + + delete from work + + + + + + insert into work (work_id, process_number, product_id, + process_id, equipment_id, rating + ) + values (#{workId,jdbcType=VARCHAR}, #{processNumber,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, + #{processId,jdbcType=VARCHAR}, #{equipmentId,jdbcType=VARCHAR}, #{rating,jdbcType=INTEGER} + ) + + + insert into work + + + work_id, + + + process_number, + + + product_id, + + + process_id, + + + equipment_id, + + + rating, + + + + + #{workId,jdbcType=VARCHAR}, + + + #{processNumber,jdbcType=VARCHAR}, + + + #{productId,jdbcType=VARCHAR}, + + + #{processId,jdbcType=VARCHAR}, + + + #{equipmentId,jdbcType=VARCHAR}, + + + #{rating,jdbcType=INTEGER}, + + + + + + update work + + + work_id = #{record.workId,jdbcType=VARCHAR}, + + + process_number = #{record.processNumber,jdbcType=VARCHAR}, + + + product_id = #{record.productId,jdbcType=VARCHAR}, + + + process_id = #{record.processId,jdbcType=VARCHAR}, + + + equipment_id = #{record.equipmentId,jdbcType=VARCHAR}, + + + rating = #{record.rating,jdbcType=INTEGER}, + + + + + + + + update work + set work_id = #{record.workId,jdbcType=VARCHAR}, + process_number = #{record.processNumber,jdbcType=VARCHAR}, + product_id = #{record.productId,jdbcType=VARCHAR}, + process_id = #{record.processId,jdbcType=VARCHAR}, + equipment_id = #{record.equipmentId,jdbcType=VARCHAR}, + rating = #{record.rating,jdbcType=INTEGER} + + + + + + update work + + + process_number = #{processNumber,jdbcType=VARCHAR}, + + + product_id = #{productId,jdbcType=VARCHAR}, + + + process_id = #{processId,jdbcType=VARCHAR}, + + + equipment_id = #{equipmentId,jdbcType=VARCHAR}, + + + rating = #{rating,jdbcType=INTEGER}, + + + where work_id = #{workId,jdbcType=VARCHAR} + + + update work + set process_number = #{processNumber,jdbcType=VARCHAR}, + product_id = #{productId,jdbcType=VARCHAR}, + process_id = #{processId,jdbcType=VARCHAR}, + equipment_id = #{equipmentId,jdbcType=VARCHAR}, + rating = #{rating,jdbcType=INTEGER} + where work_id = #{workId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/org/hqu/production_ms/service/CustomService.java b/src/main/java/org/hqu/production_ms/service/CustomService.java new file mode 100644 index 0000000000000000000000000000000000000000..3584ffb8fb4b8b4edc1b7cdbdc603782578d3db7 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/service/CustomService.java @@ -0,0 +1,26 @@ +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 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); +} diff --git a/src/main/java/org/hqu/production_ms/service/ProductService.java b/src/main/java/org/hqu/production_ms/service/ProductService.java new file mode 100644 index 0000000000000000000000000000000000000000..7b8ee88dff2a2d89154e46b081c8893bff81a0e6 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/service/ProductService.java @@ -0,0 +1,24 @@ +package org.hqu.production_ms.service; + +import java.util.List; + +import org.hqu.production_ms.domain.CustomResult; +import org.hqu.production_ms.domain.EUDataGridResult; +import org.hqu.production_ms.domain.Product; + +public interface ProductService { + + List find(); + + EUDataGridResult getList(int page, int rows, Product product); + + Product get(String string); + + CustomResult delete(String string); + + CustomResult deleteBatch(String[] ids); + + CustomResult insert(Product product); + + CustomResult update(Product product); +} diff --git a/src/main/java/org/hqu/production_ms/service/impl/CustomServiceImpl.java b/src/main/java/org/hqu/production_ms/service/impl/CustomServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..25e70c6025dc443cdb6db8cfc4caf6dd380a9429 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/service/impl/CustomServiceImpl.java @@ -0,0 +1,81 @@ +package org.hqu.production_ms.service.impl; + +import java.util.List; + +import org.hqu.production_ms.domain.Custom; +import org.hqu.production_ms.domain.CustomExample; +import org.hqu.production_ms.domain.CustomResult; +import org.hqu.production_ms.domain.EUDataGridResult; +import org.hqu.production_ms.mapper.CustomMapper; +import org.hqu.production_ms.service.CustomService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +@Service +public class CustomServiceImpl implements CustomService{ + + @Autowired + CustomMapper customMapper; + + @Override + public EUDataGridResult getList(int page, int rows, Custom custom) { + //查询商品列表 + CustomExample example = new CustomExample(); + //分页处理 + PageHelper.startPage(page, rows); + List list = customMapper.selectByExample(example); + //创建一个返回值对象 + EUDataGridResult result = new EUDataGridResult(); + result.setRows(list); + //取记录总条数 + PageInfo pageInfo = new PageInfo<>(list); + result.setTotal(pageInfo.getTotal()); + return result; + } + + @Override + public Custom get(String string) { + + return customMapper.selectByPrimaryKey(string); + } + + @Override + public CustomResult delete(String string) { + customMapper.deleteByPrimaryKey(string); + return CustomResult.ok(); + } + + @Override + public CustomResult deleteBatch(String[] ids) { + customMapper.deleteBatch(ids); + return CustomResult.ok(); + } + + @Override + public CustomResult insert(Custom custom) { + customMapper.insert(custom); + return CustomResult.ok(); + } + + @Override + public CustomResult update(Custom custom) { + customMapper.updateByPrimaryKeySelective(custom); + return CustomResult.ok(); + } + + @Override + public CustomResult changeStatus(String[] ids) { + customMapper.changeStatus(ids); + return CustomResult.ok(); + } + + @Override + public List find() { + CustomExample example = new CustomExample(); + return customMapper.selectByExample(example); + } + +} diff --git a/src/main/java/org/hqu/production_ms/service/impl/ProductServiceImpl.java b/src/main/java/org/hqu/production_ms/service/impl/ProductServiceImpl.java new file mode 100644 index 0000000000000000000000000000000000000000..54960b5d382f232f2d2f08156c2e65fb1b156e39 --- /dev/null +++ b/src/main/java/org/hqu/production_ms/service/impl/ProductServiceImpl.java @@ -0,0 +1,76 @@ +package org.hqu.production_ms.service.impl; + +import java.util.List; + +import org.hqu.production_ms.domain.CustomResult; +import org.hqu.production_ms.domain.EUDataGridResult; +import org.hqu.production_ms.domain.Product; +import org.hqu.production_ms.domain.ProductExample; +import org.hqu.production_ms.mapper.ProductMapper; +import org.hqu.production_ms.service.ProductService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; + +@Service +public class ProductServiceImpl implements ProductService{ + + @Autowired + ProductMapper productMapper; + + @Override + public EUDataGridResult getList(int page, int rows, Product product) { + //查询商品列表 + ProductExample example = new ProductExample(); + //分页处理 + PageHelper.startPage(page, rows); + List list = productMapper.selectByExample(example); + //创建一个返回值对象 + EUDataGridResult result = new EUDataGridResult(); + result.setRows(list); + //取记录总条数 + PageInfo pageInfo = new PageInfo<>(list); + result.setTotal(pageInfo.getTotal()); + return result; + } + + @Override + public Product get(String string) { + + return productMapper.selectByPrimaryKey(string); + } + + @Override + public CustomResult delete(String string) { + productMapper.deleteByPrimaryKey(string); + return CustomResult.ok(); + } + + @Override + public CustomResult deleteBatch(String[] ids) { + productMapper.deleteBatch(ids); + return CustomResult.ok(); + } + + @Override + public CustomResult insert(Product product) { + productMapper.insert(product); + return CustomResult.ok(); + } + + @Override + public CustomResult update(Product product) { + productMapper.updateByPrimaryKeySelective(product); + return CustomResult.ok(); + } + + @Override + public List find() { + ProductExample example = new ProductExample(); + + return productMapper.selectByExample(example); + } + +}