Commit 0c903091 by zhaoxiaolei

撞配

parent 11c4a211
...@@ -73,7 +73,7 @@ public class IntegrateController { ...@@ -73,7 +73,7 @@ public class IntegrateController {
if (ObjectUtils.isEmpty(redis)) { if (ObjectUtils.isEmpty(redis)) {
List<SuperTableInfoDto> superTableInfos = superTableInfoMapper.findBySuperBomCode(selectorEntity.getSuperBomCode()); List<SuperTableInfoDto> superTableInfos = superTableInfoMapper.findBySuperBomCode(selectorEntity.getSuperBomCode());
List<RedisEntity> redisEntities = new ArrayList<>(); List<RedisEntity> redisEntities = new ArrayList<>();
for (SuperTableInfoDto superTableInfo : superTableInfos) { superTableInfos.forEach(superTableInfo->{
RedisEntity redisEntity = new RedisEntity(); RedisEntity redisEntity = new RedisEntity();
redisEntity.setTableName(superTableInfo.getTableName()); redisEntity.setTableName(superTableInfo.getTableName());
redisEntity.setTableId(superTableInfo.getTableId()); redisEntity.setTableId(superTableInfo.getTableId());
...@@ -115,7 +115,7 @@ public class IntegrateController { ...@@ -115,7 +115,7 @@ public class IntegrateController {
redisEntity.setData(map); redisEntity.setData(map);
redisEntities.add(redisEntity); redisEntities.add(redisEntity);
redisHelper.set(RedisKey.getVariantTableKey(selectorEntity.getSystem(), selectorEntity.getProductClassCode(), selectorEntity.getSuperBomCode()), JSONObject.toJSONString(redisEntities), 86400); redisHelper.set(RedisKey.getVariantTableKey(selectorEntity.getSystem(), selectorEntity.getProductClassCode(), selectorEntity.getSuperBomCode()), JSONObject.toJSONString(redisEntities), 86400);
} });
} }
ConfigurableBom configurableBom = integrateService.getOdInfo(selectorEntity); ConfigurableBom configurableBom = integrateService.getOdInfo(selectorEntity);
......
...@@ -31,4 +31,5 @@ public interface SuperBomSkuInfoMapper extends IBaseMapper<SuperBomSkuInfo> { ...@@ -31,4 +31,5 @@ public interface SuperBomSkuInfoMapper extends IBaseMapper<SuperBomSkuInfo> {
ArrayList<SuperBomSkuConfigInfo> getConfigInfos(String configId); ArrayList<SuperBomSkuConfigInfo> getConfigInfos(String configId);
void updateSkuStatus(SuperBomSkuInfo returnSkuInfo);
} }
package cn.com.uitech.authorization.pojo.dto;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Accessors(chain = true)
@NoArgsConstructor
@Getter
@Setter
@ToString
public class PLMResultDto implements Serializable{
private static final long serialVersionUID = -6753862215721540595L;
/**
* 状态:0:成功,1:失败。-1:缺少必须参数
*/
private Integer code;
/**
*状态描述
*/
private String message;
private Object data;
}
...@@ -10,6 +10,7 @@ import lombok.experimental.Accessors; ...@@ -10,6 +10,7 @@ import lombok.experimental.Accessors;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Table; import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -106,6 +107,11 @@ public class SuperBomSkuInfo extends BasePageDto implements Serializable { ...@@ -106,6 +107,11 @@ public class SuperBomSkuInfo extends BasePageDto implements Serializable {
*/ */
@Column(name = "description") @Column(name = "description")
private String description; private String description;
/**
* 特配描述
*/
@Column(name = "description_bom")
private String descriptionBom;
/** /**
* cpqconfigid * cpqconfigid
...@@ -136,6 +142,16 @@ public class SuperBomSkuInfo extends BasePageDto implements Serializable { ...@@ -136,6 +142,16 @@ public class SuperBomSkuInfo extends BasePageDto implements Serializable {
*/ */
@Column(name = "apply_status") @Column(name = "apply_status")
private String applyStatus; private String applyStatus;
/**
* 已回号/未回号
*/
@Column(name = "apply_user")
private String applyUser;
/**
* 已回号/未回号
*/
@Column(name = "apply_time")
private Timestamp applyTime;
/** /**
* 集成来的 * 集成来的
......
...@@ -38,9 +38,9 @@ public class SecurityService { ...@@ -38,9 +38,9 @@ public class SecurityService {
SimpleGrantedAuthority simpleGrantedAuthority = new SimpleGrantedAuthority("Anonymous"); SimpleGrantedAuthority simpleGrantedAuthority = new SimpleGrantedAuthority("Anonymous");
simpleGrantedAuthorities.add(simpleGrantedAuthority); simpleGrantedAuthorities.add(simpleGrantedAuthority);
return new UserImpl("Anonymous", "123456", simpleGrantedAuthorities return new UserImpl("system", "123456", simpleGrantedAuthorities
,0,"Anonymous" ,0,"system"
,"Anonymous","","",""); ,"system","","","");
} else { } else {
String userCode = authentication.getName(); String userCode = authentication.getName();
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
,apply_status ,apply_status
,sku_code ,sku_code
,sku_name ,sku_name
,apply_user
,apply_time
,description_bom
,id ,id
) values ( ) values (
#{productClassCode}, #{productClassCode},
...@@ -48,6 +51,9 @@ ...@@ -48,6 +51,9 @@
#{applyStatus}, #{applyStatus},
#{skuCode}, #{skuCode},
#{skuName}, #{skuName},
#{applyUser},
now(),
#{descriptionBom},
#{id} #{id}
) )
</insert> </insert>
...@@ -113,6 +119,7 @@ ...@@ -113,6 +119,7 @@
</if> </if>
</where> </where>
order by a.apply_time desc
</select> </select>
<update id="updateSkuInfo"> <update id="updateSkuInfo">
...@@ -190,4 +197,8 @@ ...@@ -190,4 +197,8 @@
h3c_v_Value h3c_v_Value
from super_bom_sku_config_info where config_id = #{configId} from super_bom_sku_config_info where config_id = #{configId}
</select> </select>
<update id="updateSkuStatus">
update super_bom_sku_info set apply_status = '未回号' , apply_user = #{applyUser} , apply_time = now() where config_id = #{configId}
</update>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment