API页面类型分类
parent
49993bdc4b
commit
a4174d8af6
|
@ -40,6 +40,12 @@ public class Connector {
|
||||||
* 公司
|
* 公司
|
||||||
*/
|
*/
|
||||||
private String connectorCompany;
|
private String connectorCompany;
|
||||||
|
/**
|
||||||
|
* 上架时间
|
||||||
|
*/
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date connectorUptime;
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -59,6 +59,7 @@ public class ConnectorServiceImpl extends ServiceImpl<ConnectorMapper, Connector
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result addConnector(Connector connector) {
|
public Result addConnector(Connector connector) {
|
||||||
|
connector.setConnectorUptime(new Date());
|
||||||
connector.setConnectorTime(new Date());
|
connector.setConnectorTime(new Date());
|
||||||
connector.setConnectorStatus(0);
|
connector.setConnectorStatus(0);
|
||||||
Integer i = connectorMapper.insert(connector);
|
Integer i = connectorMapper.insert(connector);
|
||||||
|
|
Loading…
Reference in New Issue