|
@@ -16,6 +16,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.Calendar;
|
|
|
import java.util.Date;
|
|
|
|
|
|
+import static com.rongwei.safecommon.utils.SaveConstans.AQ_ORG_CODE_MAP;
|
|
|
import static com.rongwei.safecommon.utils.SaveConstans.ORG_CODE_MAP;
|
|
|
|
|
|
/**
|
|
@@ -118,7 +119,8 @@ public class CommonUtil {
|
|
|
* @return
|
|
|
*/
|
|
|
public static String streamCodeGeneration(String moduleCode, String ruleTemplateStr, String resetRule, String tenantId) {
|
|
|
- String orgCode = ORG_CODE_MAP.getOrDefault(tenantId, "");
|
|
|
+
|
|
|
+ String orgCode = (moduleCode.contains("_aq")?AQ_ORG_CODE_MAP:ORG_CODE_MAP).getOrDefault(tenantId, "");
|
|
|
log.info("开始生成流水码");
|
|
|
SysSerialVo sysSerialVo = new SysSerialVo();
|
|
|
sysSerialVo.setModulecode(String.format("%s_%s", moduleCode, orgCode));
|