Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
07f359cf
Commit
07f359cf
authored
Nov 22, 2023
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺实体类
parent
63d7e601
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
803 additions
and
0 deletions
+803
-0
ProcessMaterialItemService.java
...un/technology/application/ProcessMaterialItemService.java
+11
-0
ProcessResourceService.java
...topsun/technology/application/ProcessResourceService.java
+11
-0
ProcessService.java
.../huigou/topsun/technology/application/ProcessService.java
+11
-0
TechnologyProcessService.java
...psun/technology/application/TechnologyProcessService.java
+11
-0
TechnologyService.java
...igou/topsun/technology/application/TechnologyService.java
+11
-0
ProcessMaterialItemServiceImpl.java
...logy/application/impl/ProcessMaterialItemServiceImpl.java
+18
-0
ProcessResourceServiceImpl.java
...chnology/application/impl/ProcessResourceServiceImpl.java
+18
-0
ProcessServiceImpl.java
...opsun/technology/application/impl/ProcessServiceImpl.java
+18
-0
TechnologyProcessServiceImpl.java
...nology/application/impl/TechnologyProcessServiceImpl.java
+18
-0
TechnologyServiceImpl.java
...un/technology/application/impl/TechnologyServiceImpl.java
+18
-0
Process.java
...ain/java/com/huigou/topsun/technology/domain/Process.java
+105
-0
ProcessMaterialItem.java
.../huigou/topsun/technology/domain/ProcessMaterialItem.java
+105
-0
ProcessResource.java
.../com/huigou/topsun/technology/domain/ProcessResource.java
+86
-0
Technology.java
.../java/com/huigou/topsun/technology/domain/Technology.java
+96
-0
TechnologyProcess.java
...om/huigou/topsun/technology/domain/TechnologyProcess.java
+87
-0
ProcessMapper.java
...va/com/huigou/topsun/technology/mapper/ProcessMapper.java
+18
-0
ProcessMaterialItemMapper.java
...u/topsun/technology/mapper/ProcessMaterialItemMapper.java
+18
-0
ProcessResourceMapper.java
...uigou/topsun/technology/mapper/ProcessResourceMapper.java
+18
-0
TechnologyMapper.java
...com/huigou/topsun/technology/mapper/TechnologyMapper.java
+18
-0
TechnologyProcessMapper.java
...gou/topsun/technology/mapper/TechnologyProcessMapper.java
+18
-0
ProcessMaterialItemRepository.java
.../technology/repository/ProcessMaterialItemRepository.java
+12
-0
ProcessRepository.java
...uigou/topsun/technology/repository/ProcessRepository.java
+11
-0
ProcessResourceRepository.java
...psun/technology/repository/ProcessResourceRepository.java
+12
-0
TechnologyProcessRepository.java
...un/technology/repository/TechnologyProcessRepository.java
+12
-0
TechnologyRepository.java
...ou/topsun/technology/repository/TechnologyRepository.java
+12
-0
ProcessMapper.xml
...sources/config/topsun/mapper/technology/ProcessMapper.xml
+6
-0
ProcessMaterialItemMapper.xml
...ig/topsun/mapper/technology/ProcessMaterialItemMapper.xml
+6
-0
ProcessResourceMapper.xml
...config/topsun/mapper/technology/ProcessResourceMapper.xml
+6
-0
TechnologyMapper.xml
...rces/config/topsun/mapper/technology/TechnologyMapper.xml
+6
-0
TechnologyProcessMapper.xml
...nfig/topsun/mapper/technology/TechnologyProcessMapper.xml
+6
-0
No files found.
topsun/src/main/java/com/huigou/topsun/technology/application/ProcessMaterialItemService.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
;
/**
* @author 16508
* @description 针对表【process_material_item(工序物料关系表)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public
interface
ProcessMaterialItemService
{
}
topsun/src/main/java/com/huigou/topsun/technology/application/ProcessResourceService.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
;
/**
* @author 16508
* @description 针对表【process_resource(工序资源)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public
interface
ProcessResourceService
{
}
topsun/src/main/java/com/huigou/topsun/technology/application/ProcessService.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
;
/**
* @author 16508
* @description 针对表【process(工序)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public
interface
ProcessService
{
}
topsun/src/main/java/com/huigou/topsun/technology/application/TechnologyProcessService.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
;
/**
* @author 16508
* @description 针对表【technology_process(工艺工序关系表)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public
interface
TechnologyProcessService
{
}
topsun/src/main/java/com/huigou/topsun/technology/application/TechnologyService.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
;
/**
* @author 16508
* @description 针对表【technology(工艺)】的数据库操作Service
* @createDate 2023-11-22 11:04:03
*/
public
interface
TechnologyService
{
}
topsun/src/main/java/com/huigou/topsun/technology/application/impl/ProcessMaterialItemServiceImpl.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
.
impl
;
import
com.huigou.topsun.technology.application.ProcessMaterialItemService
;
import
org.springframework.stereotype.Service
;
/**
* @author 16508
* @description 针对表【process_material_item(工序物料关系表)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public
class
ProcessMaterialItemServiceImpl
implements
ProcessMaterialItemService
{
}
topsun/src/main/java/com/huigou/topsun/technology/application/impl/ProcessResourceServiceImpl.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
.
impl
;
import
com.huigou.topsun.technology.application.ProcessResourceService
;
import
org.springframework.stereotype.Service
;
/**
* @author 16508
* @description 针对表【process_resource(工序资源)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public
class
ProcessResourceServiceImpl
implements
ProcessResourceService
{
}
topsun/src/main/java/com/huigou/topsun/technology/application/impl/ProcessServiceImpl.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
.
impl
;
import
com.huigou.topsun.technology.application.ProcessService
;
import
org.springframework.stereotype.Service
;
/**
* @author 16508
* @description 针对表【process(工序)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public
class
ProcessServiceImpl
implements
ProcessService
{
}
topsun/src/main/java/com/huigou/topsun/technology/application/impl/TechnologyProcessServiceImpl.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
.
impl
;
import
com.huigou.topsun.technology.application.TechnologyProcessService
;
import
org.springframework.stereotype.Service
;
/**
* @author 16508
* @description 针对表【technology_process(工艺工序关系表)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public
class
TechnologyProcessServiceImpl
implements
TechnologyProcessService
{
}
topsun/src/main/java/com/huigou/topsun/technology/application/impl/TechnologyServiceImpl.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
application
.
impl
;
import
com.huigou.topsun.technology.application.TechnologyService
;
import
org.springframework.stereotype.Service
;
/**
* @author 16508
* @description 针对表【technology(工艺)】的数据库操作Service实现
* @createDate 2023-11-22 11:04:03
*/
@Service
public
class
TechnologyServiceImpl
implements
TechnologyService
{
}
topsun/src/main/java/com/huigou/topsun/technology/domain/Process.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
domain
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
* 工序
* @TableName process
*/
@Table
(
name
=
"process"
)
@Data
public
class
Process
implements
Serializable
{
/**
* 工序ID
*/
@Id
@Column
(
name
=
"process_id"
)
private
String
processId
;
/**
* 工序名称
*/
@Column
(
name
=
"process_name"
)
private
String
processName
;
/**
* 工序说明
*/
@Column
(
name
=
"process_remark"
)
private
String
processRemark
;
/**
* 工时
*/
@Column
(
name
=
"work_hours"
)
private
Double
workHours
;
/**
* 工序类别(process_type)
*/
@Column
(
name
=
"process_type"
)
private
String
processType
;
/**
* 工序内容
*/
@Column
(
name
=
"process_content"
)
private
String
processContent
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
Process
other
=
(
Process
)
that
;
return
(
this
.
getProcessId
()
==
null
?
other
.
getProcessId
()
==
null
:
this
.
getProcessId
().
equals
(
other
.
getProcessId
()))
&&
(
this
.
getProcessName
()
==
null
?
other
.
getProcessName
()
==
null
:
this
.
getProcessName
().
equals
(
other
.
getProcessName
()))
&&
(
this
.
getProcessRemark
()
==
null
?
other
.
getProcessRemark
()
==
null
:
this
.
getProcessRemark
().
equals
(
other
.
getProcessRemark
()))
&&
(
this
.
getWorkHours
()
==
null
?
other
.
getWorkHours
()
==
null
:
this
.
getWorkHours
().
equals
(
other
.
getWorkHours
()))
&&
(
this
.
getProcessType
()
==
null
?
other
.
getProcessType
()
==
null
:
this
.
getProcessType
().
equals
(
other
.
getProcessType
()))
&&
(
this
.
getProcessContent
()
==
null
?
other
.
getProcessContent
()
==
null
:
this
.
getProcessContent
().
equals
(
other
.
getProcessContent
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getProcessId
()
==
null
)
?
0
:
getProcessId
().
hashCode
());
result
=
prime
*
result
+
((
getProcessName
()
==
null
)
?
0
:
getProcessName
().
hashCode
());
result
=
prime
*
result
+
((
getProcessRemark
()
==
null
)
?
0
:
getProcessRemark
().
hashCode
());
result
=
prime
*
result
+
((
getWorkHours
()
==
null
)
?
0
:
getWorkHours
().
hashCode
());
result
=
prime
*
result
+
((
getProcessType
()
==
null
)
?
0
:
getProcessType
().
hashCode
());
result
=
prime
*
result
+
((
getProcessContent
()
==
null
)
?
0
:
getProcessContent
().
hashCode
());
return
result
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", processId="
).
append
(
processId
);
sb
.
append
(
", processName="
).
append
(
processName
);
sb
.
append
(
", processRemark="
).
append
(
processRemark
);
sb
.
append
(
", workHours="
).
append
(
workHours
);
sb
.
append
(
", processType="
).
append
(
processType
);
sb
.
append
(
", processContent="
).
append
(
processContent
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/technology/domain/ProcessMaterialItem.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
domain
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
* 工序物料关系表
* @TableName process_material_item
*/
@Table
(
name
=
"process_material_item"
)
@Data
public
class
ProcessMaterialItem
implements
Serializable
{
/**
* 工艺物料关系ID
*/
@Id
@Column
(
name
=
"process_material_item_id"
)
private
String
processMaterialItemId
;
/**
* 工艺ID
*/
@Column
(
name
=
"technology_process_id"
)
private
String
technologyProcessId
;
/**
* 物料ID
*/
@Column
(
name
=
"material_id"
)
private
String
materialId
;
/**
* 使用的物料数量
*/
@Column
(
name
=
"material_number"
)
private
Double
materialNumber
;
/**
* 物料计量单位
*/
@Column
(
name
=
"material_unit"
)
private
String
materialUnit
;
/**
* sap物料相信内容
*/
@Column
(
name
=
"material_json"
)
private
String
materialJson
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
ProcessMaterialItem
other
=
(
ProcessMaterialItem
)
that
;
return
(
this
.
getProcessMaterialItemId
()
==
null
?
other
.
getProcessMaterialItemId
()
==
null
:
this
.
getProcessMaterialItemId
().
equals
(
other
.
getProcessMaterialItemId
()))
&&
(
this
.
getTechnologyProcessId
()
==
null
?
other
.
getTechnologyProcessId
()
==
null
:
this
.
getTechnologyProcessId
().
equals
(
other
.
getTechnologyProcessId
()))
&&
(
this
.
getMaterialId
()
==
null
?
other
.
getMaterialId
()
==
null
:
this
.
getMaterialId
().
equals
(
other
.
getMaterialId
()))
&&
(
this
.
getMaterialNumber
()
==
null
?
other
.
getMaterialNumber
()
==
null
:
this
.
getMaterialNumber
().
equals
(
other
.
getMaterialNumber
()))
&&
(
this
.
getMaterialUnit
()
==
null
?
other
.
getMaterialUnit
()
==
null
:
this
.
getMaterialUnit
().
equals
(
other
.
getMaterialUnit
()))
&&
(
this
.
getMaterialJson
()
==
null
?
other
.
getMaterialJson
()
==
null
:
this
.
getMaterialJson
().
equals
(
other
.
getMaterialJson
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getProcessMaterialItemId
()
==
null
)
?
0
:
getProcessMaterialItemId
().
hashCode
());
result
=
prime
*
result
+
((
getTechnologyProcessId
()
==
null
)
?
0
:
getTechnologyProcessId
().
hashCode
());
result
=
prime
*
result
+
((
getMaterialId
()
==
null
)
?
0
:
getMaterialId
().
hashCode
());
result
=
prime
*
result
+
((
getMaterialNumber
()
==
null
)
?
0
:
getMaterialNumber
().
hashCode
());
result
=
prime
*
result
+
((
getMaterialUnit
()
==
null
)
?
0
:
getMaterialUnit
().
hashCode
());
result
=
prime
*
result
+
((
getMaterialJson
()
==
null
)
?
0
:
getMaterialJson
().
hashCode
());
return
result
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", processMaterialItemId="
).
append
(
processMaterialItemId
);
sb
.
append
(
", technologyProcessId="
).
append
(
technologyProcessId
);
sb
.
append
(
", materialId="
).
append
(
materialId
);
sb
.
append
(
", materialNumber="
).
append
(
materialNumber
);
sb
.
append
(
", materialUnit="
).
append
(
materialUnit
);
sb
.
append
(
", materialJson="
).
append
(
materialJson
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/technology/domain/ProcessResource.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
domain
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
* 工序资源
* @TableName process_resource
*/
@Table
(
name
=
"process_resource"
)
@Data
public
class
ProcessResource
implements
Serializable
{
/**
* ID
*/
@Id
@Column
(
name
=
"process_resource_id"
)
private
String
processResourceId
;
/**
* 所属工序ID
*/
@Column
(
name
=
"technology_process_id"
)
private
String
technologyProcessId
;
/**
* 使用的资源ID
*/
@Column
(
name
=
"resource_id"
)
private
String
resourceId
;
/**
* 版本号
*/
private
String
version
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
ProcessResource
other
=
(
ProcessResource
)
that
;
return
(
this
.
getProcessResourceId
()
==
null
?
other
.
getProcessResourceId
()
==
null
:
this
.
getProcessResourceId
().
equals
(
other
.
getProcessResourceId
()))
&&
(
this
.
getTechnologyProcessId
()
==
null
?
other
.
getTechnologyProcessId
()
==
null
:
this
.
getTechnologyProcessId
().
equals
(
other
.
getTechnologyProcessId
()))
&&
(
this
.
getResourceId
()
==
null
?
other
.
getResourceId
()
==
null
:
this
.
getResourceId
().
equals
(
other
.
getResourceId
()))
&&
(
this
.
getVersion
()
==
null
?
other
.
getVersion
()
==
null
:
this
.
getVersion
().
equals
(
other
.
getVersion
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getProcessResourceId
()
==
null
)
?
0
:
getProcessResourceId
().
hashCode
());
result
=
prime
*
result
+
((
getTechnologyProcessId
()
==
null
)
?
0
:
getTechnologyProcessId
().
hashCode
());
result
=
prime
*
result
+
((
getResourceId
()
==
null
)
?
0
:
getResourceId
().
hashCode
());
result
=
prime
*
result
+
((
getVersion
()
==
null
)
?
0
:
getVersion
().
hashCode
());
return
result
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", processResourceId="
).
append
(
processResourceId
);
sb
.
append
(
", technologyProcessId="
).
append
(
technologyProcessId
);
sb
.
append
(
", resourceId="
).
append
(
resourceId
);
sb
.
append
(
", version="
).
append
(
version
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/technology/domain/Technology.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
domain
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
* 工艺
* @TableName technology
*/
@Table
(
name
=
"technology"
)
@Data
public
class
Technology
implements
Serializable
{
/**
* 工艺路线ID
*/
@Id
@Column
(
name
=
"technology_id"
)
private
String
technologyId
;
/**
* 工艺路线名称
*/
@Column
(
name
=
"technology_name"
)
private
String
technologyName
;
/**
* 产品ID
*/
@Column
(
name
=
"product_id"
)
private
String
productId
;
/**
* 工艺版本
*/
@Column
(
name
=
"technology_version"
)
private
String
technologyVersion
;
/**
* 工艺类型(technology_type)
*/
@Column
(
name
=
"technology_type"
)
private
String
technologyType
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
Technology
other
=
(
Technology
)
that
;
return
(
this
.
getTechnologyId
()
==
null
?
other
.
getTechnologyId
()
==
null
:
this
.
getTechnologyId
().
equals
(
other
.
getTechnologyId
()))
&&
(
this
.
getTechnologyName
()
==
null
?
other
.
getTechnologyName
()
==
null
:
this
.
getTechnologyName
().
equals
(
other
.
getTechnologyName
()))
&&
(
this
.
getProductId
()
==
null
?
other
.
getProductId
()
==
null
:
this
.
getProductId
().
equals
(
other
.
getProductId
()))
&&
(
this
.
getTechnologyVersion
()
==
null
?
other
.
getTechnologyVersion
()
==
null
:
this
.
getTechnologyVersion
().
equals
(
other
.
getTechnologyVersion
()))
&&
(
this
.
getTechnologyType
()
==
null
?
other
.
getTechnologyType
()
==
null
:
this
.
getTechnologyType
().
equals
(
other
.
getTechnologyType
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getTechnologyId
()
==
null
)
?
0
:
getTechnologyId
().
hashCode
());
result
=
prime
*
result
+
((
getTechnologyName
()
==
null
)
?
0
:
getTechnologyName
().
hashCode
());
result
=
prime
*
result
+
((
getProductId
()
==
null
)
?
0
:
getProductId
().
hashCode
());
result
=
prime
*
result
+
((
getTechnologyVersion
()
==
null
)
?
0
:
getTechnologyVersion
().
hashCode
());
result
=
prime
*
result
+
((
getTechnologyType
()
==
null
)
?
0
:
getTechnologyType
().
hashCode
());
return
result
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", technologyId="
).
append
(
technologyId
);
sb
.
append
(
", technologyName="
).
append
(
technologyName
);
sb
.
append
(
", productId="
).
append
(
productId
);
sb
.
append
(
", technologyVersion="
).
append
(
technologyVersion
);
sb
.
append
(
", technologyType="
).
append
(
technologyType
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/technology/domain/TechnologyProcess.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
domain
;
import
java.io.Serializable
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
lombok.Data
;
/**
* 工艺工序关系表
* @TableName technology_process
*/
@Table
(
name
=
"technology_process"
)
@Data
public
class
TechnologyProcess
implements
Serializable
{
/**
* 工艺节点条目ID
*/
@Id
@Column
(
name
=
"technology_process_id"
)
private
String
technologyProcessId
;
/**
* 工艺ID
*/
@Column
(
name
=
"technology_id"
)
private
String
technologyId
;
/**
* 工序ID
*/
@Column
(
name
=
"process_id"
)
private
String
processId
;
/**
* 条目序号
*/
@Column
(
name
=
"sort_num"
)
private
Integer
sortNum
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
TechnologyProcess
other
=
(
TechnologyProcess
)
that
;
return
(
this
.
getTechnologyProcessId
()
==
null
?
other
.
getTechnologyProcessId
()
==
null
:
this
.
getTechnologyProcessId
().
equals
(
other
.
getTechnologyProcessId
()))
&&
(
this
.
getTechnologyId
()
==
null
?
other
.
getTechnologyId
()
==
null
:
this
.
getTechnologyId
().
equals
(
other
.
getTechnologyId
()))
&&
(
this
.
getProcessId
()
==
null
?
other
.
getProcessId
()
==
null
:
this
.
getProcessId
().
equals
(
other
.
getProcessId
()))
&&
(
this
.
getSortNum
()
==
null
?
other
.
getSortNum
()
==
null
:
this
.
getSortNum
().
equals
(
other
.
getSortNum
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getTechnologyProcessId
()
==
null
)
?
0
:
getTechnologyProcessId
().
hashCode
());
result
=
prime
*
result
+
((
getTechnologyId
()
==
null
)
?
0
:
getTechnologyId
().
hashCode
());
result
=
prime
*
result
+
((
getProcessId
()
==
null
)
?
0
:
getProcessId
().
hashCode
());
result
=
prime
*
result
+
((
getSortNum
()
==
null
)
?
0
:
getSortNum
().
hashCode
());
return
result
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", technologyProcessId="
).
append
(
technologyProcessId
);
sb
.
append
(
", technologyId="
).
append
(
technologyId
);
sb
.
append
(
", processId="
).
append
(
processId
);
sb
.
append
(
", sortNum="
).
append
(
sortNum
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/technology/mapper/ProcessMapper.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
mapper
;
import
com.topsunit.query.annotations.Mapper
;
/**
* @author 16508
* @description 针对表【process(工序)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.Process
*/
@Mapper
(
xml
=
"config/topsun/mapper/technology/ProcessMapper.xml"
)
public
interface
ProcessMapper
{
}
topsun/src/main/java/com/huigou/topsun/technology/mapper/ProcessMaterialItemMapper.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
mapper
;
import
com.topsunit.query.annotations.Mapper
;
/**
* @author 16508
* @description 针对表【process_material_item(工序物料关系表)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.ProcessMaterialItem
*/
@Mapper
(
xml
=
"config/topsun/mapper/technology/ProcessMaterialItemMapper.xml"
)
public
interface
ProcessMaterialItemMapper
{
}
topsun/src/main/java/com/huigou/topsun/technology/mapper/ProcessResourceMapper.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
mapper
;
import
com.topsunit.query.annotations.Mapper
;
/**
* @author 16508
* @description 针对表【process_resource(工序资源)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.ProcessResource
*/
@Mapper
(
xml
=
"config/topsun/mapper/technology/ProcessResourceMapper.xml"
)
public
interface
ProcessResourceMapper
{
}
topsun/src/main/java/com/huigou/topsun/technology/mapper/TechnologyMapper.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
mapper
;
import
com.topsunit.query.annotations.Mapper
;
/**
* @author 16508
* @description 针对表【technology(工艺)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.Technology
*/
@Mapper
(
xml
=
"config/topsun/mapper/technology/TechnologyMapper.xml"
)
public
interface
TechnologyMapper
{
}
topsun/src/main/java/com/huigou/topsun/technology/mapper/TechnologyProcessMapper.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
mapper
;
import
com.topsunit.query.annotations.Mapper
;
/**
* @author 16508
* @description 针对表【technology_process(工艺工序关系表)】的数据库操作Mapper
* @createDate 2023-11-22 11:04:03
* @Entity com.huigou.topsun.technology.domain.TechnologyProcess
*/
@Mapper
(
xml
=
"config/topsun/mapper/technology/TechnologyProcessMapper.xml"
)
public
interface
TechnologyProcessMapper
{
}
topsun/src/main/java/com/huigou/topsun/technology/repository/ProcessMaterialItemRepository.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
repository
;
import
com.huigou.topsun.technology.domain.ProcessMaterialItem
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:11
* @Description:
*/
public
interface
ProcessMaterialItemRepository
extends
JpaRepository
<
ProcessMaterialItem
,
String
>
{
}
topsun/src/main/java/com/huigou/topsun/technology/repository/ProcessRepository.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
repository
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:11
* @Description:
*/
public
interface
ProcessRepository
extends
JpaRepository
<
Process
,
String
>
{
}
topsun/src/main/java/com/huigou/topsun/technology/repository/ProcessResourceRepository.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
repository
;
import
com.huigou.topsun.technology.domain.ProcessResource
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:12
* @Description:
*/
public
interface
ProcessResourceRepository
extends
JpaRepository
<
ProcessResource
,
String
>
{
}
topsun/src/main/java/com/huigou/topsun/technology/repository/TechnologyProcessRepository.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
repository
;
import
com.huigou.topsun.technology.domain.TechnologyProcess
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:12
* @Description:
*/
public
interface
TechnologyProcessRepository
extends
JpaRepository
<
TechnologyProcess
,
String
>
{
}
topsun/src/main/java/com/huigou/topsun/technology/repository/TechnologyRepository.java
0 → 100644
View file @
07f359cf
package
com
.
huigou
.
topsun
.
technology
.
repository
;
import
com.huigou.topsun.technology.domain.Technology
;
import
org.springframework.data.jpa.repository.JpaRepository
;
/**
* @Auther: xin.lu
* @Date: 2023/11/22/11:12
* @Description:
*/
public
interface
TechnologyRepository
extends
JpaRepository
<
Technology
,
String
>
{
}
topsun/src/main/resources/config/topsun/mapper/technology/ProcessMapper.xml
0 → 100644
View file @
07f359cf
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
topsun/src/main/resources/config/topsun/mapper/technology/ProcessMaterialItemMapper.xml
0 → 100644
View file @
07f359cf
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
topsun/src/main/resources/config/topsun/mapper/technology/ProcessResourceMapper.xml
0 → 100644
View file @
07f359cf
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
topsun/src/main/resources/config/topsun/mapper/technology/TechnologyMapper.xml
0 → 100644
View file @
07f359cf
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
topsun/src/main/resources/config/topsun/mapper/technology/TechnologyProcessMapper.xml
0 → 100644
View file @
07f359cf
<?xml version="1.0" encoding="UTF-8"?>
<query-mappings>
</query-mappings>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment